Skip to content

Startup crash on raspberry pi 5 #475

@nenadalm

Description

@nenadalm

Describe the bug

When I try to run flatpak on raspberry pi 5, it crashes.

How to reproduce

$ flatpak info com.agateau.PixelWheels
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
Exception in thread "main" java.lang.OutOfMemoryError
	at org.lwjgl.system.MemoryUtil.nmemAllocChecked(MemoryUtil.java:244)
	at org.lwjgl.glfw.GLFWImage.malloc(GLFWImage.java:165)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.setIcon(Lwjgl3Window.java:311)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.setIcon(Lwjgl3Window.java:300)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:505)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:415)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:401)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:113)
	at com.agateau.pixelwheels.desktop.DesktopLauncher.main(DesktopLauncher.java:49)
AL lib: (EE) alc_cleanup: 1 device not closed

Expected behavior

Program starts.

Information about your build

Pixel Wheels version:

$ flatpak info com.agateau.PixelWheels

Pixel Wheels - Pixel Wheels is a retro top-down race game

          ID: com.agateau.PixelWheels
         Ref: app/com.agateau.PixelWheels/aarch64/stable
        Arch: aarch64
      Branch: stable
     Version: 0.26.0
     License: GPL-3.0-or-later
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 208.7 MB
     Runtime: org.freedesktop.Platform/aarch64/23.08
         Sdk: org.freedesktop.Sdk/aarch64/23.08

      Commit: 15e2189fd0baa70b0ccfe22eab6137848ca658e1719fee24d4ab641820be9ce8
     Subject: Build with flatpak jdk extension instead of bundled to support arm64 (b3fb9ba3)
        Date: 2024-10-12 14:31:07 +0000

Binary origin:

https://flathub.org/apps/com.agateau.PixelWheels

OS:

  • Linux

OS version:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Additional context

I fould that the problem seems to be that jemalloc expect page size 4K, but raspberry pi os has it 16K ( https://stackoverflow.com/questions/77674853/polars-jemalloc-error-unsupported-system-page-size ). There seems to be ticket that is trying to resolve page size issues: jemalloc/jemalloc#2657

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions