Graphical (e.g. X11) sessions are frequently hanging on my Raspberry Pi 3B+: I can move the cursor around on the screen, but the GUI is otherwise unresponsive. The system appears to be otherwise in a reasonable state because I can still log in on another virtual console or by SSH. However, the only way to get X11 back seems to be rebooting.
Just after a hang, I will find that the kernel has written messages like this:
[38025.733857] alloc_contig_range: [3a600, 3adbc) PFNs busy
[38028.099564] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[38028.099612] [drm] V3D: 104748kb BOs (69)
[38028.099623] [drm] V3D shader: 156kb BOs (39)
[38028.099633] [drm] dumb: 8148kb BOs (4)
[38028.099678] [drm] total purged BO: 21360kb BOs (19)
[38028.099701] vc4_v3d 3fc00000.v3d: Failed to allocate memory for tile binning: -12. You may need to enable CMA or give it more memory.
[38045.339458] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[38045.339600] [drm] kernel: 32kb BOs (1)
[38045.339612] [drm] V3D: 105444kb BOs (69)
[38045.339622] [drm] V3D shader: 156kb BOs (39)
[38045.339632] [drm] dumb: 8148kb BOs (4)
[38045.339802] [drm] total purged BO: 37992kb BOs (26)
[38045.340340] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[38045.340373] [drm] V3D: 104724kb BOs (68)
[38045.340384] [drm] V3D shader: 156kb BOs (39)
[38045.340393] [drm] dumb: 8148kb BOs (4)
[38045.340404] [drm] userspace BO cache: 32kb BOs (1)
[38045.340414] [drm] total purged BO: 37992kb BOs (26)
[38052.297331] alloc_contig_range: [34100, 34180) PFNs busy
The hangs seem to be correlated with opening up a web browser, but sometimes they just happen with the passage of time. I have tried setting cma=128M or cma=256M in /boot/firmware/cmdline.txt, and that helps a little but does not make the hangs go away.
To try to keep graphics use as lightweight as possible, I have ditched LXDE/XFCE/MATE and Firefox, and I am instead using i3 and surf. Again, that helps a little bit, but not much. The last hang occurred when I had 4 xterms and one surf window open (browsing GitHub).
I have tried making both armhf and arm64 images. The hangs are much more frequent on arm64.
Graphical (e.g. X11) sessions are frequently hanging on my Raspberry Pi 3B+: I can move the cursor around on the screen, but the GUI is otherwise unresponsive. The system appears to be otherwise in a reasonable state because I can still log in on another virtual console or by SSH. However, the only way to get X11 back seems to be rebooting.
Just after a hang, I will find that the kernel has written messages like this:
The hangs seem to be correlated with opening up a web browser, but sometimes they just happen with the passage of time. I have tried setting
cma=128M
orcma=256M
in/boot/firmware/cmdline.txt
, and that helps a little but does not make the hangs go away.To try to keep graphics use as lightweight as possible, I have ditched LXDE/XFCE/MATE and Firefox, and I am instead using i3 and surf. Again, that helps a little bit, but not much. The last hang occurred when I had 4 xterms and one surf window open (browsing GitHub).
I have tried making both armhf and arm64 images. The hangs are much more frequent on arm64.