Baron Pampa Posted June 6, 2020 Hi:) This time I've messed around with Eternity on PinebookPro, an ARM laptop with Manjaro. The good news is that Eternity is working, but I wanted to raise two issues: - when trying to compile the AUR version(straight from git), an error stops the compilation: [ 19%] Built target ADLMIDI_static [ 19%] Building C object libpng/CMakeFiles/png_static.dir/pngtrans.c.o [ 20%] Building CXX object acsvm/ACSVM/CMakeFiles/acsvm.dir/ModuleACSE.cpp.o [ 21%] Building C object libpng/CMakeFiles/png_static.dir/pngwio.c.o [ 21%] Building C object libpng/CMakeFiles/png_static.dir/pngwrite.c.o [ 21%] Building CXX object acsvm/ACSVM/CMakeFiles/acsvm.dir/PrintBuf.cpp.o [ 21%] Building C object libpng/CMakeFiles/png_static.dir/pngwtran.c.o [ 21%] Building C object libpng/CMakeFiles/png_static.dir/pngwutil.c.o [ 22%] Building C object libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o /home/XXX/Builds/eternity/libpng/arm/arm_init.c:37:32: fatal error: contrib/arm-neon/linux.c: No such file or directory 37 | # define PNG_ARM_NEON_FILE "contrib/arm-neon/linux.c" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. After some research I've compiled it with libpng 1.6.35. Newest version, 1.6.37 is not working. Is it possible to dynamically link libpng or update it's version in the repo? More serious issue: when exiting the game, program crashes or hangs. Crash happens with "corrupted double-linked list" message, I think that sometimes it segfaults. Most often it doesn't quit at all and I need to kill the process. It wouldn't be much of an issue if not for the fact that it's impossible to save the config. If you are interested in fixing that I'd be glad to help with providing logs or a debug stack trace. 0 Quote Share this post Link to post
printz Posted June 6, 2020 3 minutes ago, Baron Pampa said: More serious issue: when exiting the game, program crashes or hangs. Crash happens with "corrupted double-linked list" message, I think that sometimes it segfaults. Most often it doesn't quit at all and I need to kill the process. It wouldn't be much of an issue if not for the fact that it's impossible to save the config. If you are interested in fixing that I'd be glad to help with providing logs or a debug stack trace. Try if it happens if you disable ENDOOM. Go to the video settings in the menu to disable ENDOOM. 3 minutes ago, Baron Pampa said: After some research I've compiled it with libpng 1.6.35. Newest version, 1.6.37 is not working. Is it possible to dynamically link libpng or update it's version in the repo? Your error looks strange: it complains about a macro? Anyway that seems like a change to do in CMakeLists.txt. I'm writing that as a GitHub task. 0 Quote Share this post Link to post
Altazimuth Posted June 6, 2020 Never had CSG complain about this when using Raspbian before. Must be new or a Manjaro thing, or could PKGBUILD be to blame? 0 Quote Share this post Link to post
Baron Pampa Posted June 7, 2020 @Altazimuth I doubt it's PKGBUILD since after the first error I've switched to compiling code straight from your git. @printz I've just tried. It seems that after disabling ENDOOM result consequently is: malloc(): unsorted double linked list corrupted Aborted (core dumped) 0 Quote Share this post Link to post
printz Posted June 7, 2020 Hmm. For such stuff, valgrind would help. I haven't used CMake+make lately to make debug builds. But try running valgrind with a debug build of Eternity and post here the output in case of crash. 0 Quote Share this post Link to post
Baron Pampa Posted June 10, 2020 (edited) @printz Sorry for the delay - I have other stuff like most of us, so usually it takes me a few days to try something out and respond. Backtrace from gdb when process hangs and is exited through Ctrl+C: Quote D_SetGraphicsMode: Set graphics mode (using video driver 'SDL GL2D') [Thread 0xffffde65c1b0 (LWP 42792) exited] [Thread 0xffffde69d1b0 (LWP 42787) exited] ^C Thread 1 "eternity" received signal SIGINT, Interrupt. 0x0000fffff791cebc in fputc () from /usr/lib/libc.so.6 (gdb) backtrace #0 0x0000fffff791cebc in fputc () at /usr/lib/libc.so.6 #1 0x0000aaaaaacbf794 in M_SaveDefaultFile(defaultfile_t*) (df=0xaaaaab0191b8 <maindefaults>) at /home/brzegorz/Builds/eternity/source/m_misc.cpp:1543 #2 0x0000aaaaaacbf808 in M_SaveDefaults() () at /home/brzegorz/Builds/eternity/source/m_misc.cpp:1562 #3 0x0000aaaaaae08d20 in I_Quit() () at /home/brzegorz/Builds/eternity/source/sdl/i_system.cpp:160 #4 0x0000fffff78e7d7c in __run_exit_handlers () at /usr/lib/libc.so.6 #5 0x0000fffff78e7f0c in () at /usr/lib/libc.so.6 #6 0x0000aaaaaac9c33c in G_QuitDoom() () at /home/brzegorz/Builds/eternity/source/g_cmd.cpp:137 #7 0x0000aaaaaac9c348 in Handler_quit() () at valgrind --leak-check=full \ --show-leak-kinds=all \ --track-origins=yes \ --verbose \ --log-file=valgrind-out.txt \ ./executable exampleParam1/home/brzegorz/Builds/eternity/source/g_cmd.cpp:142 #8 0x0000aaaaaac23690 in C_DoRunCommand(command_t*, char const*) (command=0xaaaaab00e1a0 <Cmd_quit>, options=0xaaaaac8058b0 "") at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:393 #9 0x0000aaaaaac257a0 in C_RunBufferedCommand(bufferedcmd*) (bufcmd=0xaaaaac6e2950) at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:1291 #10 0x0000aaaaaac2587c in C_BufferCommand(int, command_t*, char const*, int) (cmtype=1, command=0xaaaaab00e1a0 <Cmd_quit>, options=0xaaaaaaeddcf4 "", cmdsrc=0) at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:1313 #11 0x0000aaaaaac233a8 in C_RunCommand(command_t*, char const*) (command=0xaaaaab00e1a0 <Cmd_quit>, options=0xaaaaaaeddcf4 "") at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:328 #12 0x0000aaaaaac230b4 in C_RunIndivTextCmd(char const*) (cmdname=0xaaaaaaeddcf0 "quit") at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:241 #13 0x0000aaaaaac23b88 in C_RunTextCmd(char const*) (command=0xaaaaaaeddcf0 "quit") at /home/brzegorz/Builds/eternity/source/c_runcmd.cpp:536 #14 0x0000aaaaaacdbd6c in MN_PopupResponder(event_t*, int) (ev=0xaaaaab0501f8 <events+256>, action=0) at /home/brzegorz/Builds/eternity/source/mn_misc.cpp:189 #15 0x0000aaaaaaccdee4 in MN_Responder(event_t*) (ev=0xaaaaab0501f8 <events+256>) at /home/brzegorz/Builds/eternity/source/mn_engin.cpp:834 #16 0x0000aaaaaac3dc5c in D_ProcessEvents() () at /home/brzegorz/Builds/eternity/source/d_main.cpp:211 #17 0x0000aaaaaac44034 in TryRunTics() () at /home/brzegorz/Builds/eternity/source/d_net.cpp:829 #18 0x0000aaaaaac41f48 in D_DoomMain() () at /home/brzegorz/Builds/eternity/source/d_main.cpp:1947 #19 0x0000aaaaaadfaf80 in main(int, char**) (argc=3, argv=0xfffffffff6f8) at /home/brzegorz/Builds/eternity/source/sdl/i_main.cpp:107 (gdb) I'll attach log from valgrind shortly. valgrind-out.7z Edited June 10, 2020 by Baron Pampa 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.