AmigaPorts / sdl2-amigaos4

See https://github.com/AmigaPorts/SDL
Other
2 stars 1 forks source link

sdl2benchmark crash/freeze #4

Closed raziel- closed 6 years ago

raziel- commented 6 years ago

sdl2benchmark is crashing/freezing when the window part starts. fullscreen is working fine, once the window gets opened it will freeze/crash.

Both times started from RAM:

SDL2 2.0.7 RC1 AmigaOS4 with all updates and Enhancer

Crashlog: Crash log for task "sdl2benchmark" Generated by GrimReaper 53.19 Crash occured in module intuition.library.kmod at address 0x021E4730 Type of crash: DSI (Data Storage Interrupt) exception Alert number: 0x80000003

Register dump: GPR (General Purpose Registers): 0: 021E49CC 3878D9B0 0106E038 0000A450 38950BB4 3878DB18 02A8824C 02A8826C 8: 00000000 0282E2F4 00000000 02B30000 24842288 5C7D918C 00000000 504C9000 16: 7F9671C8 00000000 5C7D2010 3861CE80 02B30000 02B30000 00000000 00000001 24: 3878DB18 38950BB4 3861D328 02B30000 38950BB4 3878DB18 0000A450 0000A450

FPR (Floating Point Registers, NaN = Not a Number): 0: nan nan -2.32331e+42 nan 4: nan nan nan 2.14748e+09 8: 128 4.5036e+15 1684 4.5036e+15 12: 256 4.5036e+15 0 0 16: 0 0 0 0 20: 0 0 0 0 24: 0 0 0 0 28: 0 0 0.1 4.5036e+15

FPSCR (Floating Point Status and Control Register): 0x82004000

SPRs (Special Purpose Registers): Machine State (msr) : 0x0200B030 Condition (cr) : 0x38954484 Instruction Pointer (ip) : 0x021E4730 Xtended Exception (xer) : 0x43917018 Count (ctr) : 0x6FF364D0 Link (lr) : 0x7FB2C920 DSI Status (dsisr) : 0x43916DD0 Data Address (dar) : 0x021E4828

680x0 emulated registers: DATA: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ADDR: 6FFB8700 98788400 00000000 00000000 00000000 00000000 00000000 3878D750 FPU0: 0 0 0 0 FPU4: 0 0 0 0

Symbol info: Instruction pointer 0x021E4730 belongs to module "intuition.library.kmod" (HUNK/Kickstart)

Stack trace: native kernel module intuition.library.kmod+0x00021350 native kernel module intuition.library.kmod+0x000215ec native kernel module intuition.library.kmod+0x000218c8 native kernel module intuition.library.kmod+0x00009de8 native kernel module intuition.library.kmod+0x0007a0d8 native kernel module intuition.library.kmod+0x0007a17c System:SObjs/libSDL2-2.0.so:OS4_DestroyWindow()+0x150 (section 9 @ 0xB07D8) System:SObjs/libSDL2-2.0.so:SDL_RecreateWindow()+0x258 (section 9 @ 0x94F84) System:SObjs/libSDL2-2.0.so:GL_CreateRenderer()+0xfc (section 9 @ 0x30648) System:SObjs/libSDL2-2.0.so:SDL_CreateRenderer()+0xc8 (section 9 @ 0x25F20) sdl2benchmark:main()+0x24c (section 7 @ 0x180C) native kernel module newlib.library.kmod+0x000020a4 native kernel module newlib.library.kmod+0x00002d0c native kernel module newlib.library.kmod+0x00002ee8 sdl2benchmark:_start()+0x174 (section 7 @ 0x170) native kernel module dos.library.kmod+0x000255c8 native kernel module kernel.debug+0x0006e9c0 native kernel module kernel.debug+0x0006ea08

PPC disassembly: 021e4728: 90010064 stw r0,100(r1) 021e472c: 7cb82b78 mr r24,r5 *021e4730: 80030008 lwz r0,8(r3) 021e4734: 83cbcf6c lwz r30,-12436(r11) 021e4738: 7f804800 cmpw cr7,r0,r9

System information:

CPU Model: P.A. Semi PWRficient PA6T-1682M VB1 CPU speed: 1800 MHz FSB speed: 900 MHz Extensions: altivec

Machine Machine name: AmigaOne X1000 Memory: 2097152 KB Extensions: bus.pci bus.pcie

capehill commented 6 years ago

There is no window part actually. SDL2 wants to recreate window because of OpenGL flag missing or wrong GL version. I can't reproduce the issue on Sam440. Do you have the full serial log?

raziel- commented 6 years ago

Will add a lot when i get home again null

raziel- commented 6 years ago

No more crash/freeze.

What i found was, that i now get the whole "GLES" benchmarking, which refused to show up when it crashed the other day. No idea what happened in the meantime, maybe the driver was broken or not completely loaded the last time.