Rigol.Scope has stopped working [DHO804]  - Page 1
Forum section: electronics / testgear

author: kenkit
author_rank: Newbie
timestamp: April 14, 2025, 11:18:57 pm
content: Hi, my scope is not working even after factory reset via settings I still get the same error.I have tried getting debug logs and this is what I can see.I have even tried updating the firmware manually via adb to 1.04.00.02 but the problem remains.Code:04-15 07:14:30.820 1535 1535 D AndroidRuntime: Shutting down VM04-15 07:14:30.821 1535 1540 I art : Do partial code cache collection, code=15KB, data=30KB04-15 07:14:30.821 1535 1535 E AndroidRuntime: FATAL EXCEPTION: main04-15 07:14:30.821 1535 1535 E AndroidRuntime: Process: com.rigol.scope, PID: 153504-15 07:14:30.821 1535 1535 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rigol.scope/com.rigol.scope.MainActivity}: java.lang.NullPointerException: ServiceEnum.getChanFromV…ageID.MSG_APP_MEAS_SRCA)) must not be null04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2675)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2736)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1487)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6157)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)04-15 07:14:30.821 1535 1535 E AndroidRuntime: Caused by: java.lang.NullPointerException: ServiceEnum.getChanFromV…ageID.MSG_APP_MEAS_SRCA)) must not be null04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.rigol.scope.data.MeasureSettingParam.readSelectSourceA(MeasureSettingParam.kt:586)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.rigol.scope.data.MeasureSettingParam.readAll(MeasureSettingParam.kt:473)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.rigol.scope.viewmodels.BaseViewModel.get(BaseViewModel.kt:34)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.rigol.scope.utilities.ViewModelManager.readAll(ViewModelManager.kt:46)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at com.rigol.scope.MainActivity.onCreate(MainActivity.java:267)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6709)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)04-15 07:14:30.821 1535 1535 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628)04-15 07:14:30.821 1535 1535 E AndroidRuntime: ... 9 more04-15 07:14:30.821 1535 1540 I art : After code cache collection, code=15KB, data=30KB04-15 07:14:30.821 1535 1540 I art : Increasing code cache capacity to 128KB04-15 07:14:30.823 587 1534 W ActivityManager: Force finishing activity com.rigol.scope/.MainActivity

author: EvgenyG
author_rank: Regular Contributor
timestamp: April 15, 2025, 12:25:53 am
content: Either there is bug in software where SourceA parameter ended up having no value set in configuration or the scope cannot enumerate some of the hardware features and ends up with this error. I suggest reaching out to Rigol directly for support.

author: ptluis
author_rank: Frequent Contributor
timestamp: April 15, 2025, 03:50:44 pm
content: Quote from: EvgenyG on April 15, 2025, 12:25:53 amWhat about SDcard corruption?

author: norbert.kiszka
author_rank: Frequent Contributor
timestamp: April 15, 2025, 06:36:48 pm
content: Uninstall app manually via adb and install it again. Also check contents in /rigol/data if there are all files there. At next, backup SD card (You should done this long ago) and try image from internet (on this forum there are couple, including mine DHO924S).If You are using Linux, I can help with flashing image (it's simple). In case of Windows, don't ask (Im not using it for 20 years).

author: kenkit
author_rank: Newbie
timestamp: April 15, 2025, 07:02:57 pm
content: I did backup a while ago but I can't remember where I saved it, or wheather it was before my laptop crashed since I had to replace the ssd. I will ry looking for it. Also the /rigol/data folder is there, I have also tried uninstalling the rigol app, manually updating the scope using adb which succeeded but it still doesn't start.Also tried factory resetting via android settings launched via adb, the same problem still persists.The scope is still under warranty so I have not tried dissasembling or clean installing the sdcard image with another one, I wonder if doing that would void the warranty ?

author: kenkit
author_rank: Newbie
timestamp: April 15, 2025, 07:06:50 pm
content: About flashing I will have to revisit the threads about how to get a different image on it, but I will have to first figure out what I can do without voiding the warranty since it will be a pain to have to buy another scope because I voided the warranty and can't get this one fixed.

author: kenkit
author_rank: Newbie
timestamp: April 15, 2025, 08:35:42 pm
content: After some researching it looks like the problem occurs on this linehttps://github.com/Andy-Big/DHO800_900_Sparrow_project/blob/0dfc6966b1a7b626d50e95cb5df1286c65881bc4/java_src/com/rigol/scope/data/MeasureSettingParam.java#L635Not sure if that is the automatic channel selection or what that does.

author: Fungus
author_rank: Super Contributor
timestamp: April 15, 2025, 10:00:01 pm
content: Itispossible for these 'scopes to get messed up in a way that even swapping the SD card won't fix them.If the stored settings are corrupted in a way that causes the app to crash on startup then there'snothingyou can do except return the 'scope under warranty. There's no way to clear those settings.If any firmware hackers could hack in a way to clear the FRAM on app startup then that would be very useful (eg. hold down the "default" button).(Yes, I've nagged Rigol support to add this function and the nagwassent up the hierarchy ... I don't know where it stopped)

author: kenkit
author_rank: Newbie
timestamp: May 30, 2025, 09:18:19 pm
content: I had to send it back for RMA where it was fixed at no charge. But since I'm not within the US sending it back costed me.I was told that something had come loose, now the scope is back and functioning normally.

author: ptluis
author_rank: Frequent Contributor
timestamp: May 31, 2025, 08:02:05 am
content: Quote from: kenkit on May 30, 2025, 09:18:19 pmI wonder what got loose?