Updated Stella core crashes RetroArch

Stella doesn’t seem to work in version 1.7.7 and Windows 7.

Seems to be some sort of toolchain issue, as the ones that funbars is putting out via appveyor seem to work okay.

I was planning to follow up with them once it settles down and figure out what’s up.

I’m having the same problem on the PS VIta version 1.7.7.

Wii port works 100% speed, no problems. Skips pthread and mutex. Experiment similar things for Windows x64: https://ci.appveyor.com/project/funbars/stella/builds/24712177/artifacts (O3 single-thread mingw) https://ci.appveyor.com/project/funbars/stella/builds/24712180/artifacts (O2 single-thread mingw) https://ci.appveyor.com/project/funbars/stella/builds/24712198/artifacts (O0 single-thread mingw)

2 Likes

Same for me on windows 8.1. Stella 2014 seems to work fine though

Do any appveyor test builds work in either Stella help thread? Stella devs won’t fix until I diagnose and submit. I don’t know why it crashes for some, but there’s a lot of people.

I’m assuming it’s something wrong with our toolchain, though I’m not sure how it differs from appveyor…

Does latest buildbot still break? http://buildbot.libretro.com/nightly/windows/x86_64/latest/stella_libretro.dll.zip

Still not working (x86_64). :pensive:

It still crashes, but I was able to create a log file, how can I upload it?


Error occurred on Tuesday, May 28, 2019 at 19:45:53.

retroarch_debug.exe caused an Access Violation at location FFFFFFFFB6040000 DEP violation at location FFFFFFFFB6040000.

AddrPC Params FFFFFFFFB6040000 0000000018702DD8 00000000091FD530 00000000186F8000 0000000018577E42 00000000091FD4A0 000000000048D279 000000000000004D stella_libretro.dll!retro_serialize_size 000000001850032E 0000000000000000 0000000000000000 00000000001E01B0 stella_libretro.dll!retro_serialize_size 0000000018488ADA 000000000000000A 00000000091FD7CC 00000000001E0324 stella_libretro.dll!retro_api_version 000000001848A6E3 000000001C0FA550 00000000091FDADE 00000000091FDAD0 stella_libretro.dll!retro_load_game 0000000000402F3B 00000000091FDB40 0000000000000000 000000001C0FA550 retroarch_debug.exe!core_load_game [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/core_impl.c @ 307] 000000000042682E 000000000E835B60 000000001C25CBB0 00000000091FDC70 retroarch_debug.exe!content_file_load [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 718] 0000000000426EA8 00000000091FDC70 000000001C25CBB0 00000000091FDC68 retroarch_debug.exe!content_file_init [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 909] 0000000000429445 0000000000000004 0000000000000000 0000000000000000 retroarch_debug.exe!content_init [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 2163] 0000000000411CCF 00000000091FDD70 0000000000000000 00000000091FDDA0 retroarch_debug.exe!event_init_content [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/command.c @ 1300] 0000000000411E45 00000000010731A4 000000000CE30770 00000000091FDE30 retroarch_debug.exe!command_event_init_core [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/command.c @ 1368] 0000000000413CD1 000000000000002D 00000000010731A4 0000000000BCE1E1 retroarch_debug.exe!command_event [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/command.c @ 2359] 000000000040692A 000000000000000A 00000000091FE380 00000000091FE380 retroarch_debug.exe!retroarch_main_init [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/retroarch.c @ 2028] 0000000000425DE6 00000000091FF720 00007FFC64ACA325 000000000CE3254C retroarch_debug.exe!content_load [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 288] 000000000042710B 00000000091FF720 00000000091FF650 000000001C100501 retroarch_debug.exe!task_load_content [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 978] 0000000000428444 000000000E87B150 000000001C0FB500 00000000091FF720 retroarch_debug.exe!task_push_load_content_with_new_core_from_menu [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/tasks/task_content.c @ 1588] 00000000006A515A 0000000000000000 0000000000000000 0000000000000005 retroarch_debug.exe!file_load_with_detect_core_wrapper [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/menu/cbs/menu_cbs_ok.c @ 1180] 00000000006A5305 000000001C10CE20 0000000000000000 0000000000000000 retroarch_debug.exe!action_ok_file_load_with_detect_core [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/menu/cbs/menu_cbs_ok.c @ 1235] 000000000066EDF6 00000000091FF8C0 0000000000000005 0000000000000005 retroarch_debug.exe!menu_entry_action [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/menu/menu_entries.c @ 517] 00000000006F12D5 000000001C0FB0E0 000000001C101510 0000000000000005 retroarch_debug.exe!generic_menu_iterate [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/menu/drivers/menu_generic.c @ 233] 000000000066A586 00000000091FFAD0 00000000091FFA40 0000000000000008 retroarch_debug.exe!menu_driver_iterate [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/menu/menu_driver.c @ 2094] 0000000000409579 000000000E83F040 0000000000000000 0000000000000000 retroarch_debug.exe!runloop_check_state [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/retroarch.c @ 3640] 000000000040AD06 00000000091FFD58 0000000000428A92 00000000091FFDA0 retroarch_debug.exe!runloop_iterate [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/retroarch.c @ 4446] 0000000000565E4F 0000000000000000 0000000000000000 00000000091FFDA0 retroarch_debug.exe!ui_application_qt_run [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/ui/drivers/qt/ui_qt_application.cpp @ 164] 0000000000401745 0000000000000001 000000000E8068F0 0000000000000000 retroarch_debug.exe!rarch_main [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/frontend/frontend.c @ 172] 0000000000565EB9 0000000000000001 000000000E8068F0 0000000009322BEA retroarch_debug.exe!SDL_main [C:/msys64/home/buildbot/buildbot/windows_x64/retroarch/ui/drivers/qt/ui_qt_application.cpp @ 188] 0000000000A00968 0000000000000000 0000000000000033 000000000188C058 retroarch_debug.exe!main_getcmdline 00000000004013C7 0000000000000000 0000000000000000 0000000000000000 retroarch_debug.exe!__tmainCRTStartup [C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 337] 00000000004014CB 0000000000000000 0000000000000000 0000000000000000 retroarch_debug.exe!WinMainCRTStartup [C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 187] 00007FFC64024034 0000000000000000 0000000000000000 0000000000000000 KERNEL32.DLL!BaseThreadInitThunk 00007FFC64B23691 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!RtlUserThreadStart

retroarch_debug.exe ntdll.dll 10.0.17134.556 KERNEL32.DLL 10.0.17134.753 KERNELBASE.dll 10.0.17134.753 ADVAPI32.dll 10.0.17134.471 msvcrt.dll 7.0.17134.1 sechost.dll 10.0.17134.319 RPCRT4.dll 10.0.17134.648 comdlg32.dll 10.0.17134.1 combase.dll 10.0.17134.619 ucrtbase.dll 10.0.17134.677 bcryptPrimitives.dll 10.0.17134.1 shcore.dll 10.0.17134.112 USER32.dll 10.0.17134.376 win32u.dll 10.0.17134.1 GDI32.dll 10.0.17134.285 gdi32full.dll 10.0.17134.753 msvcp_win.dll 10.0.17134.619 SHLWAPI.dll 10.0.17134.1 SHELL32.dll 10.0.17134.441 cfgmgr32.dll 10.0.17134.1 windows.storage.dll 10.0.17134.765 kernel.appcore.dll 10.0.17134.112 profapi.dll 10.0.17134.1 powrprof.dll 10.0.17134.1 COMCTL32.dll 5.82.17134.765 FLTLIB.DLL 10.0.17134.1 ole32.dll 10.0.17134.765 SETUPAPI.dll 10.0.17134.1 WS2_32.dll 10.0.17134.1 DINPUT8.dll 10.0.17134.254 DSOUND.dll 10.0.17134.677 HID.DLL 10.0.17134.1 MSIMG32.dll 10.0.17134.1 libwinpthread-1.dll 1.0.0.0 OPENGL32.dll 10.0.17134.1 WINMM.dll 10.0.17134.1 libstdc+±6.dll libass-9.dll IPHLPAPI.DLL 10.0.17134.1 avformat-57.dll 57.83.100.0 avutil-55.dll 55.78.100.0 cgD3D9.dll 3.1.0.13 avcodec-57.dll 57.107.100.0 cgGL.dll 3.1.0.13 libfreetype-6.dll cg.dll 3.1.0.13 libopenal-1.dll Qt5Core.dll 5.10.1.0 Qt5Network.dll 5.10.1.0 CRYPT32.dll 10.0.17134.1 SDL2.dll 2.0.7.0 IMM32.dll 10.0.17134.1 MSASN1.dll 10.0.17134.1 SSLEAY32.dll 1.0.2.14 OLEAUT32.dll 10.0.17134.706 swresample-2.dll 2.9.100.0 swscale-4.dll 4.8.100.0 libusb-1.0.dll 1.0.21.11156 zlib1.dll libgcc_s_seh-1.dll winmmbase.dll 10.0.17134.1 libfontconfig-1.dll libfribidi-0.dll GLU32.dll 10.0.17134.1 libharfbuzz-0.dll Secur32.dll 10.0.17134.1 libbluray-2.dll libbz2-1.dll libmodplug-1.dll libcelt0-2.dll libgsm.dll librtmp-1.dll liblzma-5.dll 5.2.3.0 libmp3lame-0.dll libopenjp2-7.dll libopus-0.dll libopencore-amrnb-0.dll libspeex-1.dll libtheoradec-1.dll libvorbis-0.dll libvorbisenc-2.dll libwavpack-1.dll libvpx-1.dll libwebp-7.dll libwebpmux-3.dll libpng16-16.dll libicuuc58.dll libpcre2-16-0.dll MPR.dll 10.0.17134.677 NETAPI32.dll 10.0.17134.1 USERENV.dll 10.0.17134.1 VERSION.dll 10.0.17134.1 libx264-155.dll 0.155.2901.0 DNSAPI.dll 10.0.17134.441 NSI.dll 10.0.17134.1 libexpat-1.dll libglib-2.0-0.dll 2.54.3.0 libgraphite2.dll libxml2-2.dll libgmp-10.dll libhogweed-4.dll libnettle-6.dll libogg-0.dll libintl-8.dll 0.19.8.0 SSPICLI.DLL 10.0.17134.376 libtheoraenc-1.dll exchndl.dll 0.8.2.0 PSAPI.DLL 10.0.17134.1 mgwhelp.dll 0.8.2.0 dbghelp.dll 10.0.17134.1 dbgcore.DLL 10.0.17134.1 Qt5Gui.dll 5.10.1.0 libiconv-2.dll 1.15.0.0 Qt5Widgets.dll 5.10.1.0 libopencore-amrwb-0.dll libx265.dll 2.5.0.0 xvidcore.dll libicuin58.dll LIBEAY32.dll 1.0.2.14 libgnutls-30.dll libicudt58.dll libpcre-1.dll dwmapi.dll 10.0.17134.1 UxTheme.dll 10.0.17134.1 libidn2-0.dll libtasn1-6.dll CRYPTBASE.DLL 10.0.17134.1 NETUTILS.DLL 10.0.17134.1 SRVCLI.DLL 10.0.17134.1 libp11-kit-0.dll libunistring-2.dll 0.9.8.0 libffi-6.dll ncrypt.dll 10.0.17134.1 bcrypt.dll 10.0.17134.112 NTASN1.dll 10.0.17134.1 CRYPTSP.dll 10.0.17134.1 rsaenh.dll 10.0.17134.254 inputhost.dll wintypes.dll 10.0.17134.523 CoreMessaging.dll 10.0.17134.471 CoreUIComponents.dll 10.0.17134.376 ntmarta.dll 10.0.17134.1 MSCTF.dll 10.0.17134.619 ig9icd64.dll 26.20.100.6709 dxgi.dll 10.0.17134.112 igc64.dll 26.20.100.6709 TextInputFramework.dll 10.0.17134.376 DEVOBJ.dll 10.0.17134.1 WINTRUST.dll 10.0.17134.556 xinput1_4.dll 10.0.17134.1 clbcatq.dll 2001.12.10941.16384 explorerframe.dll 10.0.17134.1 MMDevAPI.DLL 10.0.17134.1 PROPSYS.dll 7.0.17134.619 wdmaud.drv 10.0.17134.1 AVRT.dll 10.0.17134.1 ksuser.dll 10.0.17134.1 AUDIOSES.DLL 10.0.17134.619 msacm32.drv 10.0.17134.1 MSACM32.dll 10.0.17134.1 midimap.dll 10.0.17134.1 stella_libretro.dll

Windows 10.0.17134 DrMingw 0.8.2

Thanks! Corrupted stack??

https://ci.appveyor.com/api/buildjobs/6o0sqcbk12xx0q12/artifacts/src%2Flibretro%2Fstella_libretro.dll

Upload stella_debug.txt log. Should narrow fault area within retro_load_game.

LogStella

Oh? How curious. Creating new logger build. Please wait, will take a bit to build.

While I understand the need of hunting a bug like this, I have to go out of my house for an hour at most. As soon as I get back, I’ll try the new build.

Been working on this problem for a week maybe. No hurry. :sunny: Plenty of people here to try. :smile:

https://ci.appveyor.com/api/buildjobs/1w5qg0965bvxulaa/artifacts/src%2Flibretro%2Fstella_libretro.dll

edit: Have bad feeling it’s either magic static initializers or Thread Local Storage. But new log will expose problem.

LogStella2

1 Like

Thanks! That could be bad news. Have to experiment solution.

So many areas can fail. Have to compare log. :expressionless:

https://ci.appveyor.com/api/buildjobs/b5mtyxwbb6ry19n3/artifacts/src%2Flibretro%2Fstella_libretro.dll

1. createOSystem
2. OSystem::OSystem
3. backendName
4. info.str
5. MediaFactory.createSettings
6. Settings::Settings
7. Settings::video
8. Settings::tia
9. Settings::tv
10. Settings::sound
11. Settings::input
12. Settings::Settings done
13. make_unique.PropertiesSet
14. Logger.setLogCallback
15. create
16. FrameBuffer::FrameBuffer
17. EventHandler::EventHandler
18. EventHandler::PhysicalKeyboardHandler
19. EventHandler::PhysicalJoystickHandler
20. EventHandler::EventHandler done
21. StateManager::StateManager
22. make_unique<RewindManager>
23. reset
24. StateManager::StateManager done
25. TimerManager::TimerManager
26. Console::Console
27. loadUserPalette
28. M6502
29. M6532
30. TIA
31. FrameManager
32. Switches
33. setFrameManager
34. initSeed
35. make_unique<System>
36. make_unique<Joystick>
37. setStartBankFromPropsFunc
38. initialize
39. myProperties.get
40. autodetectFrameLayout
41. autodetectYStart
42. setTIAProperties
43. reset
44. myProperties
45. setNVRamFile
46. consoleChanged
47. TimerManager::TimerManager

LogStella3

I have “gl” as video driver, tested changing to “glcore” and “d3d11” with the same results.

Do you need more info about drivers and/or other settings in my retroarch config?