Skip to content
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

Mega Man Maverick Hunter X: PPSSPP hangs on ACCESS screen on OSX #7642

Closed
CarterLi opened this issue Mar 29, 2015 · 12 comments
Closed

Mega Man Maverick Hunter X: PPSSPP hangs on ACCESS screen on OSX #7642

CarterLi opened this issue Mar 29, 2015 · 12 comments

Comments

@CarterLi
Copy link
Contributor

Seems a platform specific issue. Same game tested on Android and works fine ( after pressing Start or Circle )
image

Tested version: V1.0.1, lastest git on OSX
Tested game: ULUS10068 (US), ULJM05043 (JP)

@unknownbrackets
Copy link
Collaborator

Please search before opening duplicate issues.

Closing as a duplicate of #3318.

-[Unknown]

@CarterLi
Copy link
Contributor Author

Sorry for this duplicated issue @unknownbrackets
I'd like to stress that PPSSPP is completely freezed on OSX 10.10.2. That is to say: UI gets no response, pressing start doesn't work, can't open the menu item. The only thing I can do is killing the process.

@unknownbrackets
Copy link
Collaborator

Well, I think it was reported in that issue that this happens on Linux / Mac, although 'm not sure why.

Are you able to attach gdb and see where it's stuck? I'm guessing it's not flipping frames or something, but I don't know why (since even if it's not drawing anything, it should bail to flip a frame every 10 frames or so.)

-[Unknown]

@CarterLi
Copy link
Contributor Author

Here it is:
JP ver

(lldb) run
Process 1212 launched: '/Applications/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL' (x86_64)
OpenGL 2.0 or higher.
27:48:287 Core/Config.cpp:856 I[LOAD]: Loading controller config: /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/controls.ini
Pixels: 960 x 544
Virtual pixels: 960 x 544
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gl_state.cpp:133: I: GPU Vendor : Intel Inc. ; renderer: Intel Iris OpenGL Engine version str: 2.1 INTEL-10.2.46 ; GLSL version str: 1.20
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gpu_features.cpp:20: I: Checking for GL driver bugs... vendor=3 model='Intel Iris OpenGL Engine'
27:59:592 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULJM05043_ppsspp.ini. No game-specific settings found, using global defaults.
27:59:592 Core/System.cpp:352 I[BOOT]: PPSSPP v1.0.1-233-g13c08ab
27:59:668 Core/MemMap.cpp:338 I[MM]: Memory system initialized. RAM at 0x10f800000 (mirror at 0 @ 0x2308000000, uncached @ 0x2348000000)
27:59:669 Core/PSPLoaders.cpp:168 I[LOAD]: ULJM05043 : イレギュラーハンターX
27:59:695 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULJM05043_ppsspp.ini. No game-specific settings found, using global defaults.
27:59:695 Core/PSPLoaders.cpp:210 I[LOAD]: Loading disc0:/PSP_GAME/SYSDIR/EBOOT.BIN...
27:59:695 HLE/sceKernelMemory.cpp:436 I[KERNEL]: Kernel and user memory pools initialized
27:59:751 HLE/sceKernel.cpp:151 I[KERNEL]: Kernel initialized.
27:59:849 Util/BlockAllocator.cpp:381 I[HLE]: -----------
27:59:850 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08800000 - 08804000 size 00004000 taken=1 tag=usersystemlib
27:59:850 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08804000 - 08a35300 size 00231300 taken=1 tag=ELF/IrregularHunterX
27:59:850 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08a35300 - 0a000000 size 015cad00 taken=0 tag=(untitled)
27:59:850 Util/BlockAllocator.cpp:387 I[HLE]: -----------
27:59:878 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memcpy_jak at 0898bd1c with hash 0ffa5db8396d4274
27:59:878 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memset_jak at 0898bd5c with hash eabb9c1b4f83d2b4
27:59:878 HLE/sceKernelModule.cpp:1034 I[LOAD]: Module IrregularHunterX: 00000000 089a4d7c 089a4d94
27:59:879 HLE/sceKernelModule.cpp:1235 I[LOAD]: Exporting ent 0 named IrregularHunterX, 2 funcs, 3 vars, resident 089a50f4
27:59:879 HLE/sceKernelModule.cpp:1557 I[LOAD]: Module entry: 0898065c
27:59:896 root         N[BOOT]: UI/EmuScreen.cpp:141 Loading /Volumes/Algo/Emulaters/PSP/d-rmxih.iso...
27:59:897 root         I[KERNEL]: HLE/sceKernelThread.cpp:2169 276=sceKernelCreateThread(user_main, 08980718, 00000020, 262144, 80000000, 00000000)
27:59:897 root         I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(276, 33, 09fffed0)
27:59:897 root         I[KERNEL]: HLE/sceKernelThread.cpp:2279 __KernelReturnFromThread: 0
27:59:922 user_main    I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00000000 : 480 x 272 x 3
27:59:937 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 278=sceKernelCreateThread(, 08921238, 00000072, 4096, 00000000, 00000000)
27:59:937 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(278, 0, 00000000)
27:59:937 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 280=sceKernelCreateThread(, 089221bc, 00000073, 8192, 00000000, 00000000)
27:59:937 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(280, 0, 00000000)
27:59:977 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 283=sceKernelCreateThread(, 08822118, 00000074, 131072, 00004000, 00000000)
27:59:977 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(283, 0, 00000000)
27:59:977              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceSAScore with version 0103, devkit 00000000
27:59:987              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:2175 285=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(285,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:987              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceAudiocodec_Driver with version 0103, devkit 00000000
27:59:987              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:2175 287=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
27:59:987              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(287,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:987              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceATRAC3plus_Library with version 0102, devkit 00000000
27:59:988              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:2175 289=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(289,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:988              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:988              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceVideocodec_Driver with version 0103, devkit 00000000
27:59:988              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
27:59:989              I[MODULE]: HLE/sceKernelModule.cpp:2175 291=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
27:59:989              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(291,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:989              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
27:59:990              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:990              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpegbase_Driver with version 0103, devkit 00000000
27:59:990              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
27:59:990              I[MODULE]: HLE/sceKernelModule.cpp:2175 293=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
27:59:990              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(293,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:990              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
27:59:990              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpeg_library with version 0103, devkit 00000000
27:59:991              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:2175 295=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(295,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:991              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module scePsmf_library with version 0101, devkit 00000000
27:59:991              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:2175 297=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
27:59:991              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(297,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
27:59:992              I[KERNEL]: HLE/sceKernelThread.cpp:2169 302=sceKernelCreateThread(CsePspSndDrvThread, 089211b4, 0000001a, 4096, 00000000, 00000000)
27:59:992              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(302, 4, 09fbca20)
27:59:993              I[KERNEL]: HLE/sceKernelThread.cpp:2169 303=sceKernelCreateThread(CsePspSasRendThread, 08920f20, 00000010, 4096, 00000000, 00000000)
27:59:993              I[SCESAS]: HLE/sceSas.cpp:106 sceSasInit(089ebfc0, 256, 32, 0, 44100)
27:59:993              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(303, 0, 00000000)
27:59:995              I[KERNEL]: HLE/sceKernelThread.cpp:2169 307=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 08920270, 00000010, 32768, 00000000, 00000000)
27:59:995              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(307, 4, 09fbc9f0)
27:59:995              I[KERNEL]: HLE/sceKernelThread.cpp:2169 308=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 08920270, 00000010, 32768, 00000000, 00000000)
27:59:995              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(308, 4, 09fbc9f0)
27:59:996              I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00088000 : 480 x 272 x 3
28:00:173              I[UTIL]: HLE/sceUtility.cpp:276 00000000=sceUtilityMsgDialogInitStart(09220040)
28:03:915              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - SIZES (8)
28:03:915              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
28:04:180              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - AUTOLOAD (0)
28:04:180              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
28:04:379 idle0        I[UTIL]: Dialog/SavedataParam.cpp:586 Loading file with size 52 in ms0:/PSP/SAVEDATA/ULJM05043IHXSYS/SYSTEM.DAT
28:04:431 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 310=sceKernelCreateThread(, 089212bc, 00000076, 4096, 00000000, 00000000)
28:04:431 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(310, 0, 00000000)
28:04:713 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(310)
28:04:729 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(283)
28:04:747 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 311=sceKernelCreateThread(, 0881f7b4, 00000074, 131072, 00004000, 00000000)
28:04:747 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(311, 0, 00000000)
28:05:279              I[ME]: HLE/sceMpeg.cpp:422 sceMpegInit()
28:05:279              I[ME]: HLE/sceMpeg.cpp:529 095200a0=sceMpegCreate(09fbc960, 09520070, 65536, 09fbc964, 512, 0, 0)
28:05:280              W[ME]: HLE/scePsmf.cpp:791 scePsmfQueryStreamOffset(09530090, 08a32154)
28:05:280              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0xB7800
28:05:280              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 540450
28:05:280              I[ME]: HLE/scePsmf.cpp:642 scePsmfSetPsmf(08a32124, 09530090)
28:05:280              I[ME]: HLE/scePsmf.cpp:309 PSMF MPEG data found: id=e0, privid=00, epmoff=000000a2, epmnum=00000004, width=480, height=272
28:05:280              I[ME]: HLE/scePsmf.cpp:318 PSMF private audio found: id=bd, privid=00, channels=2, freq=2
28:05:280              I[ME]: HLE/scePsmf.cpp:709 scePsmfSpecifyStreamWithStreamTypeNumber(08a32124, 00000000, 00000000)
28:05:280              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 0, 0)
28:05:280              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 1, 0)
28:05:308              I[KERNEL]: HLE/sceKernelThread.cpp:2169 316=sceKernelCreateThread(soundThread, 08912010, 0000003d, 2048, 00000000, 00000000)
28:05:308              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(316, 4, 08a3211c)
28:05:310              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0x10C800
28:05:310              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 900810
28:05:327              I[ME]: HW/MediaEngine.cpp:85 FF: deprecated pixel format used, make sure you did set range correctly

@CarterLi
Copy link
Contributor Author

US ver:

litongzhou@litongzhoudeMacBook-Pro ..lications/PPSSPPSDL.app/Contents/MacOS % lldb PPSSPPSDL
(lldb) target create "PPSSPPSDL"
Current executable set to 'PPSSPPSDL' (x86_64).
(lldb) run
Process 1231 launched: '/Applications/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL' (x86_64)
OpenGL 2.0 or higher.
29:56:209 Core/Config.cpp:856 I[LOAD]: Loading controller config: /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/controls.ini
Pixels: 960 x 544
Virtual pixels: 960 x 544
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gl_state.cpp:133: I: GPU Vendor : Intel Inc. ; renderer: Intel Iris OpenGL Engine version str: 2.1 INTEL-10.2.46 ; GLSL version str: 1.20
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gpu_features.cpp:20: I: Checking for GL driver bugs... vendor=3 model='Intel Iris OpenGL Engine'
30:08:533 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULUS10068_ppsspp.ini. No game-specific settings found, using global defaults.
30:08:533 Core/System.cpp:352 I[BOOT]: PPSSPP v1.0.1-233-g13c08ab
30:08:548 Core/MemMap.cpp:338 I[MM]: Memory system initialized. RAM at 0x10fa00000 (mirror at 0 @ 0x2308000000, uncached @ 0x2348000000)
30:08:548 Core/PSPLoaders.cpp:168 I[LOAD]: ULUS10068 : Mega Man Maverick Hunter X
30:09:031 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULUS10068_ppsspp.ini. No game-specific settings found, using global defaults.
30:09:031 Core/PSPLoaders.cpp:210 I[LOAD]: Loading disc0:/PSP_GAME/SYSDIR/EBOOT.BIN...
30:09:031 HLE/sceKernelMemory.cpp:436 I[KERNEL]: Kernel and user memory pools initialized
30:09:060 HLE/sceKernel.cpp:151 I[KERNEL]: Kernel initialized.
30:09:148 Util/BlockAllocator.cpp:381 I[HLE]: -----------
30:09:148 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08800000 - 08804000 size 00004000 taken=1 tag=usersystemlib
30:09:148 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08804000 - 08a35a00 size 00231a00 taken=1 tag=ELF/IrregularHunterX
30:09:148 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08a35a00 - 0a000000 size 015ca600 taken=0 tag=(untitled)
30:09:148 Util/BlockAllocator.cpp:387 I[HLE]: -----------
30:09:179 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memcpy_jak at 0898c5f4 with hash 0ffa5db8396d4274
30:09:179 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memset_jak at 0898c634 with hash eabb9c1b4f83d2b4
30:09:179 HLE/sceKernelModule.cpp:1034 I[LOAD]: Module IrregularHunterX: 00000000 089a5654 089a566c
30:09:180 HLE/sceKernelModule.cpp:1235 I[LOAD]: Exporting ent 0 named IrregularHunterX, 2 funcs, 3 vars, resident 089a59cc
30:09:181 HLE/sceKernelModule.cpp:1557 I[LOAD]: Module entry: 08980f34
30:09:186 root         N[BOOT]: UI/EmuScreen.cpp:141 Loading /Volumes/Algo/Emulaters/PSP/MIHX.iso...
30:09:187 root         I[COMMON]: Common/FileUtil.cpp:464 GetCreateTime: /Users/litongzhou/.config/ppsspp/PSP/PPSSPP_STATE/ULUS10068_1.01_0.ppst: 1378019122
30:09:188 root         I[KERNEL]: HLE/sceKernelThread.cpp:2169 276=sceKernelCreateThread(user_main, 08980ff0, 00000020, 262144, 80000000, 00000000)
30:09:188 root         I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(276, 33, 09fffed0)
30:09:188 root         I[KERNEL]: HLE/sceKernelThread.cpp:2279 __KernelReturnFromThread: 0
30:09:212 user_main    I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00000000 : 480 x 272 x 3
30:09:229 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 278=sceKernelCreateThread(, 08921994, 00000072, 4096, 00000000, 00000000)
30:09:229 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(278, 0, 00000000)
30:09:229 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 280=sceKernelCreateThread(, 08922918, 00000073, 8192, 00000000, 00000000)
30:09:229 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(280, 0, 00000000)
30:09:289 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 283=sceKernelCreateThread(, 08822674, 00000074, 131072, 00004000, 00000000)
30:09:290 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(283, 0, 00000000)
30:09:290              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
30:09:302              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:302              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceSAScore with version 0103, devkit 00000000
30:09:302              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
30:09:302              I[MODULE]: HLE/sceKernelModule.cpp:2175 285=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
30:09:302              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(285,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:302              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceAudiocodec_Driver with version 0103, devkit 00000000
30:09:303              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:2175 287=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(287,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:303              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceATRAC3plus_Library with version 0102, devkit 00000000
30:09:303              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:2175 289=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
30:09:303              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(289,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:303              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceVideocodec_Driver with version 0103, devkit 00000000
30:09:305              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:2175 291=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(291,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:305              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpegbase_Driver with version 0103, devkit 00000000
30:09:305              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:2175 293=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(293,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:305              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpeg_library with version 0103, devkit 00000000
30:09:305              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:2175 295=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
30:09:305              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(295,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:306              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
30:09:306              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
30:09:306              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module scePsmf_library with version 0101, devkit 00000000
30:09:306              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
30:09:306              I[MODULE]: HLE/sceKernelModule.cpp:2175 297=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
30:09:306              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(297,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
30:09:307 user_main    I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00088000 : 480 x 272 x 3
30:09:336              I[KERNEL]: HLE/sceKernelThread.cpp:2169 302=sceKernelCreateThread(CsePspSndDrvThread, 08921910, 0000001a, 4096, 00000000, 00000000)
30:09:336              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(302, 4, 09fbca20)
30:09:336              I[KERNEL]: HLE/sceKernelThread.cpp:2169 303=sceKernelCreateThread(CsePspSasRendThread, 0892167c, 00000010, 4096, 00000000, 00000000)
30:09:336              I[SCESAS]: HLE/sceSas.cpp:106 sceSasInit(089ec640, 256, 32, 0, 44100)
30:09:336              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(303, 0, 00000000)
30:09:338              I[KERNEL]: HLE/sceKernelThread.cpp:2169 307=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 089209cc, 00000010, 32768, 00000000, 00000000)
30:09:338              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(307, 4, 09fbc9f0)
30:09:338              I[KERNEL]: HLE/sceKernelThread.cpp:2169 308=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 089209cc, 00000010, 32768, 00000000, 00000000)
30:09:338              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(308, 4, 09fbc9f0)
30:09:481              I[UTIL]: HLE/sceUtility.cpp:276 00000000=sceUtilityMsgDialogInitStart(09220040)
30:11:689              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - SIZES (8)
30:11:689              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
30:11:954              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - AUTOLOAD (0)
30:11:954              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
30:12:154 CsePspSasRen I[UTIL]: Dialog/SavedataParam.cpp:586 Loading file with size 52 in ms0:/PSP/SAVEDATA/ULUS10068MMMHXSYS/SYSTEM.DAT
30:12:204 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 310=sceKernelCreateThread(, 08921a18, 00000076, 4096, 00000000, 00000000)
30:12:204 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(310, 0, 00000000)
30:12:485 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(310)
30:12:502 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(283)
30:12:519 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 311=sceKernelCreateThread(, 0881fd10, 00000074, 131072, 00004000, 00000000)
30:12:520 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(311, 0, 00000000)
30:13:038              I[ME]: HLE/sceMpeg.cpp:422 sceMpegInit()
30:13:038              I[ME]: HLE/sceMpeg.cpp:529 095200a0=sceMpegCreate(09fbc960, 09520070, 65536, 09fbc964, 512, 0, 0)
30:13:039              W[ME]: HLE/scePsmf.cpp:791 scePsmfQueryStreamOffset(09530090, 08a327d4)
30:13:039              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0xB7800
30:13:039              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 540450
30:13:039              I[ME]: HLE/scePsmf.cpp:642 scePsmfSetPsmf(08a327a4, 09530090)
30:13:039              I[ME]: HLE/scePsmf.cpp:309 PSMF MPEG data found: id=e0, privid=00, epmoff=000000a2, epmnum=00000004, width=480, height=272
30:13:039              I[ME]: HLE/scePsmf.cpp:318 PSMF private audio found: id=bd, privid=00, channels=2, freq=2
30:13:039              I[ME]: HLE/scePsmf.cpp:709 scePsmfSpecifyStreamWithStreamTypeNumber(08a327a4, 00000000, 00000000)
30:13:039              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 0, 0)
30:13:039              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 1, 0)
30:13:069              I[KERNEL]: HLE/sceKernelThread.cpp:2169 316=sceKernelCreateThread(soundThread, 08912720, 0000003d, 2048, 00000000, 00000000)
30:13:069              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(316, 4, 08a3279c)
30:13:070              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0x10C800
30:13:070              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 900810
30:13:080              I[ME]: HW/MediaEngine.cpp:85 FF: deprecated pixel format used, make sure you did set range correctly
===
Freezes here
===
Process 1231 stopped
* thread #1: tid = 0x37ba, 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
->  0x7fff87954136 <+10>: jae    0x7fff87954140            ; <+20>
    0x7fff87954138 <+12>: movq   %rax, %rdi
    0x7fff8795413b <+15>: jmp    0x7fff8794fc53            ; cerror_nocancel
    0x7fff87954140 <+20>: retq
(lldb) kill
Process 1231 exited with status = 9 (0x00000009)
(lldb) exit
lldb PPSSPPSDL  3.74s user 1.40s system 6% cpu 1:20.80 total

@unknownbrackets
Copy link
Collaborator

Can you give me a bt (from the gdb prompt after you interrupt it)? Looks like it's waiting in some condition variable or something, but that doesn't tell me much without a stack trace.

-[Unknown]

@CarterLi
Copy link
Contributor Author

Process 1268 stopped
* thread #1: tid = 0x4589, 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
->  0x7fff87954136 <+10>: jae    0x7fff87954140            ; <+20>
    0x7fff87954138 <+12>: movq   %rax, %rdi
    0x7fff8795413b <+15>: jmp    0x7fff8794fc53            ; cerror_nocancel
    0x7fff87954140 <+20>: retq
(lldb) bt
* thread #1: tid = 0x4589, 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff87954136 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8b7b2e0c libsystem_pthread.dylib`_pthread_cond_wait + 693
    frame #2: 0x000000010021f8a8 PPSSPPSDL`ThreadEventQueue<GPUInterface, GPUEvent, GPUEventType, (GPUEventType)0, (GPUEventType)8, (GPUEventType)7>::RunEventsUntil(unsigned long long) + 136
    frame #3: 0x00000001001c121d PPSSPPSDL`PSP_RunLoopUntil(unsigned long long) + 877
    frame #4: 0x0000000100019ae7 PPSSPPSDL`EmuScreen::render() + 279
    frame #5: 0x00000001005adb19 PPSSPPSDL`ScreenManager::render() + 169
    frame #6: 0x0000000100008ba3 PPSSPPSDL`NativeRender() + 803
    frame #7: 0x00000001005770de PPSSPPSDL`main + 5086
    frame #8: 0x00007fff8eeef5c9 libdyld.dylib`start + 1

Is this what you want?

@unknownbrackets
Copy link
Collaborator

Yes. Looks like you're using "multithreaded" and it's waiting for an event on the GPU thread.

If you turn that off, does it also hang completely, or does it start responding to user input?

Otherwise, a bt with it off might tell me more.

-[Unknown]

@CarterLi
Copy link
Contributor Author

Closed "Multithreaded (experimental)"; UI still freezes completely

(lldb) target create "PPSSPPSDL"
Current executable set to 'PPSSPPSDL' (x86_64).
(lldb) run
Process 1290 launched: '/Applications/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL' (x86_64)
OpenGL 2.0 or higher.
51:13:719 Core/Config.cpp:856 I[LOAD]: Loading controller config: /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/controls.ini
Pixels: 960 x 544
Virtual pixels: 960 x 544
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gl_state.cpp:133: I: GPU Vendor : Intel Inc. ; renderer: Intel Iris OpenGL Engine version str: 2.1 INTEL-10.2.46 ; GLSL version str: 1.20
I: /Users/litongzhou/Documents/ppsspp/native/gfx_es2/gpu_features.cpp:20: I: Checking for GL driver bugs... vendor=3 model='Intel Iris OpenGL Engine'
W: /Users/litongzhou/Documents/ppsspp/native/file/file_util.cpp:215: W: IsDirectory: stat failed on
51:26:197 Core/Config.cpp:942 I[LOAD]: Config saved: /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ppsspp.ini
51:26:197 Core/Config.cpp:955 I[LOAD]: Controller config saved: /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/controls.ini
51:31:628 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULJM05043_ppsspp.ini. No game-specific settings found, using global defaults.
51:31:628 Core/System.cpp:352 I[BOOT]: PPSSPP v1.0.1-233-g13c08ab
51:31:643 Core/MemMap.cpp:338 I[MM]: Memory system initialized. RAM at 0x10ee11000 (mirror at 0 @ 0x2308000000, uncached @ 0x2348000000)
51:31:643 Core/PSPLoaders.cpp:168 I[LOAD]: ULJM05043 : イレギュラーハンターX
51:31:643 Core/Config.cpp:1187 I[LOAD]: Failed to read /Users/litongzhou/.config/ppsspp/PSP/SYSTEM/ULJM05043_ppsspp.ini. No game-specific settings found, using global defaults.
51:31:643 Core/PSPLoaders.cpp:210 I[LOAD]: Loading disc0:/PSP_GAME/SYSDIR/EBOOT.BIN...
51:31:643 HLE/sceKernelMemory.cpp:436 I[KERNEL]: Kernel and user memory pools initialized
51:31:670 HLE/sceKernel.cpp:151 I[KERNEL]: Kernel initialized.
51:31:711 Util/BlockAllocator.cpp:381 I[HLE]: -----------
51:31:711 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08800000 - 08804000 size 00004000 taken=1 tag=usersystemlib
51:31:711 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08804000 - 08a35300 size 00231300 taken=1 tag=ELF/IrregularHunterX
51:31:711 Util/BlockAllocator.cpp:385 I[HLE]: Block: 08a35300 - 0a000000 size 015cad00 taken=0 tag=(untitled)
51:31:711 Util/BlockAllocator.cpp:387 I[HLE]: -----------
51:31:740 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memcpy_jak at 0898bd1c with hash 0ffa5db8396d4274
51:31:740 HLE/ReplaceTables.cpp:1181 I[HLE]: Replaced memset_jak at 0898bd5c with hash eabb9c1b4f83d2b4
51:31:740 HLE/sceKernelModule.cpp:1034 I[LOAD]: Module IrregularHunterX: 00000000 089a4d7c 089a4d94
51:31:741 HLE/sceKernelModule.cpp:1235 I[LOAD]: Exporting ent 0 named IrregularHunterX, 2 funcs, 3 vars, resident 089a50f4
51:31:742 HLE/sceKernelModule.cpp:1557 I[LOAD]: Module entry: 0898065c
51:31:746 root         N[BOOT]: UI/EmuScreen.cpp:141 Loading /Volumes/Algo/Emulaters/PSP/d-rmxih.iso...
51:31:746 root         I[KERNEL]: HLE/sceKernelThread.cpp:2169 276=sceKernelCreateThread(user_main, 08980718, 00000020, 262144, 80000000, 00000000)
51:31:747 root         I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(276, 33, 09fffed0)
51:31:747 root         I[KERNEL]: HLE/sceKernelThread.cpp:2279 __KernelReturnFromThread: 0
51:31:769 user_main    I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00000000 : 480 x 272 x 3
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 278=sceKernelCreateThread(, 08921238, 00000072, 4096, 00000000, 00000000)
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(278, 0, 00000000)
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 280=sceKernelCreateThread(, 089221bc, 00000073, 8192, 00000000, 00000000)
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(280, 0, 00000000)
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 283=sceKernelCreateThread(, 08822118, 00000074, 131072, 00004000, 00000000)
51:31:786 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(283, 0, 00000000)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceSAScore with version 0103, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 285=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(285,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceAudiocodec_Driver with version 0103, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 287=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(287,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceATRAC3plus_Library with version 0102, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 289=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(289,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceVideocodec_Driver with version 0103, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 291=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(291,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=1, text=1
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpegbase_Driver with version 0103, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 59, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 293=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000001,00000001,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(293,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module sceMpeg_library with version 0103, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 295=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(295,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              W[LOAD]: HLE/sceKernelModule.cpp:2137 sceKernelLoadModuleByID: unsupported options size=00000014, flags=00000000, pos=0, access=1, data=2, text=2
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:852 ~SCE module, skipping header
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:866 Loading module scePsmf_library with version 0101, devkit 00000000
51:31:787              I[HLE]: ELF/PrxDecrypter.cpp:308 Missing key 5B, cannot decrypt module
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:2175 297=sceKernelLoadModuleByID(4,flag=00000000,00000014,00000002,00000002,position = 00000000)
51:31:787              I[MODULE]: HLE/sceKernelModule.cpp:1761 sceKernelStartModule(297,asize=00000000,aptr=00000000,retptr=09fbca44,00000000): faked (undecryptable module)
51:31:787              I[KERNEL]: HLE/sceKernelThread.cpp:2169 302=sceKernelCreateThread(CsePspSndDrvThread, 089211b4, 0000001a, 4096, 00000000, 00000000)
51:31:787              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(302, 4, 09fbca20)
51:31:787              I[KERNEL]: HLE/sceKernelThread.cpp:2169 303=sceKernelCreateThread(CsePspSasRendThread, 08920f20, 00000010, 4096, 00000000, 00000000)
51:31:788              I[SCESAS]: HLE/sceSas.cpp:106 sceSasInit(089ebfc0, 256, 32, 0, 44100)
51:31:788              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(303, 0, 00000000)
51:31:789              I[KERNEL]: HLE/sceKernelThread.cpp:2169 307=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 08920270, 00000010, 32768, 00000000, 00000000)
51:31:789              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(307, 4, 09fbc9f0)
51:31:789              I[KERNEL]: HLE/sceKernelThread.cpp:2169 308=sceKernelCreateThread(CsePspAtrac3DecodeThrd, 08920270, 00000010, 32768, 00000000, 00000000)
51:31:789              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(308, 4, 09fbc9f0)
51:31:790 user_main    I[SCEGE]: Common/FramebufferCommon.cpp:331 Creating FBO for 00088000 : 480 x 272 x 3
51:32:020              I[UTIL]: HLE/sceUtility.cpp:276 00000000=sceUtilityMsgDialogInitStart(09220040)
51:34:231              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - SIZES (8)
51:34:231              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
51:34:498              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - AUTOLOAD (0)
51:34:498              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
51:34:696 idle0        I[UTIL]: Dialog/SavedataParam.cpp:586 Loading file with size 52 in ms0:/PSP/SAVEDATA/ULJM05043IHXSYS/SYSTEM.DAT
51:34:748 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 310=sceKernelCreateThread(, 089212bc, 00000076, 4096, 00000000, 00000000)
51:34:749 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(310, 0, 00000000)
51:35:031 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(310)
51:35:046 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(283)
51:35:063 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 311=sceKernelCreateThread(, 0881f7b4, 00000074, 131072, 00004000, 00000000)
51:35:063 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(311, 0, 00000000)
51:35:564              I[ME]: HLE/sceMpeg.cpp:422 sceMpegInit()
51:35:564              I[ME]: HLE/sceMpeg.cpp:529 095200a0=sceMpegCreate(09fbc960, 09520070, 65536, 09fbc964, 512, 0, 0)
51:35:565              W[ME]: HLE/scePsmf.cpp:791 scePsmfQueryStreamOffset(09530090, 08a32154)
51:35:565              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0xB7800
51:35:565              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 540450
51:35:565              I[ME]: HLE/scePsmf.cpp:642 scePsmfSetPsmf(08a32124, 09530090)
51:35:565              I[ME]: HLE/scePsmf.cpp:309 PSMF MPEG data found: id=e0, privid=00, epmoff=000000a2, epmnum=00000004, width=480, height=272
51:35:565              I[ME]: HLE/scePsmf.cpp:318 PSMF private audio found: id=bd, privid=00, channels=2, freq=2
51:35:565              I[ME]: HLE/scePsmf.cpp:709 scePsmfSpecifyStreamWithStreamTypeNumber(08a32124, 00000000, 00000000)
51:35:565              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 0, 0)
51:35:565              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 1, 0)
51:35:591              I[KERNEL]: HLE/sceKernelThread.cpp:2169 316=sceKernelCreateThread(soundThread, 08912010, 0000003d, 2048, 00000000, 00000000)
51:35:591              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(316, 4, 08a3211c)
51:35:591              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0x10C800
51:35:591              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 900810
51:35:598              I[ME]: HW/MediaEngine.cpp:85 FF: deprecated pixel format used, make sure you did set range correctly
Process 1290 stopped
* thread #1: tid = 0x4b59, 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
->  0x7fff8795448a <+10>: jae    0x7fff87954494            ; <+20>
    0x7fff8795448c <+12>: movq   %rax, %rdi
    0x7fff8795448f <+15>: jmp    0x7fff8794fc78            ; cerror
    0x7fff87954494 <+20>: retq
(lldb) bt
* thread #1: tid = 0x4b59, 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8f2d0f5d libsystem_c.dylib`nanosleep + 199
    frame #2: 0x00007fff8f2d0e50 libsystem_c.dylib`usleep + 54
    frame #3: 0x00000001000edb26 PPSSPPSDL`hleEnterVblank(unsigned long long, int) + 1974
    frame #4: 0x000000010009708c PPSSPPSDL`CoreTiming::Advance() + 124
    frame #5: 0x000000010014090b PPSSPPSDL`__KernelReSchedule(char const*) + 27
(lldb) exit
Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y

@unknownbrackets
Copy link
Collaborator

Okay, well, that's exactly where I'd want it to be. So, it's sleeping while you're pressing a key. At least it's not hung in a weird way or some loop.

What if you add a printf() here under native/base/PCMain.cpp:
https://github.com/hrydgard/native/blob/a506ba2e83913ac4ebf4d1fb092f847f5e7e03e4/base/PCMain.cpp#L655

It should do that several times per second, and that's where it should be accepting keypresses.

You can also add a printf() here:
https://github.com/hrydgard/native/blob/a506ba2e83913ac4ebf4d1fb092f847f5e7e03e4/base/PCMain.cpp#L700

That should happen every time you press a key.

-[Unknown]

@CarterLi
Copy link
Contributor Author

diff --git a/base/PCMain.cpp b/base/PCMain.cpp
index 536d2fd..57e43d0 100644
--- a/base/PCMain.cpp
+++ b/base/PCMain.cpp
@@ -653,6 +653,7 @@ int main(int argc, char *argv[]) {

                SDL_Event event;
                while (SDL_PollEvent(&event)) {
+            puts("SDL_PollEvent(&event): base/PCMain.cpp#L655");
                        float mx = event.motion.x * g_dpi_scale;
                        float my = event.motion.y * g_dpi_scale;

@@ -698,6 +699,7 @@ int main(int argc, char *argv[]) {
                                        key.keyCode = KeyMapRawSDLtoNative.find(k)->second;
                                        key.deviceId = DEVICE_ID_KEYBOARD;
                                        NativeKey(key);
+                    puts("NativeKey(key): base/PCMain.cpp#L700");

                                        for (int i = 0; i < ARRAY_SIZE(legacyKeyMap); i++) {
                                                if (legacyKeyMap[i] == key.keyCode)

lldb logs: (I'm pressing keys rapidly)

SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
08:35:623              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - SIZES (8)
08:35:623              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
08:35:890              I[UTIL]: Dialog/PSPSaveDialog.cpp:85 sceUtilitySavedataInitStart(09220040) - AUTOLOAD (0)
08:35:890              I[UTIL]: Dialog/PSPSaveDialog.cpp:86 sceUtilitySavedataInitStart(09220040) : Game key (hex): 524F434B4D414ED2CFC3CBCDC1CE4569
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
08:36:091 idle0        I[UTIL]: Dialog/SavedataParam.cpp:586 Loading file with size 52 in ms0:/PSP/SAVEDATA/ULJM05043IHXSYS/SYSTEM.DAT
08:36:141 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 310=sceKernelCreateThread(, 089212bc, 00000076, 4096, 00000000, 00000000)
08:36:142 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(310, 0, 00000000)
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
08:36:424 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(310)
08:36:439 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2437 sceKernelTerminateDeleteThread(283)
08:36:459 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2169 311=sceKernelCreateThread(, 0881f7b4, 00000074, 131072, 00004000, 00000000)
08:36:460 user_main    I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(311, 0, 00000000)
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
NativeKey(key): base/PCMain.cpp#L700
SDL_PollEvent(&event): base/PCMain.cpp#L655
SDL_PollEvent(&event): base/PCMain.cpp#L655
08:36:961              I[ME]: HLE/sceMpeg.cpp:422 sceMpegInit()
08:36:961              I[ME]: HLE/sceMpeg.cpp:529 095200a0=sceMpegCreate(09fbc960, 09520070, 65536, 09fbc964, 512, 0, 0)
08:36:961              W[ME]: HLE/scePsmf.cpp:791 scePsmfQueryStreamOffset(09530090, 08a32154)
08:36:961              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0xB7800
08:36:961              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 540450
08:36:961              I[ME]: HLE/scePsmf.cpp:642 scePsmfSetPsmf(08a32124, 09530090)
08:36:961              I[ME]: HLE/scePsmf.cpp:309 PSMF MPEG data found: id=e0, privid=00, epmoff=000000a2, epmnum=00000004, width=480, height=272
08:36:962              I[ME]: HLE/scePsmf.cpp:318 PSMF private audio found: id=bd, privid=00, channels=2, freq=2
08:36:962              I[ME]: HLE/scePsmf.cpp:709 scePsmfSpecifyStreamWithStreamTypeNumber(08a32124, 00000000, 00000000)
08:36:962              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 0, 0)
08:36:962              I[ME]: HLE/sceMpeg.cpp:647 sceMpegRegistStream(09fbc960, 1, 0)
08:36:984              I[KERNEL]: HLE/sceKernelThread.cpp:2169 316=sceKernelCreateThread(soundThread, 08912010, 0000003d, 2048, 00000000, 00000000)
08:36:984              I[KERNEL]: HLE/sceKernelThread.cpp:2240 0=sceKernelStartThread(316, 4, 08a3211c)
08:36:985              I[ME]: HLE/sceMpeg.cpp:347 Stream offset: 2048, Stream size: 0x10C800
08:36:985              I[ME]: HLE/sceMpeg.cpp:348 First timestamp: 90000, Last timestamp: 900810
08:36:994              I[ME]: HW/MediaEngine.cpp:85 FF: deprecated pixel format used, make sure you did set range correctly
Process 3753 stopped
* thread #1: tid = 0xbe52, 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
->  0x7fff8795448a <+10>: jae    0x7fff87954494            ; <+20>
    0x7fff8795448c <+12>: movq   %rax, %rdi
    0x7fff8795448f <+15>: jmp    0x7fff8794fc78            ; cerror
    0x7fff87954494 <+20>: retq
(lldb) bt
* thread #1: tid = 0xbe52, 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8795448a libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff8f2d0f5d libsystem_c.dylib`nanosleep + 199
    frame #2: 0x00007fff8f2d0e50 libsystem_c.dylib`usleep + 54
    frame #3: 0x00000001000ee206 PPSSPPSDL`hleEnterVblank(unsigned long long, int) + 1974
    frame #4: 0x000000010009776c PPSSPPSDL`CoreTiming::Advance() + 124
    frame #5: 0x0000000100140feb PPSSPPSDL`__KernelReSchedule(char const*) + 27
(lldb) exit
Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y

Waited more than 30 seconds.
Well, I don't think that the program can listen to user's input while the whole thread is sleeping...

Will a debug build be helpful? How can I build a debug version with cmake? @unknownbrackets
Could you reopen this issue if it's different from #3318 ?

@unknownbrackets
Copy link
Collaborator

I really don't know much about SDL myself. Something looks wrong here if it never polled SDL events, though. It only sleeps for the duration of a single frame, and it should drop out of the runloop periodically to check for SDL events. It doesn't look like it's doing this on Linux/Mac, but I don't know why.

But I think all of that is unrelated to Mega Man, and we already have an issue for Mega Man. It would make more sense to open a separate issue that SDL_PollEvent doesn't get reached while the game is not drawing things (e.g. while it's not flipping buffers.) It needs to at least go back there sometimes, and I thought it did. Sleeping for most of the frame is still correct, though.

-[Unknown]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants