supertuxkart / stk-code

The code base of supertuxkart
Other
4.47k stars 1.05k forks source link

Segmentation fault on startup (aarch64 RK3399) #4194

Closed abchk1234 closed 4 years ago

abchk1234 commented 4 years ago

Hi,

I compiled supertuxkart from git on a single board computer (Rock Pi 4).

However the compiled program fails to run:

[verbose  ] main: Error messages and other text output will be logged to /home/aaditya/.config/supertuxkart/config-0.10/stdout.log.
[error  ] User Config: Unknown value for karts-powerup-gui; expected true or false
[error  ] User Config: Unknown value for show_story_mode_timer; expected true or false
[error  ] User Config: Unknown value for show_speedrun_timer; expected true or false
[error  ] User Config: Couldn't find parameter group stun-servers-ipv6
[error  ] User Config: Unknown value for race-chat; expected true or false
[info   ] [FileManager]: Data files will be fetched from: '/home/data/git/stk/stk-code//data/'
[info   ] [FileManager]: Data files will be fetched from: '/home/data/git/stk/stk-code//data/../../stk-assets/'
[info   ] [FileManager]: User directory is '/home/aaditya/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/aaditya/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/aaditya/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/aaditya/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/home/data/git/stk/stk-code//data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/home/data/git/stk/stk-code//data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/home/data/git/stk/stk-code//data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/home/data/git/stk/stk-code//data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/home/data/git/stk/stk-code//data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/home/data/git/stk/stk-code//data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/home/data/git/stk/stk-code//data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/home/data/git/stk/stk-code//data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/home/data/git/stk/stk-code//data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/home/data/git/stk/stk-code//data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/home/data/git/stk/stk-code//data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US.UTF-8'.
[verbose  ] translation: Language 'English (United States)'.
[info   ] tinygettext: Adding language fallback en

..:: Antarctica Rendering Engine 2.0 ::..
Linux 5.4.6+ #1 SMP PREEMPT Tue Dec 31 19:49:12 IST 2019 aarch64
[info   ] IrrDriver: OpenGL version: 2.1
[info   ] IrrDriver: OpenGL vendor: (null)
[info   ] IrrDriver: OpenGL renderer: (null)
[info   ] IrrDriver: OpenGL version string: (null)
[error  ] main: Exception caught : basic_string::_M_construct null not valid.
[error  ] main: Aborting SuperTuxKart.
Segmentation fault

OS is Slarm64 with OpenGLES.

$ inxi -Fz
System:    Host: rock-pi-4 Kernel: 5.4.6+ aarch64 bits: 64 Desktop: Xfce 4.12.5 Distro: Slackware 14.2 
Machine:   Type: ARM Device System: Radxa ROCK Pi 4 details: N/A serial: <filter> 
CPU:       Topology: 6-Core (2-Die) model: N/A variant-1: cortex-a72 variant-2: cortex-a53 bits: 64 type: MCP MCM 
           Speed: 1200 MHz min/max: 408/1512:2016 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 4: 600 5: 1200 6: 1200 
Graphics:  Device-1: display-subsystem driver: rockchip_drm v: N/A 
           Device-2: rk3399-dw-hdmi driver: dwhdmi_rockchip v: N/A 
           Device-3: rk3399-mali driver: panfrost v: kernel 
           Display: server: X.Org 1.20.6 driver: modesetting unloaded: fbdev resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 9.0.0 128 bits) v: 3.3 Mesa 19.3.1 
Audio:     Device-1: rk3399-dw-hdmi driver: dwhdmi_rockchip 
           Device-2: simple-audio-card driver: asoc_simple_card 
           Sound Server: ALSA v: k5.4.6+ 
Network:   Device-1: rk3399-gmac driver: rk_gmac_dwmac 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter type: USB driver: r8188eu 
           IF: wlan1 state: up mac: <filter> 
           IF-ID-1: dummy0 state: down mac: <filter> 
           IF-ID-2: wlan0 state: down mac: <filter> 
