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
[SOLVED] Compiling from source gives an instant crash without information in the log-file #7757
Comments
The stack trace indicates that the crash happened somewhere outside of OTTD, specifically in the sound driver (libpulse). I suspect there's nothing we can do about that, I'm afraid - it'll want reporting somewhere else. However, as a workaround, what happens if you run without sounds? ( |
I'll try that, thank you very much. |
Ok, it was that. |
May I ask you where did the stacktrace shows a "sound driver issue"? I'm fairly novice in debugging and I would like to know. Thanks |
Ok I found this: https://wiki.libsdl.org/FAQUsingSDL |
From crash.log:
The fact that there's no OTTD code in this stacktrace (but has been caught by OTTD's crashlog code) tells me it's one of the non-main threads that's dying. Since the error is happening so quickly (immediately after what's likely the pthread spawn call), this means that this isn't likely to be an OTTD issue |
Ok, so on the IRC user @nnyby and @LordAro gave me the solution. export SDL_AUDIODRIVER=alsa
./configure
make And the game will be able to run without issues on EasyOS, and probably other puppy linux based OS variants. |
Version of OpenTTD
1.9.3 - Compiled from source using GCC 8.3.0 on a non-conventional UNIX.
Expected result
Actual Game Loading
Actual result
Crashes instantly without a description
Steps to reproduce
Hello, I'm using a very non-conventional OS called "EasyOS" developed by Barry Kauler from Puppy Linux, you can literally make it run in less than 20 minutes if you want to test my issue here.
I was able to run the compilation process for OTTD, I have all the required libraries and when it comes to execute openttd in a terminal, the game crashes instantly without a warning nor a reason.
Using a "./openttd -d 3" command I was able to output the console into this file:
crashlog.txt
Also, here's the output crash that the game creates in ~/.openttd/
crash.log
As you can see, there's something related to this line on the crashlog.txt:
GLib:ERROR:../../../glib/ghash.c:377:g_hash_table_lookup_node: assertion failed: (!g_atomic_ref_count_compare (&hash_table->ref_count, 0))
Is it because I'm missing something? I sure don't have any idea, but it would be nice to make it run as the game is not very demanding and it would be a great addition for the OS.
Thanks.
The text was updated successfully, but these errors were encountered: