PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.73k stars 1.62k forks source link

Crash when using non-null USB plugin #310

Closed TheLastRar closed 3 years ago

TheLastRar commented 10 years ago

-PCSX2 version: 1.3.0 GIT - Sep 2 2014

-PCSX2 options: Defaults

-Plugins used: GSdx, SPU2-X, Lilypad, Gigaherz CDVD, Any non-null USB plugin (tested plugins include; USBqemu (both GIT and jackun's test version that was mentioned in issue #106), Qemu USB Wheel/Storage mod (with and without Singstar test), Nuvee).

-Description: PCSX2 sometimes crashes when a game loads another elf/reloads itself. This occurs in; R&C:Gladiators / .hack//Fragment / Jak X /(probable other games that include this) when loading the built-in Net Profile Wizard, Burnout Revenge (and probable other burnouts) when EA account creation tries to load, .hack//Fragment when returning to the title screen

-Last known version to work: Probable none.

-PC specifications: CPU: Intel Core i5 2430M @ 2.4Ghz GPU: Geforce GT 520M OS: Windows 7

-Other comments: Jackun was made aware of the issue, however, at the time they didn't know if the problem was in PCSX2's side or on the USB plugin's side. "I tested .//hack with english patch. Going in and out of 'Area Server' re-executes the 'elfs' and going back to main menu leaves USB ram contents invalid. I don't know if plugin has to reset its state somehow or PCSX2 has to deal with that."

Log (using R&C: Gladiators)

PCSX2 1.3.0-20140902212146  - compiled on Sep  2 2014
Savestate version: 0x9a0a0000

Host Machine Init:
    Operating System =  Microsoft Windows 7 Home Premium Edition Service Pack 1 (build 7601), 64-bit
    Physical RAM     =  5995 MB
    CPU name         =  Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
    Vendor/Model     =  GenuineIntel (stepping 07)
    CPU speed        =  2.394 ghz (4 logical threads)
    x86PType         =  Standard OEM
    x86Flags         =  bfebfbff 1fbae3bf
    x86EFlags        =  28100000

x86 Features Detected:
    SSE2.. SSE3.. SSSE3.. SSE4.1.. SSE4.2.. AVX

Reserving memory for recompilers...

Loading plugins...
    Binding   GS: C:\Games\PCSX2 1.2.1\Plugins\GSdx32-AVX.dll 
Windows 6.1.7601 (Service Pack 1 1.0)
    Binding  PAD: C:\Games\PCSX2 1.2.1\Plugins\LilyPad.dll 
    Binding SPU2: C:\Games\PCSX2 1.2.1\Plugins\SPU2-X.dll 
    Binding CDVD: C:\Games\PCSX2 1.2.1\Plugins\cdvdGigaherz.dll 
    Binding  USB: C:\Games\PCSX2 1.2.1\Plugins\USBqemu.dll 
    Binding   FW: C:\Games\PCSX2 1.2.1\Plugins\FWnull.dll 
    Binding DEV9: C:\Games\PCSX2 1.2.1\Plugins\DEV9ghzdrk.dll 
Plugins loaded successfully.

(GameDB) 9653 games on record (loaded in 249ms)
HLE Notice: ELF does not have a path.

Initializing plugins...
    Init GS
Windows 6.1.7601 (Service Pack 1 1.0)
    Init PAD
    Init SPU2
    Init CDVD
    Init USB
    Init FW
    Init DEV9
Plugins initialized successfully.

Opening plugins...
    Opening GS
    Opening PAD
    Opening SPU2
* SPU2-X: Enumerating PortAudio devices:
 *** Device 0: 'Primary Sound Driver' (Windows DirectSound)
 *** Device 1: 'Speakers (5- Plantronics .Audio 628 USB)' (Windows DirectSound)
 *** Device 2: 'Speakers (Realtek High Definition Audio)' (Windows DirectSound)
 *** Device 3: 'Speakers (Realtek High Definition Audio)' (Windows WASAPI)
 *** Device 4: 'Speakers (5- Plantronics .Audio 628 USB)' (Windows WASAPI)
 *** Device 5: 'Speakers (Realtek HD Audio output)' (Windows WDM-KS)
 *** Device 6: 'Speakers (Plantronics .Audio 628 USB)' (Windows WDM-KS)
    Opening CDVD
isoFile open ok: C:\Games\PCSX2\Game\Ratchet Gladiator.iso
    Image type  = DVD
 * CDVD Disk Open: DVD, Single layer or unknown:
 * * Track 1: Data (Mode 1) (2158240 sectors)
    Opening USB
    Opening FW
    Opening DEV9
McdSlot 0: C:\Users\Alastair Barnes\Documents\PCSX2\memcards\FragmentCard.ps2
McdSlot 1: C:\Users\Alastair Barnes\Documents\PCSX2\memcards\UK_NetworkConfig.ps2
Plugins opened successfully.
EE/iR5900-32 Recompiler Reset
    Bios Found: Europe  v01.60(04/07/2001)  Console
    BIOS rom2 module not found, skipping...
    BIOS erom module not found, skipping...
(UpdateVSyncRate) Mode Changed to NTSC.
(UpdateVSyncRate) FPS Limit Changed : 59.94 fps
# Initialize memory (rev:3.61, ctm:392Mhz, cpuclk:294Mhz detected)

PlayStation 2 ======== Hard reset boot
 ROMGEN=2001-0704, IOP info (CPUID=1f, CACH_CONFIG=0, 2MB, IOP mode)
 <20010704-160707,ROMconf,PS20160EC20010704.bin:11520>
# Total accessable memory size: 32 MB (B:2:8:0) (361:2:7c30)
# TLB spad=0 kernel=1:12 default=13:30 extended=31:38
# Initialize Start.
(UpdateVSyncRate) Mode Changed to PAL.
(UpdateVSyncRate) FPS Limit Changed : 50.00 fps
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize User Memory ...
# Initialize Scratch Pad ...
# Initialize Done.

EE DECI2 Manager version 0.06 Jul  4 2001 16:03:45
  CPUID=2e20, BoardID=0, ROMGEN=2001-0704, 32M

(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SCES_532.85;1
(SYSTEM.CNF) Software version = 1.00
(SYSTEM.CNF) Disc region type = PAL
ELF (cdrom0:\SCES_532.85;1) Game CRC = 0xD697D204, EntryPoint = 0x00800008
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SCES_532.85;1
(SYSTEM.CNF) Software version = 1.00
(SYSTEM.CNF) Disc region type = PAL

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname cdrom0:¥SCES_532.85;1 secname all
loadelf version 3.30
Input ELF format filename = cdrom0:¥SCES_532.85;1
0 00800000 0019d069 ..........................
Loaded, cdrom0:¥SCES_532.85;1
start address 0x800008
gp address 00000000
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
Overall 0 Cheats loaded
Get Reboot Request From EE

PlayStation 2 ======== Update rebooting..

PlayStation 2 ======== Update reboot complete
cdvdman Init

IOP Realtime Kernel Ver. 2.2
    Copyright 1999-2002 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)

==========================================================
 989snd (c)2000-2003 Sony Computer Entertainment America
 by Buzz Burrowes                               v3.1.7
                        (built May 10 2005 at 19:36:08)

 NO MIDI VERSION! No MIDI, AME, or basic VAG sounds
                  (banks and streams only)

 (build with sce library rev 3.0.1)
==========================================================
    Thread Priorities:
                         Sound Tick = 9
                           Main RPC = 58
                        Loading RPC = 59
                          Streaming = 60, 61, 62, 63
==========================================================

decode thread: aborted
INET (Version 2.26.0) DEBUG REMOVABLE
inet: mem=128KB thpri=48 thstack=8192
inet: debug=0x0 &debug=e7790 &free_{size,min}=e7914,e7918
inetctl: Waiting I/F Event
inetctl: Waiting I/F Event
dev9: CXD9611 detected.
BD Byteswapping enabled.
SMAP_R_EMAC3_TxMODE1_L 32bit write 380f0000
Adapter Detection Hack - Resetting RX/TX
dev9: Speed chip: ES2
dev9: CXD9611(ssbus buffer) driver start
SMAP (Version 2.25.0)
BD Byteswapping disabled.
SMAP_R_EMAC3_TxMODE1_L 32bit write 380f0000
Adapter Detection Hack - Resetting RX/TX
inetctl: (ID=1) configuration for this I/F is not set yet
inetctl: (ID=1) DETACHED --Attach-> STOPPED
inetctl: Waiting I/F Event
Multi-thread available sifrpc module...
USB Driver (Version 1.4.0)
ohci_write: Bad offset 80
Lgkbm Version 1.08.008 (built on Jul 15 2005 at 18:47:02)
    * thread priority 64
LgKbM library version 1.08.008 (built on Jul 15 2005 at 18:08:24)
    * reader thread priority 59
lgAud Version 1.09.006, built on Dec 15 2003 at 20:46:05 
    * thread priority 48
    * RPC server with max stream size: 4096 bytes
driver version = 1.08.008
netcnf: decoding error (magic="# ?)??y ???¥uter Ent??]???V???H?????")
netcnf: load_attach ifc(-15)
sceNetCnfLoadEntry error -15, alloc_err 0
ezNetCnfGetCombinationList> returned -15
msifrpc: quit
# TLB spad=0 kernel=1:12 default=13:30 extended=31:38
# Restart.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize User Memory ...
# Initialize Scratch Pad ...
# Restart Done.
Get Reboot Request From EE

PlayStation 2 ======== Update rebooting..

PlayStation 2 ======== Update reboot complete
cdvdman Init

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname cdrom0:¥NETGUI¥NTGUI.ELF;1 secname all
loadelf version 3.30
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\SCES_532.85;1
(SYSTEM.CNF) Software version = 1.00
(SYSTEM.CNF) Disc region type = PAL
Input ELF format filename = cdrom0:¥NETGUI¥NTGUI.ELF;1
1 00100000 000b8c7c ............
2 001b8c80 00348e84 ......................................................
Loaded, cdrom0:¥NETGUI¥NTGUI.ELF;1
start address 0x105980
gp address 00000000
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
Get Reboot Request From EE

PlayStation 2 ======== Update rebooting..
Closing plugins...
    Closing DEV9
    Closing FW
    Closing USB
    Closing CDVD
    Closing SPU2
Waiting for RX-net thread to terminate...done
    Closing PAD
    Closing GS
Plugins closed successfully.
Shutting down plugins...
Plugins shutdown successfully.
TheLastRar commented 6 years ago

It's triggered by opening the net profile wizard in Ratchet Gladiator (and it crashes with Nuvee ps2 USB when I tested).

It's not exclusive to the net profile wizard, as .hack//Fragment will trigger the crash if you return to the start screen.

FlatOutPS2 commented 6 years ago

I managed to reproduce the issue with all the USB plugins I tried. So it's definitely a global issue, and still active on latest git.

ghost commented 6 years ago

Ah ok I thought you were talking about the game itself sorry. But yes, the network wizard crash with this plugin, you can avoid this by keeping the 1st port empty.

lightningterror commented 5 years ago

I'll remove this from the 1.6 milestone, unless someone is willing to look in to it soon-ish.