Drives:    Local Storage: total: 252.48 GiB used: 30.25 GiB (12.0%) 
           ID-1: /dev/mmcblk2 model: SLD32G size: 28.91 GiB 
           ID-2: /dev/sda type: USB model: TO Exter nal USB 3.0 size: 223.57 GiB 
Partition: ID-1: / size: 28.44 GiB used: 10.42 GiB (36.6%) fs: ext4 dev: /dev/mmcblk2p1 
           ID-2: /home size: 105.30 GiB used: 19.59 GiB (18.6%) fs: ext4 dev: /dev/sda1 
           ID-3: /tmp size: 22.51 GiB used: 245.7 MiB (1.1%) fs: ext4 dev: /dev/sda5 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 202 Uptime: 4h 02m Memory: 3.78 GiB used: 1.46 GiB (38.5%) Shell: bash inxi: 3.0.37 

$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context, 
    GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_libglvnd, GLX_EXT_no_config_context, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context, 
    GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, 
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, 
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, 
    GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context, 
    GLX_ARB_create_context_profile, GLX_ARB_fbconfig_float, 
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 9.0.0, 128 bits) (0xffffffff)
    Version: 19.3.1
    Accelerated: no
    Video memory: 3867MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 9.0.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.3.1
OpenGL core profile shading language version string: 3.30

Thanks.

Benau commented 4 years ago

Have you passed -DUSE_GLES2=ON to cmake?

abchk1234 commented 4 years ago

Have you passed -DUSE_GLES2=ON to cmake?

Thanks @Benau !

Added -DUSE_GLES2=ON to build options while compiling:

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found EGL: /usr/lib64/libEGL.so  
-- Could NOT find Wayland (missing: WAYLAND_CLIENT_LIBRARY WAYLAND_CURSOR_LIBRARY WAYLAND_EGL_LIBRARY XKBCOMMON_LIBRARY WAYLAND_CLIENT_INCLUDE_DIR WAYLAND_CURSOR_INCLUDE_DIR WAYLAND_EGL_INCLUDE_DIR XKBCOMMON_INCLUDE_DIR) 
CMake Warning at lib/irrlicht/CMakeLists.txt:60 (message):
  Wayland not found.  Disable wayland support.

CMake Deprecation Warning at lib/wiiuse/CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Configuring WiiUse version 0.15.5
-- Found Bluez: /usr/lib64/libbluetooth.so  
CMake Deprecation Warning at lib/angelscript/projects/cmake/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Configuring angelscript 2.32.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenAL: /usr/lib64/libopenal.so  
-- Found OggVorbis: /usr/include  
-- Checking for module 'freetype2'
--   Found freetype2, version 23.1.17
-- Use system harfbuzz: /usr/lib64/libharfbuzz.so
-- Checking for module 'fribidi'
--   Found fribidi, version 1.0.8
-- Looking for hb_ft_font_create_referenced
-- Looking for hb_ft_font_create_referenced - found
-- Looking for hb_ft_font_set_load_flags
-- Looking for hb_ft_font_set_load_flags - found
-- Looking for hb_buffer_set_invisible_glyph
-- Looking for hb_buffer_set_invisible_glyph - found
-- Performing Test HAVE_DECL_HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
-- Performing Test HAVE_DECL_HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES - Success
-- System libraqm not found, use the bundled one.
-- Use system libsqlite3: /usr/lib64/libsqlite3.so
-- Performing Test NO_LIBATOMIC_NEEDED
-- Performing Test NO_LIBATOMIC_NEEDED - Success
-- Found CURL: /usr/lib64/libcurl.so (found version "7.67.0")  
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1d")  
-- OpenSSL will be used for cryptography in STK.
-- Assets found
-- Configuring done

However it failed on running:

[verbose  ] main: Error messages and other text output will be logged to /home/aaditya/.config/supertuxkart/config-0.10/stdout.log.
[error  ] User Config: Unknown value for karts-powerup-gui; expected true or false
[error  ] User Config: Unknown value for show_story_mode_timer; expected true or false
[error  ] User Config: Unknown value for show_speedrun_timer; expected true or false
[error  ] User Config: Couldn't find parameter group stun-servers-ipv6
[error  ] User Config: Unknown value for race-chat; expected true or false
[info   ] [FileManager]: Data files will be fetched from: '/home/data/git/stk/stk-code//data/'
[info   ] [FileManager]: Data files will be fetched from: '/home/data/git/stk/stk-code//data/../../stk-assets/'
[info   ] [FileManager]: User directory is '/home/aaditya/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/aaditya/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/aaditya/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/aaditya/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/home/data/git/stk/stk-code//data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/home/data/git/stk/stk-code//data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/home/data/git/stk/stk-code//data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/home/data/git/stk/stk-code//data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/home/data/git/stk/stk-code//data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/home/data/git/stk/stk-code//data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/home/data/git/stk/stk-code//data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/home/data/git/stk/stk-code//data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/home/data/git/stk/stk-code//data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/home/data/git/stk/stk-code//data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/home/data/git/stk/stk-code//data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/home/data/git/stk/stk-code//data/../../stk-assets/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US.UTF-8'.
[verbose  ] translation: Language 'English (United States)'.
[info   ] tinygettext: Adding language fallback en

..:: Antarctica Rendering Engine 2.0 ::..
Linux 5.4.6+ #1 SMP PREEMPT Tue Dec 31 19:49:12 IST 2019 aarch64
[info   ] IrrDriver: OpenGL version: 2.1
[info   ] IrrDriver: OpenGL vendor: (null)
[info   ] IrrDriver: OpenGL renderer: (null)
[info   ] IrrDriver: OpenGL version string: (null)
[error  ] main: Exception caught : basic_string::_M_construct null not valid.
[error  ] main: Aborting SuperTuxKart.
Segmentation fault

Thanks.

P.S. If you think its a good idea, I can open a pull request mentioning -DUSE_GLES2=ON option in INSTALL.md.

Benau commented 4 years ago

seems that your opengl(es) driver is too old to play stk, or stk is not detecting your new opengl(es) drivers... (deve!)

deveee commented 4 years ago

