Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Segmentation fault on startup #106

@Kangaroux

Description

@Kangaroux

System Specs

  • OS: Ubuntu 20.04
  • OpenChart version: latest (b3b4409)

Overview

Segfault in SDL when trying to call SDL_GetWindowSurface(). This only happens on my desktop. It runs fine on my laptop. Tried reinstalling libsdl. I've had a few cases where it doesn't segfault but just testing it again right now I'm not able to get it to launch. The window appears briefly but I think it's crashing before it has a chance to ever draw something, so it's segfaulting the first time SDL_GetWindowSurface() is called.

Crashes here:

Surface = new Surface(SDL_GetWindowSurface(Handle), freeOnDispose: false);

GDB backtrace:

[21:23:02.219 INF] ------------------------
[21:23:02.254 INF] Initializing...
[21:23:02.255 DBG] Set current directory to /mnt/ssd/projects/OpenChart/bin
[21:23:02.255 DBG] Setting up file formats.
[21:23:02.256 INF] Finding noteskins...
[21:23:02.328 INF] Loaded noteskin 'default_arrow' (1 key skin(s) found).
[21:23:02.329 INF] Ready.
[21:23:02.329 INF] Displaying main window.

Thread 1 "OpenChart" received signal SIGSEGV, Segmentation fault.
0x00007ffff194f991 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
(gdb) bt
#0  0x00007ffff194f991 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#1  0x00007ffff1958e6d in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#2  0x00007ffff19595e3 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#3  0x00007ffff147b44d in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#4  0x00007ffff146bb04 in dbus_connection_dispatch ()
   from /lib/x86_64-linux-gnu/libdbus-1.so.3
#5  0x00007ffff1959805 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#6  0x00007ffff1944895 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#7  0x00007ffff194a899 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#8  0x00007ffff191c73a in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#9  0x00007ffff191caac in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#10 0x00007ffff18c193d in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#11 0x00007ffff18bc35c in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#12 0x00007ffff191a632 in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#13 0x00007ffff191b94d in ?? () from /lib/x86_64-linux-gnu/libSDL2.so
#14 0x00007fff7e58944d in ?? ()
#15 0x00007fff7dd2ef10 in ?? ()
#16 0x00000000029edcbb in ?? ()
#17 0x00007ffff7524718 in ?? ()
   from /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/libcoreclr.so
#18 0x00007fffffffd3d8 in ?? ()
#19 0x00007fff7dd472e8 in ?? ()
#20 0x00007fff7dd472e8 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA feature isn't working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions