Out of memory crash while downloading

PinePhone with Postmarket OS sxmo While attempting to download a large area the application crashes with: DRM_IOCTL_MODE_CREATE_DUMB failed: Out of memory

It is possible I misunderstood how the offline feature is supposed to work but I was hoping it would save data to permanent storage and retain it between sessions. This error suggests it is trying to hold everything in RAM. It crashes after around 200mb

Assigned to
1 year, 9 months ago
1 year, 8 months ago

~mil 1 year, 9 months ago

You have understood the offline feature correctly in that it caches tiles to the filesystem to be retained between sessions.

The strange things about this error is that its related to DRM, so this error has to do with running out of GPU memory not RAM. Really the background downloading tiles shouldn't have any effect on DRM / GPU memory since background tiles bypass being converted to textures/GPU memory in anycase and directly write to the FS.

Few questions:

  • What version of the Pinephone is this?
  • What environment are you using (Sxmo, Phosh, etc.)?
  • If you could provide full replication steps from a base image it would be very helpful for me to be able to resolve this. Include where you panned map to full steps etc.

As for potential workarounds:

  • You may use mepo -sw to use the software renderer instead of hardware / GPU rendering
  • You can download tiles using mepo -dSPEC or using the mepo_dl.sh helper script
  • You may alter the max textures for the GPU (https://git.sr.ht/~mil/mepo/tree/master/item/src/config.zig#L18); I set this intentionally low to have minimal GPU memory requirements but wonder if this needs further tuning / detection to use SW render even if GPU memory fails.

~dunkhan 1 year, 9 months ago

Pinephone beta edition Sxmo

  1. Flash STABLE image from postmarket os download page, this specific image: https://images.postmarketos.org/bpo/v22.06/pine64-pinephone/sxmo-de-sway/20220914-0518/20220914-0518-postmarketOS-v22.06-sxmo-de-sway-1.9.0-pine64-pinephone.img.xz
  2. Install mepo from the EDGE repository by settings the --repository flag on the apk command
  3. run mepo
  4. set the view to cover a large area (30x30 km of a built up city seems to be plenty)
  5. download current bounds

Please note I am running stable sxmo with edge mepo, if this is required to reproduce the issue it might be a bug in sxmo and it might already be fixed.

~dunkhan 1 year, 8 months ago

I checked this myself. After installing edge pmos this issue was no longer reproducible. I think we can close this bug.

~mil referenced this from #43 1 year, 8 months ago

~mil REPORTED CLOSED 1 year, 8 months ago

Thanks ~dunkhan - closing since this is no longer reproducible.

Opened #44 separately to handle automatically switching to software rendering if hw renderer is unavailable as this was the root cause of this issue.

Register here or Log in to comment, or comment via email.