-
Notifications
You must be signed in to change notification settings - Fork 103
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
Using 8bpp within SDL 1.2 will freeze or crash OS upon exit #261
Comments
This is fixed by Vogtinator/nSDL#1, but I didn't get around to merge it yet. |
Looks like that's true as well, could you make a PR against the |
Vogtinator/nSDL#2 |
Gave both fixes a try with Worship Vector and unfortunately, it doesn't fix it. It still crashes upon exit even with your fix. |
I'm trying to reproduce the issue. I hit a GCC segfault \o/:
It worked after removing |
The built tns works fine in firebird here. I'll try on hardware later. Can you make sure that you're using the right |
Tried it, no crashes during gameplay or exit, did that twice. I did notice a bug though - it doesn't wait for keys to be released, which is most noticable when trying to select the |
How is this wizadry possible is beyond me, as i was also able to reproduce the crash earlier on a dumb CX. As you said, it probably has to do with -march=armv5te -mtune=arm926ej-s. Were you using those flags while playing them ? Or were you using my tns build ? |
I can't use your tns with a custom I'm getting a crash on exit of the |
That was actually introduced by your commit adding I added a hotfix for the crash (Vogtinator/nSDL@f6fe5ec) and made a PR with a refactor (Vogtinator/nSDL#3). Please have a look as well. |
I suppose this can be closed after the PR gets merged ? It fixed the issues for me. |
I noticed this for a while when linking to the new lcd_blit API with SDL 1.2.
When you use the 8bpp mode then quit, it will just crash.
One game where i noticed this was Worship Vector. I also noticed it in other games at the time but forgot whom.
I also debugged the game on PC and found that there was no leaks sooo yeah.
https://github.com/gameblabla/worship-vector
worship.tns.zip
Thought using a newer ndless would have fixed this but sadly, it doesn't.
EDIT: Oh and yeah, it didn't have the SDL_FreeSurface for its main screen surface, which i added later.
Despite this, and the fact that the game never attempts to allocate memory in the heap, it still crashes.
EDIT2:
Vogtinator/nSDL@22fddb3
It seems to me that buffer2 is never being freed. In fact, it seems that even buffer is also seemingly not freed from memory.
However i did just that (made a small patch against it) and it still crashes and reboots the calc unfortunately.
The text was updated successfully, but these errors were encountered: