Open AkashaP opened 2 years ago
what does "SBCL optimized debug 3, safety 3, speed 0, space 0" mean? What OS is this?
linux, kubuntu 5.13.0-35-generic those flags means that in .sbclrc there are these lines:
(sb-ext:restrict-compiler-policy 'debug 3 3)
(sb-ext:restrict-compiler-policy 'safety 3 3)
(sb-ext:restrict-compiler-policy 'speed 0 0)
(sb-ext:restrict-compiler-policy 'space 0 0)
(sb-ext:restrict-compiler-policy 'compilation-speed 0 0)
Following Optimize from the CLHS: http://www.lispworks.com/documentation/lw50/CLHS/Body/d_optimi.htm
useful for getting maximum debug output available.
Aha. What happens if you remove those restrictions and recompile all involved systems?
i think this has stopped the crashing, i've been sitting it for a few minutes playing some sounds occasionally, then initiated (gc), and it still hasn't crashed
to be fair, i think my configuration is pretty extreme. It is even bugging out cl-ppre. I might need to adjust the values.
actually, it just crashed. i think alt tabbing and stuff might be contributing to the frequency of crashes but i am not sure
i wouldn't be surprised if this was some obscure incompatibility involved with a bunch of libraries i am using in conjuction, specifically cl-bodge which i have been hacking around in which uses a lot of cffi
Alt-tabbing shouldn't influence anything at all.
However, please do try to test with a clean image. I cannot vouch for stuff that does whatever else in the back.
The error is pointing towards a kludge in harmony being tripped -- to avoid stalling the audio thread too badly it has to inhibit GCing and hit specific trigger points. I don't know what could be interfering with that however, and have not personally had any crashes like that even after running the same image for many hours at a time, and running an entire game for many hours, as well.
alright, i'll do this and work towards pinpointing this problem. thank you for the insights.
Sure. Sorry I can't be of more help at the moment. Getting to the bottom of stuff like this is a nightmare, so best of luck!
i never found the problem but i have sketched a (really over engineered...) workaround: separate harmony into its own executable and control it over IPC.
i included a bunch of features like different ways of killing the separate program when the main program closes or crashes (didn't fully test), process revival in case harmony crashed, but since i did this i haven't had either harmony or my application crash, so i guess it counts as some form of solution?
Wow, that's quite the workaround.
Hello. I am getting a random crash playing a few sound files as MP3s in harmony. Stack trace mentions cl-mixed.
tested with latest versions: harmony commit [cc92624] mixed commit [72cfd9b]
rough steps:
if i missed something please let me know
Stack trace (visible only in the sly-inferior-lisp for sbcl buffer):
fatal error encountered in SBCL pid 886899 tid 889757: STOP_FOR_GC_PENDING, but why?
0: fp=0x7fa97d28da70 pc=0x55c51eb99834 Foreign function (null) 1: fp=0x7fa97d28da80 pc=0x55c51eb9984a Foreign function (null) 2: fp=0x7fa97d28db70 pc=0x55c51eb99a21 Foreign function (null) 3: fp=0x7fa97d28dc70 pc=0x55c51eb9b332 Foreign function (null) 4: fp=0x7fa97d28e240 pc=0x7fa97f191520 Foreign function (null) 5: fp=0x7fa97d28e270 pc=0x52a4b8a0 SB-EVAL::%EVAL 6: fp=0x7fa97d28e2d8 pc=0x52c9ad81 SB-EVAL::EVAL-LET 7: fp=0x7fa97d28e308 pc=0x52b2a342 (SETF SB-ALIEN-INTERNALS::%ALIEN-VALUE) 8: fp=0x7fa97d28e388 pc=0x53bfc55e (LAMBDA (SB-ALIEN::ARGS-POINTER SB-ALIEN::RESULT-POINTER FUNCTION) :IN "/path/to/cl-mixed/segments/virtual.lisp") 9: fp=0x7fa97d28e3c0 pc=0x55c51ebc09b6 Foreign function funcall_alien_callback 10: fp=0x7fa97d28e3d0 pc=0x501003d2 (unknown lisp object) 11: fp=0x7fa97d28e420 pc=0x50001640 Foreign function 12: fp=0x7fa97d28e460 pc=0x7fa97ca0657b Foreign function (null) 13: fp=0x7fa97d28e480 pc=0x7fa97c9fe5e8 Foreign function mixed_segment_mix 14: fp=0x7fa97d28e4b8 pc=0x545471b6 (LAMBDA (FUN1194 G1195)) 15: fp=0x7fa97d28e4e0 pc=0x53b93bc8 ORG.SHIRAKUMO.FRAF.MIXED.CFFI::SEGMENT-MIX 16: fp=0x7fa97d28e680 pc=0x53c22714 (SB-PCL::FAST-METHOD ORG.SHIRAKUMO.FRAF.HARMONY::RUN (ORG.SHIRAKUMO.FRAF.HARMONY::SERVER)) 17: fp=0x7fa97d28e7a0 pc=0x53c1ee93 (LAMBDA () :IN ORG.SHIRAKUMO.FRAF.MIXED::START) 18: fp=0x7fa97d28e8a0 pc=0x536914d0 (LAMBDA () :IN BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS) 19: fp=0x7fa97d28e990 pc=0x52bac659 (FLET SB-UNIX::BODY :IN SB-THREAD::RUN) 20: fp=0x7fa97d28ea80 pc=0x52bace09 (FLET "WITHOUT-INTERRUPTS-BODY-10" :IN SB-THREAD::RUN) 21: fp=0x7fa97d28ebd8 pc=0x52bac33b (FLET SB-UNIX::BODY :IN SB-THREAD::RUN) 22: fp=0x7fa97d28ecc8 pc=0x52bac038 (FLET "WITHOUT-INTERRUPTS-BODY-3" :IN SB-THREAD::RUN) 23: fp=0x7fa97d28edb8 pc=0x52babeeb SB-THREAD::RUN 24: fp=0x7fa97d28edf0 pc=0x55c51ebc096a Foreign function call_into_lisp 25: fp=0x7fa97d28ee10 pc=0x55c51eb9199d Foreign function funcall1