Closed cesarmiquel closed 2 years ago
I was able to compile with debug symbols. Here's a better idea of where the crash happens:
(gdb) r
Starting program: /home/miquel/Develop/AppleII/AppleWin-audetto-linux/build/applen
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[DSInit] PC=00000000, WC=00000000, Diff=00000000
Program received signal SIGSEGV, Segmentation fault.
0x00005555555ef267 in ClearOverscanVideoArea () at /home/miquel/Develop/AppleII/AppleWin-audetto-linux/source/NTSC.cpp:830
830 *pLine1Prev++ = CLEAR_COLOUR_TOP | ALPHA32_MASK;
(gdb) l
825
826 pLine1Prev += GetVideo().GetFrameBufferCentringValue() - kOverscanOffsetL; // Centre the older //e video modes when running with a VidHD
827
828 // Clear this line at Y=-1
829 for (uint32_t i = 0; i < (kHorzPixels + (kOverscanSpanL - kOverscanOverlapL) + (kOverscanSpanR - kOverscanOverlapR)); i++)
830 *pLine1Prev++ = CLEAR_COLOUR_TOP | ALPHA32_MASK;
831
832 // Clear overscan before & after display area
833 for (uint32_t i = 0; i < VIDEO_SCANNER_Y_DISPLAY*2; i++)
834 {
(gdb)
Ok. I digged a little into the source code and noticed this commit 0f750ee1679d1578126ec30af1b22a7d1410a72c which modified the NTSC.cpp
file. I checked out the previous commit, recompiled and it runs ok! (no Segfault). So my bet is that something in that commit is breaking it.
BTW: great work! I was able to run the SDL version and its beautiful to see it running in Linux without wine!! š¤©
It is an issue in AppleWin which shows up in 64 bit builds. I will create a PR upstream.
Hey guys! Was trying to compile and test this port of AppleWin (I'm 100% on linux and would love to have a version of AppleWin running natively on Linux). I was able to compile the SDL2 version and NCurses (I didn't test the QT since I'm trying to avoid installing QT). Both versions compiled fine after installing several dependencies. Unfortunately as soon as I start either version it segfaults. Here's the stack trace of both frontends. Let me know what other information you might need to point me a little to what can be the problem.
NCurses:
ldd output:
SDL
ldd output