- Code: Select all
Warning (126011d4): Data abort: address=00700065 status=05 instruction at 126011d4
Warning in Emulator
6 posts
• Page 1 of 1
Warning in Emulator
I wrote a little Abstraction for SDL_gfxPrimitives. I wanted to try it with a simple test by just drawing a rectangle. It all worked fine. But when i closed the file the firebird-emulator prints an warning in the Debugger-Dock:
-
Rankail
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 09 Nov 2019, 18:33
- Location: Germany, North Rhine-Westfalia
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: 12
-
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 3446
- Images: 75
- Joined: 04 Jul 2014, 14:40
- Location: Clermont-Ferrand 63
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: ENS Rennes
- GitHub: Ti64CLi
Re: Warning in Emulator
The easiest way is to use the gdb integration (https://github.com/nspire-emus/firebird ... g-with-GDB). When the data abort (aka segfault) happens, you can get a backtrace.
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Posts: 217
- Joined: 29 Mar 2014, 15:55
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Warning in Emulator
I found the problem myself. I free a SDL_Surface and a nSDL_Font in the destructor of my Abstraction. I changed the structure a bit because the destructor would only be called after SDL_Quit.
-
Rankail
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 09 Nov 2019, 18:33
- Location: Germany, North Rhine-Westfalia
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: 12
Re: Warning in Emulator
So what i found doesn't solve the problem. That's just what i thought at the first moment. I can open my program and close it but whenever i open and close it multiple times it shows the waiting symbol and after a few seconds the calc in the emulator restarts. Whenever it does so it throws an error in the debugger:
There was also a problem where i would get a memory error after restarting a slightly other code around 10-20 times. I couldn't find any memory leaks though. So i spend the last 2-3 days "playing" around with the pointers. Changing from pointers to smart pointers and the other way around. Adding delete for all pointers i found. Nothing seemed to work 100% fine. Anyone can help me? I uploaded my code to github because i honestly don't know what to do anymore.
https://github.com/Rankail/nStateMachine
- Code: Select all
Warning (13a574d0): Data abort: address=0001002f status=01 instruction at 13a574d0.
There was also a problem where i would get a memory error after restarting a slightly other code around 10-20 times. I couldn't find any memory leaks though. So i spend the last 2-3 days "playing" around with the pointers. Changing from pointers to smart pointers and the other way around. Adding delete for all pointers i found. Nothing seemed to work 100% fine. Anyone can help me? I uploaded my code to github because i honestly don't know what to do anymore.
https://github.com/Rankail/nStateMachine
-
Rankail
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 09 Nov 2019, 18:33
- Location: Germany, North Rhine-Westfalia
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: 12
Re: Warning in Emulator
If you want to know anything about how the code should work or i missed some info please tell me
-
Rankail
Niveau 4: MC (Membre Confirmé)- Posts: 21
- Joined: 09 Nov 2019, 18:33
- Location: Germany, North Rhine-Westfalia
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: 12
6 posts
• Page 1 of 1
Return to Native: Ndless, Linux, ...
Who is online
Users browsing this forum: ClaudeBot [spider] and 4 guests