Posts: 2,420
Threads: 30
Joined: Dec 2009
Reputation:
50
(09-03-2020, 03:12 PM)onelight Wrote: working when flash0/kd/*.prx files present The working log are from an extremely old Jpcsp version from April 2017
Code: 22:42:19 INFO emu - GUI - Jpcsp v0.7 78e74c6
How is it with the current Jpcsp version?
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Posts: 549
Threads: 63
Joined: Mar 2013
Reputation:
8
09-04-2020, 03:44 AM
(This post was last modified: 09-05-2020, 01:51 AM by onelight.)
(09-03-2020, 07:43 PM)gid15 Wrote: (09-03-2020, 03:12 PM)onelight Wrote: working when flash0/kd/*.prx files present The working log are from an extremely old Jpcsp version from April 2017
Code: 22:42:19 INFO emu - GUI - Jpcsp v0.7 78e74c6
How is it with the current Jpcsp version? The newer no working
0f1ba37-log.zip (Size: 58.85 KB / Downloads: 190)
the latest version crash
025f681-log.zip (Size: 58.31 KB / Downloads: 172)
BTW based on Jpcsp v0.7 78e74c6 log, ANR2ME fixed khbbs adhoc for PPSSPP
https://github.com/hrydgard/ppsspp/pull/13318/commits
https://github.com/hrydgard/ppsspp/pull/13375/commits
etc
Posts: 549
Threads: 63
Joined: Mar 2013
Reputation:
8
tested 025f681
log1.7z (Size: 98.71 KB / Downloads: 163)
log2.7z (Size: 99.47 KB / Downloads: 193)
log3.7z (Size: 91.12 KB / Downloads: 163)
Posts: 2,420
Threads: 30
Joined: Dec 2009
Reputation:
50
09-05-2020, 08:08 PM
(This post was last modified: 09-06-2020, 06:55 AM by gid15.)
A small improvement in 90318ce when using flash0/kd/utility.prx and pspnet*.prx.
When generating the log files, could you please add the following 2 lines (additionally to the ones you already have):
Code: <logger name='hle.sceNetIfhandle'> <level value='debug' /> </logger>
<logger name='hle.sceUtility'> <level value='debug' /> </logger>
<logger name='hle.sceWlan'> <level value='trace' /> </logger>
<logger name='hle.SysMemUserForUser'> <level value='trace' /> </logger>
Thank you!
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Posts: 549
Threads: 63
Joined: Mar 2013
Reputation:
8
09-06-2020, 11:06 AM
(This post was last modified: 09-06-2020, 11:18 AM by onelight.)
(09-05-2020, 08:08 PM)gid15 Wrote: A small improvement in 90318ce when using flash0/kd/utility.prx and pspnet*.prx.
When generating the log files, could you please add the following 2 lines (additionally to the ones you already have):
Code: <logger name='hle.sceNetIfhandle'> <level value='debug' /> </logger>
<logger name='hle.sceUtility'> <level value='debug' /> </logger>
<logger name='hle.sceWlan'> <level value='trace' /> </logger>
<logger name='hle.SysMemUserForUser'> <level value='trace' /> </logger>
Thank you!
90318ce-log.zip (Size: 113.96 KB / Downloads: 202)
I found jpcsp won't crash if maximum method size >= 500, I am sorry
Posts: 549
Threads: 63
Joined: Mar 2013
Reputation:
8
Try Multiplayer on 2 PCs when using flash0/kd/utility.prx and pspnet*.prx
Can find players until I run the 3rd jpcsp
each jpcsp miss 1 player
JPCSP1-log.7z (Size: 99.69 KB / Downloads: 199)
JPCSP3-log.7z (Size: 78.18 KB / Downloads: 170)
JPCSP2-log.7z (Size: 83.53 KB / Downloads: 179)
Posts: 2,420
Threads: 30
Joined: Dec 2009
Reputation:
50
09-06-2020, 08:41 PM
(This post was last modified: 09-06-2020, 08:44 PM by gid15.)
(09-06-2020, 11:06 AM)onelight Wrote: (09-05-2020, 08:08 PM)gid15 Wrote: A small improvement in 90318ce when using flash0/kd/utility.prx and pspnet*.prx.
When generating the log files, could you please add the following 2 lines (additionally to the ones you already have):
Code: <logger name='hle.sceNetIfhandle'> <level value='debug' /> </logger>
<logger name='hle.sceUtility'> <level value='debug' /> </logger>
<logger name='hle.sceWlan'> <level value='trace' /> </logger>
<logger name='hle.SysMemUserForUser'> <level value='trace' /> </logger>
Thank you!
I found jpcsp won't crash if maximum method size >= 500, I am sorry
There is still an issue with the memory management as there is not enough available PSP memory for the creation of the "SceNetAdhocMatchingEvent" thread. This is not directly related to the network emulation but it seems this game is really using the PSP memory at its maximum and we still have some incompatibility issue there.
Code: 16:50:47 WARN hle.SysMemUserForUser - user_main - malloc cannot allocate partition=2, name='ThreadMan-Stack-0x39e-SceNetAdhocMatchingEvent', type=PSP_SMEM_High, size=0x1000, addr=0x00000000, maxFreeMem=0x400, totalFreeMem=0x900
16:50:47 DEBUG hle.SysMemUserForUser - user_main - Free list: partition=1: [addr=0x08016800-0x083BFE00, size=0x3A9600], [addr=0x083BFF00-0x083FDE00, size=0x3DF00], [addr=0x083FE600-0x083FEB00, size=0x500]
partition=2: [addr=0x09F40F00-0x09F41000, size=0x100], [addr=0x09FA6000-0x09FA6400, size=0x400], [addr=0x09FFFC00-0x0A000000, size=0x400]
16:50:47 DEBUG hle.SysMemUserForUser - user_main - Allocated blocks:
SysMemInfo[addr=0x08000000-0x08000100, uid=0x18, partition=1, name='ThreadMan-InternalHandlers', type=PSP_SMEM_Addr, size=0x100 (allocated=0x100)]
SysMemInfo[addr=0x08000100-0x0800BA00, uid=0x25, partition=1, name='sceUtility_Driver', type=PSP_SMEM_Addr, size=0xB834 (allocated=0xB900)]
SysMemInfo[addr=0x0800BA00-0x0800BB00, uid=0x26, partition=1, name='ModuleStartOptions', type=PSP_SMEM_Low, size=0x14 (allocated=0x100)]
SysMemInfo[addr=0x0800BB00-0x0800DB00, uid=0x2D, partition=1, name='UID Heap', type=PSP_SMEM_Low, size=0x2000 (allocated=0x2000)]
SysMemInfo[addr=0x0800DB00-0x0800DC00, uid=0x54, partition=1, name='ModuleMgr', type=PSP_SMEM_Addr, size=0x100 (allocated=0x100)]
SysMemInfo[addr=0x0800DC00-0x08011A00, uid=0x57, partition=1, name='sceNet_Service', type=PSP_SMEM_Addr, size=0x3D78 (allocated=0x3E00)]
SysMemInfo[addr=0x08011A00-0x08011B00, uid=0x62, partition=1, name='SceKernelGameInfo', type=PSP_SMEM_Low, size=0xDC (allocated=0x100)]
SysMemInfo[addr=0x08011B00-0x08011C00, uid=0x6A, partition=1, name='ModuleMgr', type=PSP_SMEM_Addr, size=0x100 (allocated=0x100)]
SysMemInfo[addr=0x08011C00-0x08016700, uid=0x6D, partition=1, name='sceNetAdhocAuth_Service', type=PSP_SMEM_Addr, size=0x4AB0 (allocated=0x4B00)]
SysMemInfo[addr=0x08016700-0x08016800, uid=0x2D0, partition=1, name='DummyControlBlock', type=PSP_SMEM_Low, size=0x24 (allocated=0x100)]
SysMemInfo[addr=0x083BFE00-0x083BFF00, uid=0x2B, partition=1, name='SceModule-0x2A', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FDE00-0x083FE600, uid=0x37A, partition=1, name='ThreadMan-Stack-0x379-SceWlanHal', type=PSP_SMEM_High, size=0x800 (allocated=0x800)]
SysMemInfo[addr=0x083FEB00-0x083FEC00, uid=0x93, partition=1, name='SceModule-0x92', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FEC00-0x083FED00, uid=0x8C, partition=1, name='SceModule-0x8B', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FED00-0x083FEE00, uid=0x85, partition=1, name='SceModule-0x84', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FEE00-0x083FEF00, uid=0x7E, partition=1, name='SceModule-0x7D', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FEF00-0x083FF000, uid=0x77, partition=1, name='SceModule-0x76', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF000-0x083FF100, uid=0x6C, partition=1, name='SceModule-0x6B', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF100-0x083FF200, uid=0x64, partition=1, name='SceModule-0x63', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF200-0x083FF300, uid=0x61, partition=1, name='SceModule-0x60', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF300-0x083FF400, uid=0x56, partition=1, name='SceModule-0x55', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF400-0x083FF500, uid=0x4E, partition=1, name='SceModule-0x4D', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF500-0x083FF600, uid=0x4B, partition=1, name='SceModule-0x4A', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF600-0x083FF700, uid=0x49, partition=1, name='SceModule-0x48', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x083FF700-0x083FFF00, uid=0x43, partition=1, name='ThreadMan-Stack-0x42-SceIofileAsync', type=PSP_SMEM_High, size=0x800 (allocated=0x800)]
SysMemInfo[addr=0x083FFF00-0x08400000, uid=0x24, partition=1, name='SceModule-0x23', type=PSP_SMEM_HighAligned, size=0xC4 (allocated=0x100)]
SysMemInfo[addr=0x08800000-0x08804000, uid=0x19, partition=2, name='ThreadMan-RootMem', type=PSP_SMEM_Addr, size=0x4000 (allocated=0x4000)]
SysMemInfo[addr=0x08804000-0x09F40F00, uid=0x2C, partition=2, name='MainApp', type=PSP_SMEM_Addr, size=0x173CE10 (allocated=0x173CF00)]
SysMemInfo[addr=0x09F41000-0x09F42000, uid=0x37, partition=2, name='UserSbrk', type=PSP_SMEM_LowAligned, size=0x1000 (allocated=0x1000)]
SysMemInfo[addr=0x09F42000-0x09F4A000, uid=0x4C, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x8000 (allocated=0x8000)]
SysMemInfo[addr=0x09F4A000-0x09F56900, uid=0x5A, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0xC900 (allocated=0xC900)]
SysMemInfo[addr=0x09F56900-0x09F5E000, uid=0x5D, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x7700 (allocated=0x7700)]
SysMemInfo[addr=0x09F5E000-0x09F65B00, uid=0x70, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x7B00 (allocated=0x7B00)]
SysMemInfo[addr=0x09F65B00-0x09F6DC00, uid=0x73, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x8100 (allocated=0x8100)]
SysMemInfo[addr=0x09F6DC00-0x09F72800, uid=0x7A, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x4C00 (allocated=0x4C00)]
SysMemInfo[addr=0x09F72800-0x09F76E00, uid=0x81, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x4600 (allocated=0x4600)]
SysMemInfo[addr=0x09F76E00-0x09F77F00, uid=0x88, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x1100 (allocated=0x1100)]
SysMemInfo[addr=0x09F77F00-0x09F7E000, uid=0x8F, partition=2, name='SceUtilityModule', type=PSP_SMEM_Low, size=0x6100 (allocated=0x6100)]
SysMemInfo[addr=0x09F7E000-0x09F9E000, uid=0x2C6, partition=2, name='ThreadMan-Vpl-0x2c5-SceNet', type=PSP_SMEM_Low, size=0x20000 (allocated=0x20000)]
SysMemInfo[addr=0x09F9E000-0x09FA6000, uid=0x39C, partition=2, name='ThreadMan-Vpl-0x39b-SceNetAdhocMatchingMemoryPool', type=PSP_SMEM_Low, size=0x8000 (allocated=0x8000)]
SysMemInfo[addr=0x09FA6400-0x09FA8400, uid=0x383, partition=2, name='ThreadMan-Stack-0x382-SceNetAdhocAuth', type=PSP_SMEM_High, size=0x2000 (allocated=0x2000)]
SysMemInfo[addr=0x09FA8400-0x09FA9400, uid=0x2D9, partition=2, name='ThreadMan-Stack-0x2d8-SceNetAdhocctl', type=PSP_SMEM_High, size=0x1000 (allocated=0x1000)]
SysMemInfo[addr=0x09FA9400-0x09FAA400, uid=0x2CF, partition=2, name='ThreadMan-Stack-0x2ce-SceNetNetintr', type=PSP_SMEM_High, size=0x1000 (allocated=0x1000)]
SysMemInfo[addr=0x09FAA400-0x09FAB400, uid=0x2C9, partition=2, name='ThreadMan-Stack-0x2c8-SceNetCallout', type=PSP_SMEM_High, size=0x1000 (allocated=0x1000)]
SysMemInfo[addr=0x09FAB400-0x09FABC00, uid=0x13C, partition=2, name='ThreadMan-Stack-0x13b-CGra::Thread', type=PSP_SMEM_High, size=0x800 (allocated=0x800)]
SysMemInfo[addr=0x09FABC00-0x09FB1400, uid=0x138, partition=2, name='ThreadMan-Stack-0x137-Sd::UpdateMSec', type=PSP_SMEM_High, size=0x5800 (allocated=0x5800)]
SysMemInfo[addr=0x09FB1400-0x09FB4400, uid=0x136, partition=2, name='ThreadMan-Stack-0x135-Sd::UpdateVSync', type=PSP_SMEM_High, size=0x3000 (allocated=0x3000)]
SysMemInfo[addr=0x09FB4400-0x09FBC400, uid=0xA4, partition=2, name='ThreadMan-Stack-0xa3-AUDIO MIXER THREAD', type=PSP_SMEM_High, size=0x8000 (allocated=0x8000)]
SysMemInfo[addr=0x09FBC400-0x09FBCC00, uid=0xA0, partition=2, name='ThreadMan-Stack-0x9f-FlipThread', type=PSP_SMEM_High, size=0x800 (allocated=0x800)]
SysMemInfo[addr=0x09FBCC00-0x09FC3C00, uid=0x9C, partition=2, name='ThreadMan-Stack-0x9b-RsrcBuilder', type=PSP_SMEM_High, size=0x7000 (allocated=0x7000)]
SysMemInfo[addr=0x09FC3C00-0x09FC8C00, uid=0x96, partition=2, name='ThreadMan-Stack-0x95-AsyncFileAccess', type=PSP_SMEM_High, size=0x5000 (allocated=0x5000)]
SysMemInfo[addr=0x09FC8C00-0x09FFFC00, uid=0x36, partition=2, name='ThreadMan-Stack-0x35-user_main', type=PSP_SMEM_High, size=0x37000 (allocated=0x37000)]
16:50:47 WARN hle.ThreadManForUser - user_main - sceKernelCreateThread not enough memory to create the stack
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Posts: 549
Threads: 63
Joined: Mar 2013
Reputation:
8
09-07-2020, 01:02 AM
(This post was last modified: 09-07-2020, 01:21 AM by onelight.)
(09-06-2020, 08:41 PM)gid15 Wrote: (09-06-2020, 11:06 AM)onelight Wrote: (09-05-2020, 08:08 PM)gid15 Wrote: A small improvement in 90318ce when using flash0/kd/utility.prx and pspnet*.prx.
When generating the log files, could you please add the following 2 lines (additionally to the ones you already have):
Code: <logger name='hle.sceNetIfhandle'> <level value='debug' /> </logger>
<logger name='hle.sceUtility'> <level value='debug' /> </logger>
<logger name='hle.sceWlan'> <level value='trace' /> </logger>
<logger name='hle.SysMemUserForUser'> <level value='trace' /> </logger>
Thank you!
I found jpcsp won't crash if maximum method size >= 500, I am sorry
There is still an issue with the memory management as there is not enough available PSP memory for the creation of the "SceNetAdhocMatchingEvent" thread. This is not directly related to the network emulation but it seems this game is really using the PSP memory at its maximum and we still have some incompatibility issue there.
Is this game require memory64MB?
I try make and add memory64MB=true to ULJM05775.properties and finally join in lobby
64mb-log.7z (Size: 58.51 KB / Downloads: 179)
log1-64.7z (Size: 262.12 KB / Downloads: 173)
log2-64.7z (Size: 274.01 KB / Downloads: 186)
Posts: 2,420
Threads: 30
Joined: Dec 2009
Reputation:
50
(09-07-2020, 01:02 AM)onelight Wrote: Is this game require memory64MB?
I try make and add memory64MB=true to ULJM05775.properties and finally join in lobby This is a good idea to try that!
From the information I found on internet, this game does not require to have a PSP Slim and should be playable on a PSP 1000. I have to further analyze the log files to find the incompatibility issue.
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Posts: 2,420
Threads: 30
Joined: Dec 2009
Reputation:
50
09-07-2020, 08:03 PM
(This post was last modified: 09-07-2020, 08:04 PM by gid15.)
(09-07-2020, 10:38 AM)gid15 Wrote: (09-07-2020, 01:02 AM)onelight Wrote: Is this game require memory64MB?
I try make and add memory64MB=true to ULJM05775.properties and finally join in lobby This is a good idea to try that!
From the information I found on internet, this game does not require to have a PSP Slim and should be playable on a PSP 1000. I have to further analyze the log files to find the incompatibility issue. Comparing to the behavior on a real PSP (tested using the --reboot command line option), I found that one thread stack should be allocated into the kernel partition (partition=1) instead of the user partition (partition=2) like currently implemented:
Code: 16:50:45 DEBUG hle.SysMemUserForUser - SceNetAdhocctl - malloc partition=2, name='ThreadMan-Stack-0x382-SceNetAdhocAuth', type=PSP_SMEM_High, size=0x2000, addr=0x00000000: returns 0x09FA6400
I have added a generic improvement into sceKernelCreateThread (5978a37) to support this combination. 8KB additional memory should now be available in user space. Could you please retry with 5978a37, without using the 64MB workaround?
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
|