No need to use USE_GLES2=1 manually, because there is:

    if((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") OR 
       (${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64"))
        option(USE_GLES2 "Use OpenGL ES2 renderer" ON)
...

in cmake.

And I don't know what is the current state of panfrost driver, but your glxinfo shows llvmpipe software rendering (which still should work, but slow).

If you have two drivers installed (non-free/mesa), make sure that everything is properly configured, libs in /etc/alternatives are correct etc. And you can also see what does eglinfo say.

abchk1234 commented 4 years ago

And I don't know what is the current state of panfrost driver, but your glxinfo shows llvmpipe software rendering (which still should work, but slow).

If you have two drivers installed (non-free/mesa), make sure that everything is properly configured, libs in /etc/alternatives are correct etc. And you can also see what does eglinfo say.

Thanks @deveee .

2 drivers are installed I think, one panfrost via mesa, and the other fbdev via xf86-video-fbdev.

$ inxi -G
Graphics:  Device-1: display-subsystem driver: rockchip_drm v: N/A 
           Device-2: rk3399-dw-hdmi driver: dwhdmi_rockchip v: N/A 
           Device-3: rk3399-mali driver: panfrost v: kernel 
           Display: server: X.Org 1.20.6 driver: modesetting unloaded: fbdev resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 9.0.0 128 bits) v: 3.3 Mesa 19.3.1 

There is no command named elginfo. egl is provided by the mesa package.

I tried panfrost with mesa 19.3 on Manjaro ARM but there were crashes. Will wait for the next RC or try from git. With panfrost even OpenGL looks to be possible: https://forum.armbian.com/topic/11334-build-armbian-with-panfrost/

Thanks for your help.

deveee commented 4 years ago

I don't have device to test, but from what they said in 1st April 2019: https://rosenzweig.io/blog/kodi-supertuxkart-panfrost.html "For instance, the classic (OpenGL ES 2.0) backend of the ever-popular kart racing game, SuperTuxKart, now renders with some minor glitches with Panfrost."

OpenGL may work depending on current driver state, but probably GLES will work faster. And if mesa/panfrost is used, then glxinfo should say it instead of llvmpipe.

The eglinfo is available in mesa-utils-extra package in my system.

abchk1234 commented 4 years ago

I don't have device to test, but from what they said in 1st April 2019: https://rosenzweig.io/blog/kodi-supertuxkart-panfrost.html "For instance, the classic (OpenGL ES 2.0) backend of the ever-popular kart racing game, SuperTuxKart, now renders with some minor glitches with Panfrost."

OpenGL may work depending on current driver state, but probably GLES will work faster. And if mesa/panfrost is used, then glxinfo should say it instead of llvmpipe.

The eglinfo is available in mesa-utils-extra package in my system.

I switched to Armbian (Debian based) for testing.

Updated to panfrost using guide and installed eglinfo:

$ eglinfo
EGL client extensions string:
    EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query
    EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
    EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland
    EGL_EXT_platform_x11 EGL_MESA_platform_gbm
    EGL_MESA_platform_surfaceless

GBM platform:
eglinfo: eglInitialize failed

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
Segmentation fault
$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Panfrost (0xffffffff)
    Device: Mali T860 (Panfrost) (0xffffffff)
    Version: 20.0.0
    Accelerated: yes
    Video memory: 3867MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali T860 (Panfrost)
OpenGL version string: 2.1 Mesa 20.0.0-devel (git-3bd4bcd418)
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.0-devel (git-3bd4bcd418)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

Recompiled supertuxkart.

$ ./supertuxkart.sh
[info   ] [FileManager]: Creating directory(ies) '/home/aaditya/.config/supertuxkart/config-0.10/'
[info   ] FileManager: Creating directory '/home/aaditya/.config/supertuxkart/'.
[info   ] FileManager: Creating directory '/home/aaditya/.config/supertuxkart/config-0.10/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/addons/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/addons/icons/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/addons/tmp/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/screenshots/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/replay/'.
[info   ] FileManager: Creating directory '/home/aaditya/.cache/supertuxkart'.
[info   ] FileManager: Creating directory '/home/aaditya/.cache/supertuxkart/cached-textures/'.
[info   ] FileManager: Creating directory '/home/aaditya/.local/share/supertuxkart/grandprix/'.
[verbose  ] main: Error messages and other text output will be logged to /home/aaditya/.config/supertuxkart/config-0.10/stdout.log.
[info   ] UserConfig: Could not read user config file '/home/aaditya/.config/supertuxkart/config-0.10/config.xml'.  A new file will be created.
[info   ] [FileManager]: Data files will be fetched from: '/mnt/data/git/stk/stk-code//data/'
[info   ] [FileManager]: Data files will be fetched from: '/mnt/data/git/stk/stk-code//data/../../stk-assets/'
[info   ] [FileManager]: User directory is '/home/aaditya/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/aaditya/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/aaditya/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/aaditya/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/mnt/data/git/stk/stk-code//data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/mnt/data/git/stk/stk-code//data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/mnt/data/git/stk/stk-code//data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/mnt/data/git/stk/stk-code//data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/mnt/data/git/stk/stk-code//data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/mnt/data/git/stk/stk-code//data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/mnt/data/git/stk/stk-code//data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/mnt/data/git/stk/stk-code//data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US.UTF-8'.
[verbose  ] translation: Language 'English (United States)'.
[info   ] tinygettext: Adding language fallback en

[info   ] ServerConfig: Could not read server config file '/home/aaditya/.config/supertuxkart/config-0.10/server_config.xml'. A new file will be created.
..:: Antarctica Rendering Engine 2.0 ::..
Linux 5.3.11-rockchip64 #19.11.3 SMP PREEMPT Mon Nov 18 21:03:09 CET 2019 aarch64
Segmentation fault

egl looks to be segfaulting for some reason, maybe due to version mismatch between custom installed mesa and system installed headers. Both supertuxkart and eglinfo fail.

abchk1234 commented 4 years ago

Recompiled mesa with additional options:

meson -D egl=true -D gles1=true -D gles2=true -D shared-glapi=true -Ddri-drivers= -Dvulkan-drivers= -Dgallium-drivers=panfrost,kmsro -Dlibunwind=false -Dprefix=/usr build/
$ eglinfo 
EGL client extensions string:
    EGL_EXT_client_extensions EGL_EXT_device_base
    EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base
    EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
    EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm
    EGL_MESA_platform_surfaceless EGL_EXT_platform_device

GBM platform:
EGL API version: 1.4
EGL vendor string: Mesa Project
EGL version string: 1.4
EGL client APIs: OpenGL OpenGL_ES 
EGL extensions string:
    EGL_ANDROID_blob_cache EGL_EXT_buffer_age
    EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs
    EGL_KHR_create_context EGL_KHR_create_context_no_error
    EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
    EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image
    EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base
    EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_partial_update
    EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
    EGL_EXT_pixel_format_float EGL_KHR_wait_sync
    EGL_MESA_configless_context EGL_MESA_drm_image
    EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
    EGL_WL_bind_wayland_display
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces 
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x34325241--         y  y  y     win
0x02 32  0  8  8  8  8 24  0  0 0 0x34325241--         y  y  y     win
0x03 32  0  8  8  8  8 24  8  0 0 0x34325241--         y  y  y     win
0x04 32  0  8  8  8  8 32  0  0 0 0x34325241--         y  y  y     win
0x05 24  0  8  8  8  0  0  0  0 0 0x34325258--         y  y  y     win
0x06 24  0  8  8  8  0 24  0  0 0 0x34325258--         y  y  y     win
0x07 24  0  8  8  8  0 24  8  0 0 0x34325258--         y  y  y     win
0x08 24  0  8  8  8  0 32  0  0 0 0x34325258--         y  y  y     win

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
EGL API version: 1.4
EGL vendor string: Mesa Project
EGL version string: 1.4
EGL client APIs: OpenGL OpenGL_ES 
EGL extensions string:
    EGL_ANDROID_blob_cache EGL_CHROMIUM_sync_control EGL_EXT_buffer_age
    EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs
    EGL_KHR_create_context EGL_KHR_create_context_no_error
    EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
    EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image
    EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base
    EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_partial_update
    EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
    EGL_EXT_pixel_format_float EGL_KHR_wait_sync
    EGL_MESA_configless_context EGL_MESA_drm_image
    EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
    EGL_NOK_texture_from_pixmap
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces 
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x21TC      a  y  y  y     win,pb,pix
0x02 32  0  8  8  8  8 24  0  0 0 0x21TC      a  y  y  y     win,pb,pix
0x03 32  0  8  8  8  8 24  8  0 0 0x21TC      a  y  y  y     win,pb,pix
0x04 32  0  8  8  8  8 32  0  0 0 0x21TC      a  y  y  y     win,pb,pix
0x05 24  0  8  8  8  0  0  0  0 0 0x21TC      y  y  y  y     win,pb,pix
0x06 24  0  8  8  8  0 24  0  0 0 0x21TC      y  y  y  y     win,pb,pix
0x07 24  0  8  8  8  0 24  8  0 0 0x21TC      y  y  y  y     win,pb,pix
0x08 24  0  8  8  8  0 32  0  0 0 0x21TC      y  y  y  y     win,pb,pix
0x09 32  0  8  8  8  8  0  0  0 0 0x22DC      a  y  y  y     win,pb,pix
0x0a 32  0  8  8  8  8 24  0  0 0 0x22DC      a  y  y  y     win,pb,pix
0x0b 32  0  8  8  8  8 24  8  0 0 0x22DC      a  y  y  y     win,pb,pix
0x0c 32  0  8  8  8  8 32  0  0 0 0x22DC      a  y  y  y     win,pb,pix
0x0d 24  0  8  8  8  0  0  0  0 0 0x22DC      y  y  y  y     win,pb,pix
0x0e 24  0  8  8  8  0 24  0  0 0 0x22DC      y  y  y  y     win,pb,pix
0x0f 24  0  8  8  8  0 24  8  0 0 0x22DC      y  y  y  y     win,pb,pix
0x10 24  0  8  8  8  0 32  0  0 0 0x22DC      y  y  y  y     win,pb,pix

Device platform:
eglinfo: eglInitialize failed

Works now!

$ ./supertuxkart.sh
[verbose  ] main: Error messages and other text output will be logged to /home/aaditya/.config/supertuxkart/config-0.10/stdout.log.
[info   ] [FileManager]: Data files will be fetched from: '/mnt/data/git/stk/stk-code//data/'
[info   ] [FileManager]: Data files will be fetched from: '/mnt/data/git/stk/stk-code//data/../../stk-assets/'
[info   ] [FileManager]: User directory is '/home/aaditya/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/aaditya/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/aaditya/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/aaditya/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/mnt/data/git/stk/stk-code//data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/mnt/data/git/stk/stk-code//data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/mnt/data/git/stk/stk-code//data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/mnt/data/git/stk/stk-code//data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/mnt/data/git/stk/stk-code//data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/mnt/data/git/stk/stk-code//data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/mnt/data/git/stk/stk-code//data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/mnt/data/git/stk/stk-code//data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/mnt/data/git/stk/stk-code//data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/mnt/data/git/stk/stk-code//data/../../stk-assets/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US.UTF-8'.
[verbose  ] translation: Language 'English (United States)'.
[info   ] tinygettext: Adding language fallback en

..:: Antarctica Rendering Engine 2.0 ::..
Linux 5.3.11-rockchip64 #19.11.3 SMP PREEMPT Mon Nov 18 21:03:09 CET 2019 aarch64
Mesa: User error: GL_INVALID_ENUM in glGetIntegerv(pname=GL_MAJOR_VERSION)
[info   ] IrrDriver: OpenGL version: 2.1
[info   ] IrrDriver: OpenGL vendor: Panfrost
[info   ] IrrDriver: OpenGL renderer: Mali T860 (Panfrost)
[info   ] IrrDriver: OpenGL version string: OpenGL ES 2.0 Mesa 20.0.0-devel (git-3bd4bcd418)
[info   ] GLDriver: EXT texture format BGRA8888 Present
[warn   ] irr_driver: Using the fixed pipeline (old GPU, or shaders disabled in options)
[info   ] player_manager: A new players.xml file will be created.
[info   ] Highscore Manager: New highscore file '/home/aaditya/.config/supertuxkart/config-0.10/highscore.xml' created.

[warn   ] Track: NavMesh is not found for arena STKMaze, disable AI for it.

[warn   ] Irrlicht: Could not open file of image: /mnt/data/git/stk/stk-code//data/../../stk-assets/tracks/myNewTrack/screenshot.jpg
[error  ] STKTexManager: Texture /mnt/data/git/stk/stk-code//data/../../stk-assets/tracks/myNewTrack/screenshot.jpg not found or invalid.
[info   ] GrandPrixManager: Loading Grand Prix files from /mnt/data/git/stk/stk-code//data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from /home/aaditya/.local/share/supertuxkart/grandprix/
[warn   ] OpenGL: OpenGL version is too old!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] HTTPRequest: Downloading https://online.supertuxkart.net/dl/xml/online_news.xml
[info   ] addons: Downloading updated addons.xml.

Thanks! :pray: :slightly_smiling_face: