InoriRus / Kyty

PS4 & PS5 emulator
MIT License
2.49k stars 146 forks source link

Unknown exception (sample used to work before) #8

Closed zecoxao closed 2 years ago

zecoxao commented 2 years ago

Logs:

exe_name = C:/Users/zeluis/Desktop/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio --- Stack Trace --- [0] 0000000140272c0c, 0000000140272aa0, RuntimeLinker.cpp.obj, Kyty::Loader::kyty_exception_handler(Kyty::Loader::VirtualMemory::ExceptionHandler::ExceptionInfo const) [1] 000000014026dacd, 000000014026da60, VirtualMemory.cpp.obj, Kyty::Loader::VirtualMemory::ExceptionHandlerPrivate::Handler(_EXCEPTION_RECORD, unsigned long long, _CONTEXT, _DISPATCHER_CONTEXT) [2] 00007ffa790e86ef, 0000000000000000, unknown, unknown [3] 00007ffa79075aea, 0000000000000000, unknown, unknown [4] 00007ffa790e76fe, 0000000000000000, unknown, unknown [5] 0000000010071806, 0000000000000000, unknown, unknown [6] 0000000010063f5f, 0000000000000000, unknown, unknown --- Error --- Unknown exception!!! in C:/projects/kyty/source/emulator/src/RuntimeLinker.cpp:172

Before, videoout_basic.elf would display and work properly, now it doesn't. Any idea why?

InoriRus commented 2 years ago

Please check it with latest commit

zecoxao commented 2 years ago

same error i believe

exe_name = C:/Users/zeluis/Desktop/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio --- Stack Trace --- [0] 0000000140272c0c, 0000000140272aa0, RuntimeLinker.cpp.obj, Kyty::Loader::kyty_exception_handler(Kyty::Loader::VirtualMemory::ExceptionHandler::ExceptionInfo const) [1] 000000014026dacd, 000000014026da60, VirtualMemory.cpp.obj, Kyty::Loader::VirtualMemory::ExceptionHandlerPrivate::Handler(_EXCEPTION_RECORD, unsigned long long, _CONTEXT, _DISPATCHER_CONTEXT) [2] 00007ffa790e86ef, 0000000000000000, unknown, unknown [3] 00007ffa79075aea, 0000000000000000, unknown, unknown [4] 00007ffa790e76fe, 0000000000000000, unknown, unknown [5] 0000000010071806, 0000000000000000, unknown, unknown [6] 0000000010063f5f, 0000000000000000, unknown, unknown --- Error --- Unknown exception!!! in C:/projects/kyty/source/emulator/src/RuntimeLinker.cpp:172

InoriRus commented 2 years ago

Try to enable detailed log and run again:

image

zecoxao commented 2 years ago

exe_name = C:/Users/zeluis/Desktop/Kyty/fc_script.exe Initialized: Config Initialized: Profiler Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Graphics Initialized: Audio PageSize = 4096 MinimumApplicationAddress = 0x0000000000010000 MaximumApplicationAddress = 0x00007ffffffeffff ActiveProcessorMask = 0x000000ff NumberOfProcessors = 8 ProcessorArchitecture = Amd64 AllocationGranularity = 0 ProcessorLevel = 6 ProcessorRevision = 0x2a07 ProcessorName = Intel Core i7-2600K Loading: C:/Users/zeluis/Desktop/ORBIS_Debug/sce_module/libc.prx base_vaddr = 0x0000000010000000 base_size = 0x00000000000f8000 base_size_aligned = 0x00000000000f9000 exception_handler_size = 0x0000000000001000 [0] addr = 0x0000000010000000 [0] file_size = 875248 [0] memory_size = 884736 [0] mode = ExecuteRead [1] addr = 0x00000000100d8000 [1] file_size = 16136 [1] memory_size = 16384 [1] mode = Read [2] addr = 0x00000000100dc000 [2] file_size = 16504 [2] memory_size = 114688 [2] mode = ReadWrite tls addr = 0x00000000100dc020 tls size = 1168 entry = 0x0000000010000000 Loading: C:/Users/zeluis/Desktop/ORBIS_Debug/sce_module/libSceFios2.prx base_vaddr = 0x0000000020000000 base_size = 0x000000000018c000 base_size_aligned = 0x000000000018d000 exception_handler_size = 0x0000000000001000 [0] addr = 0x0000000020000000 [0] file_size = 367440 [0] memory_size = 376832 [0] mode = ExecuteRead [1] addr = 0x000000002005c000 [1] file_size = 1720 [1] memory_size = 16384 [1] mode = Read [2] addr = 0x0000000020060000 [2] file_size = 54480 [2] memory_size = 1228800 [2] mode = ReadWrite tls addr = 0x0000000020060020 tls size = 64 entry = 0x0000000020000000 Loading: C:/Users/zeluis/Desktop/ORBIS_Debug/videoout_basic.elf base_vaddr = 0x0000000030000000 base_size = 0x0000000000030000 base_size_aligned = 0x0000000000031000 exception_handler_size = 0x0000000000001000 tls_handler_size = 0x0000000000001000 [0] addr = 0x0000000030000000 [0] file_size = 149832 [0] memory_size = 163840 [0] mode = ExecuteRead [1] addr = 0x0000000030028000 [1] file_size = 1112 [1] memory_size = 16384 [1] mode = Read [2] addr = 0x000000003002c000 [2] file_size = 184 [2] memory_size = 16384 [2] mode = ReadWrite tls addr = 0x0000000030000000 tls size = 0 entry = 0x00000000300014d0 [9][00:00:00.129] libkernel::libkernel::PthreadAttrInit() [9][00:00:00.129] libkernel::libkernel::PthreadAttrSetinheritsched() [9][00:00:00.130] libkernel::libkernel::PthreadAttrSetschedparam() [9][00:00:00.130] libkernel::libkernel::PthreadAttrSetschedpolicy() [9][00:00:00.133] libkernel::libkernel::PthreadAttrSetdetachstate() [9][00:00:00.135] libkernel::libkernel::PthreadAttrGetaffinity() [9][00:00:00.135] libkernel::libkernel::PthreadAttrGetdetachstate() [9][00:00:00.136] libkernel::libkernel::PthreadAttrGetguardsize() [9][00:00:00.136] libkernel::libkernel::PthreadAttrGetinheritsched() [9][00:00:00.137] libkernel::libkernel::PthreadAttrGetschedparam() [9][00:00:00.138] libkernel::libkernel::PthreadAttrGetschedpolicy() [9][00:00:00.138] libkernel::libkernel::PthreadAttrGetstackaddr() [9][00:00:00.138] libkernel::libkernel::PthreadAttrGetstacksize() cpu_mask = 0x7f detach_state = 0 guard_size = 4096 inherit_sched = 4 sched_priority = 700 policy = 1 stack_addr = 0x0000000000000000 stack_size = 0 --- Relocate program: C:/Users/zeluis/Desktop/ORBIS_Debug/sce_module/libc.prx --- --- Relocate program: C:/Users/zeluis/Desktop/ORBIS_Debug/sce_module/libSceFios2.prx --- --- Relocate program: C:/Users/zeluis/Desktop/ORBIS_Debug/videoout_basic.elf ---

--- Start module: C:/Users/zeluis/Desktop/ORBIS_Debug/sce_module/libc.prx

[9][00:00:00.197] libkernel::libkernel::KernelGetProcParam() [9][00:00:00.197] libkernel::libkernel::KernelRtldSetApplicationHeapAPI() api[0] = 0x000000001005e6e0 api[1] = 0x000000001005e700 api[2] = 0x0000000000000000 api[3] = 0x0000000000000000 api[4] = 0x0000000000000000 api[5] = 0x0000000000000000 api[6] = 0x000000001005e7d0 api[7] = 0x0000000000000000 api[8] = 0x0000000000000000 api[9] = 0x0000000000000000 kyty_exception_handler: 0000000010071806 --- Stack Trace --- [0] 0000000140238e9d, 0000000140238d20, emulator:RuntimeLinker.cpp.obj, ?kyty_exception_handler@Loader@Kyty@@YAXPEBUExceptionInfo@ExceptionHandler@VirtualMemory@12@@Z [1] 0000000140231efc, 0000000140231e80, emulator:VirtualMemory.cpp.obj, ?Handler@ExceptionHandlerPrivate@VirtualMemory@Loader@Kyty@@SA?AW4_EXCEPTION_DISPOSITION@@PEAU_EXCEPTION_RECORD@@_KPEAU_CONTEXT@@PEAU_DISPATCHER_CONTEXT@@@Z [2] 00007ffa790e86ef, 0000000000000000, unknown, unknown [3] 00007ffa79075aea, 0000000000000000, unknown, unknown [4] 00007ffa790e76fe, 0000000000000000, unknown, unknown [5] 0000000010071806, 0000000000000001, , @vol.md [6] 0000000010063f5f, 0000000000000001, , @vol.md --- Error --- Unknown exception!!! in C:\projects\kyty\source\emulator\src\RuntimeLinker.cpp:172

zecoxao commented 2 years ago

I figured it out. it was working on another desktop, not this one. tried on the ryzen one and it works. closing issue...