Stack Trace when copying PS1 roms to Ras Pi 2 Model B (Batocera BCM2836-36-20230311)

Advertisement

wellbeserious
Donor
Joined:
Posts:
9

Stack Trace when copying PS1 roms to Ras Pi 2 Model B (Batocera BCM2836-36-20230311)

Pr:
Stack Trace error when copying from Explorer to WinSCP session (SFTP, pre-saved, GUI, Explorer interface).

TASK:
Copying many PS1 roms from computer to Ras Pi 2 Model B V1.1, "Batocera Linux BCM2836-36-20230311" for Ras Pi 2. WinSCP was set to continue copying every 1 second, regardless of disconnection (most likely caused by extra-long Ethernet cable; I don't have WiFi USB Adapter yet).

WHAT I DID:
Turn on PC, turn on Ras Pi, (Ras Pi) open Main Menu, (PC) open WinSCP, open Windows Explorer, auto-connect to pre-saved SFTP (default) protocol, (WinSCP) browse to "/roms/psx/", (Explorer) browse to PS1 roms, drag-and-drop many roms (54, including duplicates for tracks), (WinSCP) starts copying. After a while, this error shows up. It didn't when I was only copying "13" roms (finished very slowly, no issue, set speed is at Unlimited), (Ras Pi) restarted. But did when trying to copy remaining "41" roms.
  • Custom Desktop PC
  • ASUS PRIME X570-P MB
  • AMD Ryzen 5 5600X CPU (default clocks)
  • 64GB DDR4 RAM
  • NVIDIA RTX 3050 GPU (default clocks)
  • M.2 SSDs (OS, apps) + HDDs (games)
  • Windows 10 22H2 Build 19045.3996 OS
    • Power plan: High performance
    • Foreground apps: WinSCP 6.1.2 Build 13797 2023-09-19, Windows Explorer
    • Protocol: SFTP, saved credentials to auto-login
    • GUI, Explorer interface
Description: Error "log (.txt) attached. Error copies there, as session is already closed, and I don't know how to recover that session log.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,605
Location:
Prague, Czechia

Re: Stack Trace when copying PS1 roms to Ras Pi 2 Model B (Batocera BCM2836-36-20230311)

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

wellbeserious
Donor
Joined:
Posts:
9

UPDATE 2

  • Old version log emailed.
  • New version log emailed.
  • I'm strongly considering using Live Linux to copy-paste those Roms into Batocera's EXT4 partition. Must be far easier than all this.
[COPY OF EMAIL, EXCLUDING LOGS HERE]
OLD VERSION (6.1.2.13797, above):
  • I disabled power saving on Ras Pi. No change.
I tried copying 1 file at a time. Some copied fine, others showed errors for these actions:
Copying Spyro 2: Ripto's Rage
Copying Spyro The Dragon
Copying Street Fighter EX Plus Alpha
Copying Street Fighter EX2 Plus

I then restarted Ras Pi to see if that would fix anything. Only 4 of 41 files show up in Batocera's EmulationStation interface, after restarting and updating gamelists. Of those 41 files, 18 were games, other files were extra tracks. Maybe a problem with Batocera itself. There were 13 other files to be copied, but I replaced WinSCP with Debug (emailed) version, and didn't get a chance.

NEW VERSION (WinSCP-20240213d_master_6.2.5_2eaa691b6-Portable):
  • Ras Pi power saving is disabled.
    • Uninstalled old version.
    • Turned on Ras Pi (boot to main screen).
    • Extracted 'portable' new version to Desktop > opened it.
    • Typed in "host name" (IP address, Username, Password) > Login > Accept (connection).
    • Browsed to "/<root>/userdata/roms/psx" > deleted all files to replicate issue.
    • Opened Explorer > browsed to PS1 roms location (to copy from).
    • (Ras Pi) checked space remaining: 14.35GB. PS1 rom are 13.6GB. More than enough space. 768MB should remain.
    • (WinSCP) changed settings to reconnect every 1 second (on each disconnect), to save time.
      [View > Preferences > Transfer > Endurance > Enable transfer... - All files, 1 second selected for next 3 commands.]
    • (Explorer) Ctrl + A (all rom files) > drag and dropped into WinSCP > (file transfer dialog) OK. 54 files, 13.6GB.
  • Within 1 minute, error appeared:
    "Assertion failed: FPacketReservations -> Items[i] == NULL, file core\SftpFileSystem.cpp, line 1982"
    • OK > error appeared "Abnormal program termination".
    • WinSCP crashed/automatically closed itself. Not able/don't know how to create 'Session Log'. Trace file attached.
ALL PS1 ROM FILES (54 files, 13.6GB):
Crash Bandicoot - Warped (1998).bin
Crash Bandicoot (1996).ccd
Crash Bandicoot (1996).img
Crash Bandicoot 2 - Cortex Strikes Back (1997).bin
Crash Bash (2000).bin
Crash Team Racing (1999).bin
Digimon World (2000).bin
Dragon Ball GT - Final Bout (1997).bin
Dragon Ball Z - Ultimate Battle 22 (2003).bin
Gran Turismo (1.0) (1998).bin
Gran Turismo (1.1) (1998).bin
Gran Turismo 2 (1.1) (Disc 1 - Arcade Mode) (1999).bin
Gran Turismo 2 (1.2) (Disc 2 - Simulation Mode) (1999).bin
Iron Man - X-O Manowar in Heavy Metal (1996).cue
Iron Man - X-O Manowar in Heavy Metal (Track 01) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 02) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 03) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 04) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 05) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 06) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 07) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 08) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 09) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 10) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 11) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 12) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 13) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 14) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 15) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 16) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 17) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 18) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 19) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 20) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 21) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 22) (1996).bin
Mortal Kombat - Special Forces (2000).bin
Mortal Kombat - Special Forces (2000).cue
Silent Hill (1.1) (1999).bin
Spider-Man 2 - Enter Electro (2001).bin
Spyro - Year of the Dragon (1.1) (2000).bin
Spyro 2 - Ripto's Rage! (1999).ccd
Spyro 2 - Ripto's Rage! (1999).img
Spyro the Dragon (1998).bin
Street Fighter EX Plus Alpha (1997).bin
Street Fighter EX2 Plus (1999).bin
Twisted Metal (1995).bin
Twisted Metal 2 (1996).bin
Twisted Metal 4 (1999).bin
Twisted Metal III (1998).bin
X-Men - Children of the Atom (1998).bin
X-Men - Mutant Academy (2000).bin
X-Men - Mutant Academy 2 (2001).bin
X-Men vs. Street Fighter (1998).bin

Reply with quote

Advertisement

wellbeserious
Donor
Joined:
Posts:
9

Update 3

  • Turned on Ras Pi.
  • (Ras Pi) turned off power saving.
  • Opened "WinSCP-20240216doleg-Portable" (latest emailed version, same extracted copy as used for emailed Trace Files).
  • Enabled Debug 1 logging.
  • Logged into Ras Pi (SFTP).
  • Browsed to:
    /userdata/roms/psx
  • Opened Explorer > browsed to PS1 ROMs location.
  • Dragged-and-dropped "Crash Bandicoot - Warped (1998).bin" into WinSCP.
  • It mostly copied, then this error appeared:
    "Bad message (badly formatted packet or protocol incompatibility).
    Error code: 5
    Error message from server (en): badly encoded SFTP packet"
    > Retry x3 > Abort.
  • Tried copying other files, same error every time.

Reply with quote

wellbeserious
Donor
Joined:
Posts:
9

Update 4

  • Perhaps the issue is long Ethernet cable or Batocera, not WinSCP. Perhaps lookup network file transfer timeout length in Batocera's documentation (Batocera version BCM2836-36-20230311 For Ras Pi 2).
  • ROMs were copied one-at-a time. Hopefully there won't be problems if copied all at once in same copy session.
  • (Ras Pi) started to main menu.
  • Opened "WinSCP-20240220r_master_6.3.1_2ecd6c615-Portable".
  • Logged into Ras Pi (SFTP, Port 22).
  • Enabled logging (View > Preferences > Logging > "Enable session logging on level - Debug 1" > OK).
  • Browsed to:
    /userdata/roms/psx/
  • Opened explorer > browsed to ROMs location.
  • Dragged-and-dropped "Crash Bandicoot - Warped (1998).bin" > no problems.
  • Dragged-and-dropped these ROMs, one-at-a-time, no errors:
    Crash Bandicoot (1996).ccd
    Crash Bandicoot (1996).img
    Crash Bandicoot 2 - Cortex Strikes Back (1997).bin
    Crash Bash (2000).bin
    Crash Team Racing (1999).bin
    Digimon World (2000).bin
    Dragon Ball GT - Final Bout (1997).bin
    Dragon Ball Z - Ultimate Battle 22 (2003).bin
    Gran Turismo (1.0) (1998).bin
    Gran Turismo (1.1) (1998).bin
    Gran Turismo 2 (1.1) (Disc 1 - Arcade Mode) (1999).bin
    Gran Turismo 2 (1.2) (Disc 2 - Simulation Mode) (1999).bin
    Iron Man - X-O Manowar in Heavy Metal (1996).cue
    Iron Man - X-O Manowar in Heavy Metal (Track 01) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 02) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 03) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 04) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 05) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 06) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 07) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 08) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 09) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 10) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 11) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 12) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 13) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 14) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 15) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 16) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 17) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 18) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 19) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 20) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 21) (1996).bin
    Iron Man - X-O Manowar in Heavy Metal (Track 22) (1996).bin
    Mortal Kombat - Special Forces (2000).bin
    Mortal Kombat - Special Forces (2000).cue
    Silent Hill (1.1) (1999).bin
    Spider-Man 2 - Enter Electro (2001).bin
    Spyro - Year of the Dragon (1.1) (2000).bin
    Spyro 2 - Ripto's Rage! (1999).ccd
    Spyro 2 - Ripto's Rage! (1999).img
    Spyro the Dragon (1998).bin
    Street Fighter EX Plus Alpha (1997).bin
  • Error on ROM "Street Fighter EX2 Plus (1999).bin":
    Stack trace:
    (0013EA72) KERNELBASE.dll.RaiseException
    (00087A6F) ntdll.dll
    (000740C1) ntdll.dll.KiUserExceptionDispatcher
    (0055DE74)
    (00E38462)
    (00E39853)
    (00C630F3)
    (00C5ADD9)
    (00C90D6B)
    (00C8F3E8)
    (00C8F215)
    (00C57A2E)
    (00C8EC74)
    (00011F4F)
    (00012B70)
    (0002883D)
    (000289D5)
    (00AF5E86) @TUnixDirView@PerformItemDragDropOperation$qqrp22Vcl@Comctrls@TListItemio
    (00495550)
    (004CA32B)
    (0022E128)
    (00040399) USER32.dll
    (00036B35) USER32.dll
    (0003546C) USER32.dll
    (00034F8B) USER32.dll.DispatchMessageW
  • Closed WinSCP.
Log file (compressed 26.6MB, extracted 411MB):
https://drive.google.com/file/d/1xJeF8tC6zgdxWMadAdl6iCrnrnrSkvHe/view?usp=sharing

Reply with quote

Advertisement

wellbeserious
Donor
Joined:
Posts:
9

Update 5 (3/30)

Sorry for late reply. There are 24 x 1GB 'trace log' files and 1 x 70.7MB file. Which to upload?

What I did:
- Turned on Ras Pi, waited for main menu > turned off power savings.

- Opened WinSCP (emailed version) > typed in Hostname/Username/Password, Login.

- (WinSCP) Browsed to:
/<root>/userdata/roms/psx/

- Dragged-and-dropped these files, one at a time (no problems):
Crash Bandicoot - Warped (1998).bin
Crash Bandicoot (1996).ccd
Crash Bandicoot (1996).img
Crash Bandicoot 2 - Cortex Strikes Back (1997).bin
Crash Bash (2000).bin
Crash Team Racing (1999).bin
Digimon World (2000).bin
Dragon Ball GT - Final Bout (1997).bin
Dragon Ball Z - Ultimate Battle 22 (2003).bin
Gran Turismo (1.0) (1998).bin
Gran Turismo (1.1) (1998).bin
Gran Turismo 2 (1.1) (Disc 1 - Arcade Mode) (1999).bin
Gran Turismo 2 (1.2) (Disc 2 - Simulation Mode) (1999).bin
Iron Man - X-O Manowar in Heavy Metal (1996).cue
Iron Man - X-O Manowar in Heavy Metal (Track 01) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 02) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 03) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 04) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 05) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 06) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 07) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 08) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 09) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 10) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 11) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 12) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 13) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 14) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 15) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 16) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 17) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 18) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 19) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 20) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 21) (1996).bin
Iron Man - X-O Manowar in Heavy Metal (Track 22) (1996).bin
Mortal Kombat - Special Forces (2000).bin
Mortal Kombat - Special Forces (2000).cue

- Copying "Silent Hill (1.1) (1999).bin" resulted in this error window:
Error
Error listing directory '/userdata/roms/psx'.
Out of memory
Please help us improving WinSCP by reporting the error on WinSCP support forum.

Stack trace:
(0102063D) C6633_3
(01021C17) _ReThrowException
(00E2427C) TSFTPFileSystem::ReadDirectory
(00E46657) TTerminal::CustomReadDirectory
(00E45B19) TTerminal::ReadDirectory
(00E424E1) TTerminal::DoEndTransaction
(00E42320) TTerminal::EndTransaction
(00E5B4F8) TTerminal::CopyToRemote
(000164B3) TCustomScpExplorerForm::ExecuteCopyMoveFileOperation
(0001734D) TCustomScpExplorerForm::ExecuteFileOperation
(00035A2C) TCustomScpExplorerForm::RemoteFileControlDragDropFileOperation
(00035BF7) TCustomScpExplorerForm::RemoteFileControlDDFileOperation
(00CBD2A0) TUnixDirView::PerformItemDragDropOperation
(00594FB7) Customdirview::TCustomDirView::DDProcessDropped
(005E5847) Dragdrop::TDragDrop::WndMethod
(0040C178) System::Classes::_18201
(000402B9) USER32.dll
(00036A55) USER32.dll
(0003538C) USER32.dll
(00034EAB) USER32.dll.DispatchMessageW
(00278B83) Vcl::Forms::TApplication::ProcessMessage
(00278BD3) Vcl::Forms::TApplication::HandleMessage
(00278F87) Vcl::Forms::TApplication::Run
(00147B33) Execute
(000038CB) wWinMain
(0101DD21) C6502_0
(00066C5C) ntdll.dll.RtlGetAppContainerNamedObjectPath
(00066C29) ntdll.dll.RtlGetAppContainerNamedObjectPath

(0102063D) C6633_3
(01021C17) _ReThrowException
(00E46685) TTerminal::CustomReadDirectory
(00E45B19) TTerminal::ReadDirectory
(00E424E1) TTerminal::DoEndTransaction
(00E42320) TTerminal::EndTransaction
(00E5B4F8) TTerminal::CopyToRemote
(000164B3) TCustomScpExplorerForm::ExecuteCopyMoveFileOperation
(0001734D) TCustomScpExplorerForm::ExecuteFileOperation
(00035A2C) TCustomScpExplorerForm::RemoteFileControlDragDropFileOperation
(00035BF7) TCustomScpExplorerForm::RemoteFileControlDDFileOperation
(00CBD2A0) TUnixDirView::PerformItemDragDropOperation
(00594FB7) Customdirview::TCustomDirView::DDProcessDropped
(005E5847) Dragdrop::TDragDrop::WndMethod
(0040C178) System::Classes::_18201
(000402B9) USER32.dll
(00036A55) USER32.dll
(0003538C) USER32.dll
(00034EAB) USER32.dll.DispatchMessageW
(00278B83) Vcl::Forms::TApplication::ProcessMessage
(00278BD3) Vcl::Forms::TApplication::HandleMessage
(00278F87) Vcl::Forms::TApplication::Run
(00147B33) Execute
(000038CB) wWinMain
(0101DD21) C6502_0
(00066C5C) ntdll.dll.RtlGetAppContainerNamedObjectPath
(00066C29) ntdll.dll.RtlGetAppContainerNamedObjectPath

- Then this error:
Error
Copying files to remote side failed.
Out of memory
Please help us improving WinSCP by reporting the error on WinSCP support forum.

- I closed WinSCP. Above I mentioned that Ras Pi's power savings are disabled. I restarted Ras Pi to all it to 'reinitialize', then updated gamelists, then checked free space. used 17.75GB/25.89GB (free 8.14GB).

Reply with quote

wellbeserious
Donor

Since you asked for session log, I didn't have it. So I redownloaded WinSCP emailed version and repeated exact steps. Updated trace file and session log sent to email. First file is session log. 39 compressed files, 528MB.

Reply with quote

Advertisement

You can post new topics in this forum