Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port: Another world, doesn't start, ASSERTION FAILED: !is_error() #15812

Open
stuaxo opened this issue Oct 26, 2022 · 2 comments
Open

Port: Another world, doesn't start, ASSERTION FAILED: !is_error() #15812

stuaxo opened this issue Oct 26, 2022 · 2 comments
Labels
bug Something isn't working ports

Comments

@stuaxo
Copy link

stuaxo commented Oct 26, 2022

These messages were logged

33.725 Taskbar(30:30): Activated app with ID 3
34.302 raw(45:45): SERENITY_VideoInit: Initialising SDL application
34.385 raw(45:45): ASSERTION FAILED: !is_error()
././AK/Error.h:112
34.385 [#0 raw(45:45)]: Terminating raw(45) due to signal 6
34.389 [#0 Finalizer Task(5:5)]: Backtrace:
0x00000000deadc0de  Kernel::Processor::switch_context(Kernel::Thread*&, Kernel::Thread*&) + 0x383
34.389 [#0 Finalizer Task(5:5)]: Backtrace:
0x00000000deadc0de  Kernel::Processor::switch_context(Kernel::Thread*&, Kernel::Thread*&) + 0x383
34.393 [#0 Finalizer Task(5:5)]: Generating coredump for pid: 45
34.397 CrashDaemon(26:26): New coredump file: /tmp/coredump/raw_45_1666803423
35.060 CrashReporter(49:49): Started thread "", tid = 50
41.727 CrashReporter(49:50): Generating backtrace took 6631 ms
41.731 CrashReporter(49:50): --- Backtrace for thread #0 (TID 45) ---
41.731 CrashReporter(49:50): 0x0000001147c7e02b: [/usr/lib/libsystem.so] syscall2 +0xb (syscall.cpp:25 => syscall.cpp:24)
41.731 CrashReporter(49:50): 0x0000001fd1e5c0e8: [/usr/lib/libc.so] abort +0x26 (stdlib.cpp:387)
41.731 CrashReporter(49:50): 0x0000001fd1e6244e: [/usr/lib/libc.so] __assertion_failed.localalias +0x7e (assert.cpp:33)
41.735 CrashReporter(49:50): 0x00000000cf2b49cb: [/usr/lib/libgui.so.serenity] GUI::Clipboard::initialize(AK::Badge<GUI::Application>) +0x9b (Error.h:112 => Clipboard.cpp:42)
41.735 CrashReporter(49:50): 0x00000000cf29e75b: [/usr/lib/libgui.so.serenity] GUI::Application::Application(int, char**, Core::EventLoop::MakeInspectable) +0x1db (Application.cpp:78)
41.735 CrashReporter(49:50): 0x00000015b723ca0a: [/usr/local/lib/libSDL2-2.0.so.0] AK::NonnullRefPtr<GUI::Application> GUI::Application::construct<GUI::Application, int, decltype(nullptr)>(int&&, decltype(nullptr)&&) +0x59 ()
41.740 CrashReporter(49:50): 0x00000015b7237cd9: [/usr/local/lib/libSDL2-2.0.so.0] SERENITY_VideoInit(SDL_VideoDevice*) +0x8a ()
41.746 CrashReporter(49:50): 0x00000015b713729b: [/usr/local/lib/libSDL2-2.0.so.0] SDL_VideoInit_REAL +0x352 ()
41.747 CrashReporter(49:50): 0x00000015b7030e00: [/usr/local/lib/libSDL2-2.0.so.0] SDL_InitSubSystem_REAL +0xf6 ()
41.747 CrashReporter(49:50): 0x00000015b7030f69: [/usr/local/lib/libSDL2-2.0.so.0] SDL_Init_REAL +0x14 ()
41.747 CrashReporter(49:50): 0x00000015b704a2c8: [/usr/local/lib/libSDL2-2.0.so.0] SDL_Init_DEFAULT +0x1d ()
41.747 CrashReporter(49:50): 0x00000015b7052f23: [/usr/local/lib/libSDL2-2.0.so.0] SDL_Init +0x18 ()
41.750 CrashReporter(49:50): 0x00000006fb7815dc: [/opt/Another-World/raw] SDLStub::init(char const*) [clone .localalias] +0x12 (sysImplementation.cpp:63)
41.750 CrashReporter(49:50): 0x00000006fb77ef48: [/opt/Another-World/raw] Engine::init() +0x20 (engine.cpp:53)
41.750 CrashReporter(49:50): 0x00000006fb77e81a: [/opt/Another-World/raw] main +0xb6 (main.cpp:69)
41.755 CrashReporter(49:50): 0x00000006fb77e9b8: [/opt/Another-World/raw] _entry +0x48 (crt0.cpp:48)
42.481 CrashReporter(49:50): Generating backtrace took 560 ms
42.481 CrashReporter(49:50): --- Backtrace for thread #1 (TID 48) ---
42.481 CrashReporter(49:50): 0x0000001147c7e017: [/usr/lib/libsystem.so] syscall1 +0x7 (syscall.cpp:20 => syscall.cpp:19)
42.485 CrashReporter(49:50): 0x0000001fd1e73041: [/usr/lib/libc.so] pthread_cond_timedwait +0x81 (serenity.h:43 => pthread_cond.cpp:104)
42.485 CrashReporter(49:50): 0x00000015b72537cf: [/usr/local/lib/libSDL2-2.0.so.0] SDL_CondWaitTimeout_REAL +0xe3 ()
42.491 CrashReporter(49:50): 0x00000015b7253bc0: [/usr/local/lib/libSDL2-2.0.so.0] SDL_SemWaitTimeout_REAL +0x97 ()
42.491 CrashReporter(49:50): 0x00000015b70c8dae: [/usr/local/lib/libSDL2-2.0.so.0] SDL_TimerThread +0x247 ()
42.496 CrashReporter(49:50): 0x00000015b70c8708: [/usr/local/lib/libSDL2-2.0.so.0] SDL_RunThread +0x58 ()
42.497 CrashReporter(49:50): 0x00000015b7252fc7: [/usr/local/lib/libSDL2-2.0.so.0] RunThread +0x17 ()
42.497 CrashReporter(49:50): 0x0000001fd1e7201b: [/usr/lib/libc.so] pthread_create_helper +0x2b (pthread.cpp:75)

@stuaxo stuaxo changed the title Port: Another world, doesn't start, dumps core Port: Another world, doesn't start, ASSERTION FAILED: !is_error() Oct 26, 2022
@gmta gmta added bug Something isn't working ports labels Oct 29, 2022
@safarp
Copy link
Contributor

safarp commented Apr 17, 2023

I can reproduce the issue by running the raw executable from the Start menu. When I run it directly from the terminal it works fine.
@stuaxo do you remember how you were running the executable?

Anyway, from the call stack it seems more like an issue with the SDL2 port. May be it was introduces in some recent updates of the SDL2 library.

I will need to investigate it little bit more.

@stuaxo
Copy link
Author

stuaxo commented Apr 17, 2023

I was testing everything by launching from the start menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ports
Projects
None yet
Development

No branches or pull requests

3 participants