System is unstable and keep freezing or crashing

Which version of system do you use? Khadas official images, self built images, or others?

I am using the official Ubuntu 22.04 1.5 image.

Please describe your issue below:

The system looks amazing. However it is also quite unstable. I have experienced web page crashes, GUI crashes and system freezes multiple times every day.

Post a console log of your issue below:

Sorry I don’t know how to inspect the logs after my crashes. Any suggestions are welcome!

Do you use the orignal image? Could you take a screenshot when you meet the crash?

Yes, I’m using the original image and installed from oowow.
I’ll try to and there were a few different things I have experienced:

  • Complete system freeze. When it happens, nothing works. Mouse doesn’t move any more and keyboard also doesn’t work.
  • GUI crashes. It brings me back to the GUI login screen.
  • System crash, it brings me to the terminal and either restarts the system, or restarts the GUI after a second.
  • Chromium web page crash. The webpage with the problem shows “aw, snap!” error page. After that happening for a while my whole system freezes.

Meanwhile, I always find some weird short color lines on the display. It can happen anywhere on the display, and changes color when I’m typing. They don’t belong to any window. But when I try to take screenshot, they disappears. I’m wondering whether that’s a corruption in the display buffer or something. I’ll take a picture using my phone if it happens next time.

I have no clue so far why it happens. I’m using a PD charger that supports up to 45W.

Just because it says 45 W does not necessarily mean that it is suitable for the board. The regulation is the critical part, we use power supplies that meet medical standards. Also, make sure your USB cable is actually rated for 5 amps. We have cut off the connector and found the micro-fine data wires are carrying the power, that is extremely bad. An approved cable will have a much larger conductor for the +, the shield is -.

The USB cable is rated for 60W PD charging. I used it to charge my laptop and it works well. Do you have a recommended charger?

One thing to add. I have left it running for 2 days without sleep/suspend. As long as I’m not touching it, it works well. Not heavily loaded though.

I just got another UI crash. The following log might be related:

Aug 26 23:56:00 Khadas gnome-shell[448151]: Registering session with GDM
Aug 26 23:56:00 Khadas gnome-shell[447518]: Connection to xwayland lost
Aug 26 23:56:00 Khadas gdm-launch-environment][447423]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Aug 26 23:56:00 Khadas gsd-rfkill[447874]: Error releasing name org.gnome.SettingsDaemon.Rfkill: The connection is closed
Aug 26 23:56:00 Khadas gsd-screensaver[447899]: Error releasing name org.freedesktop.ScreenSaver: The connection is closed
Aug 26 23:56:00 Khadas gsd-print-notif[447869]: Error releasing name org.gnome.SettingsDaemon.PrintNotifications: The connection is closed
Aug 26 23:56:00 Khadas dbus-daemon[448086]: [session uid=1001 pid=448086] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.89'>
Aug 26 23:56:00 Khadas systemd[46993]: Starting Tracker metadata extractor...
Aug 26 23:56:00 Khadas gdm-launch-environment][447423]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I got more logs. This time, the GUI is frozen for several seconds, then back to life. Here is what I find from logs.

ug 27 10:51:24 Khadas chromium_chromium.desktop[530256]: Warning: DiscoverDefaultPhysicalDevices is deprecated. Call EnumerateAdapters or RequestAdapter instead.
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]: Warning: vkCreateInstance: Found no drivers!
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]: Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]:     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]:     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:416)
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]:     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:302)
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]:     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:232)
Aug 27 10:51:24 Khadas chromium_chromium.desktop[530256]:     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:479)
Aug 27 10:51:25 Khadas chromium_chromium.desktop[530256]: Warning: eglChooseConfig returned zero configs
Aug 27 10:51:25 Khadas chromium_chromium.desktop[530256]:     at Create (../../third_party/dawn/src/dawn/native/opengl/ContextEGL.cpp:53)
Aug 27 10:51:25 Khadas chromium_chromium.desktop[530256]: Warning: GetAdapters() is deprecated. Call EnumerateAdapters(options) instead.
Aug 27 10:51:51 Khadas kernel: mali fb000000.gpu: Ctx 448151_9 Group 0 CSG 0 CSI: 0
                               CS_FATAL.EXCEPTION_TYPE: 0x68 (FIRMWARE_INTERNAL_ERROR)
                               CS_FATAL.EXCEPTION_DATA: 0x1
                               CS_FATAL_INFO.EXCEPTION_DATA: 0x810828
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: [3869086146] term request timeout (12000 ms) for group 0 of context 448151_9 on slot 0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: Preparing to soft-reset GPU
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: Resetting GPU (allowing up to 500 ms)
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: Register state:
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu:   GPU_IRQ_RAWSTAT=0x00040000   GPU_STATUS=0x00000000  MCU_STATUS=0x00000001
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu:   JOB_IRQ_RAWSTAT=0x00000000   MMU_IRQ_RAWSTAT=0x00000000   GPU_FAULTSTATUS=0x00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu:   GPU_IRQ_MASK=0x00000000   JOB_IRQ_MASK=0x00000000   MMU_IRQ_MASK=0x00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu:   PWR_OVERRIDE0=0x00000000   PWR_OVERRIDE1=0x00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu:   SHADER_CONFIG=0x00000000   L2_MMU_CONFIG=0x00000000   TILER_CONFIG=0x00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: Firmware trace buffer dump:
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1088f419t =======================================================
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1088f593t ===================== CSFFW Oops! =====================
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1088f69dt =======================================================
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1088f88et Exception: UsageFault UNDEFINSTR 
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1088fd88t R0:  0x00000000 R1:  0x40036120 R2:  0x00000001 R3:  0x00000001
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10890346t R4:  0x0202eff0 R5:  0x00000000 R6:  0x00000002 R7:  0x0202baf8
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089074bt R8:  0x00000002 R9:  0x00000000 R10: 0x00000000 R11: 0x40031004
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10890e05t R12: 0x00000000 SP:  0x0202efa0 LR:  0x00802a27 PC:  0x00810828
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10890edet Stack dump (main stack)
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10891a6ft 0202efa0: 00000001 0202efc8 00000020 00000001 00000000 40036008 0202efe8 00000000 
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108927b9t 0202efc0: 0202ba59 400330dc 00000200 0202eff0 00000000 00000000 0202eff8 00000000 
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893079t 0202efe0: 00000000 00000000 00000000 00802a27 00000000 00000000 00000000 fffffffd 
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089314bt CSHWIF0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108935c0t      CSHWIF_CMD_PTR_LO=0x5fffe1fe40
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893a35t      CSHWIF_CMD_PTR_END_LO=0x5fffe1fe40
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893b31t      CSHWIF_CTRL=0x4
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893c26t      CSHWIF_STATUS=0x4
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893ceat      CSHWIF_ITER_COMPUTE=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893daet      CSHWIF_ITER_FRAGMENT=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893e6bt      CSHWIF_ITER_TILER=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10893f59t      CSHWIF_JASID=0x1
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089401dt      CSHWIF_TRAP_CFG_0_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108940f6t      CSHWIF_TRAP_CFG_1_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108941c1t      CSHWIF_TRAP_CFG_2_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089429at      CSHWIF_TRAP_CFG_3_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089436ct      CSHWIF_EMULATION_INSTR_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894445t      CSHWIF_WAIT_STATUS=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894509t      CSHWIF_SB_SET_SEL=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108945f7t      CSHWIF_SB_SEL=0x5
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894900t      CSHWIF_EVENT_RAW=0x70100000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894af1t      CSHWIF_EVENT_IRQ_ENABLE=0x8000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894bd1t      CSHWIF_EVENT_IRQ_STATUS=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894ea9t      CSHWIF_EVENT_HALT_ENABLE=0x7008e1f
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10894f7bt      CSHWIF_EVENT_HALT_STATUS=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089504dt      CSHWIF_FAULT_STATUS=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10895134t      CSHWIF_FAULT_ADDRESS_LO=0x0
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108951e3t CSHWIF0 register file
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10895428t      R  0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d108956act      R  8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10895976t      R 16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10895c39t      R 24: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10895efct      R 32: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10896ad3t      R 40: ff9e81c3 0000005f 00000000 086f0eff ffa07000 0000005f 00000040 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10896d8ft      R 48: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10897052t      R 56: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10897648t      R 64: ffe06080 0000005f 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10897cb5t      R 72: ffeb4e68 0000005f 00000001 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10897f78t      R 80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10898567t      R 88: 00000000 00000000 ffe06000 0000005f 00000000 00000000 00000000 00000000
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d1089864et CSHWIF1
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10898aa0t      CSHWIF_CMD_PTR_LO=0x5fffe31740
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10898f15t      CSHWIF_CMD_PTR_END_LO=0x5fffe31740
Aug 27 10:52:03 Khadas kernel: mali fb000000.gpu: FW> 51d10898ffct      CSHWIF_CTRL=0x4

I’m trying to use a different power adapter to see if it makes a difference just in case. Now I’m switching to another 65W rated PD charger that also supports 12V 3A.

Do you have our official PD adaptor?

No, I don’t have the official PD adapter. Does it make a difference if my PD charger supports 12V >= 2A?

Hello @alphonsez

If the power supply is enough it should be have no difference.

By the way, do you use the image edge2-ubuntu-22.04-gnome-linux-5.10-fenix-1.5-230425 installed by oowow online ? Have you do any modifications to the images?

Yes I have installed it using cowow online. I didn’t make any modifications to the images.

Have you tried starting it with X instead of wayland. I don’t have that board and just assume that option is available like it is on amd64 arch.

I’m quite new to Linux. I’m not sure how to try it out. But I feel there is something to do with GPU. I saw some corrupted image in my display from time to time.

I’m also trying to manually control the fan. The unit feels too warm and the fan is not running, so I’m setting the fan to run manually at low speed. Hope it makes a difference.

From my logs I keep seeing these errors. Are they by anyway related to the issue?

Aug 28 11:31:56 Khadas kernel: rkcif-mipi-lvds: rkcif_update_sensor_info: stream[1] get remote terminal sensor failed!
Aug 28 11:31:56 Khadas kernel: rkcif_scale_ch1: update sensor info failed -19
Aug 28 11:31:56 Khadas kernel: rockchip-csi2-dphy0: No link between dphy and sensor

These logs doesn’t matter.

Can you try to use X11? You can choose Ubuntu on Xorg.

Awesome. I didn’t know this setting before. I’ll try it and update the post.

It feels more stable after switching to Xorg. I got 1 freeze today and with no GUI crashes. I got many more crashes and freezes if I use wayland.

After using it for a while my preliminary conclusion is that it’s way more stable by switching to Ubuntu on Xorg. I only got 1 system wide freeze and a few GUI freezes (where the mouse can still move). I’ll give it a longer run and update.

I do got a problem after switching to Xorg. One of my app fail to start due to the QT QPA plugin setting specifies wayland. The error messages look like this:

qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

And my walk around is to add export QT_QPA_PLATFORM=xcb to ~/.profile.