OpenDriver2 / REDRIVER2

Driver 2 Playstation game reverse engineering effort
MIT License
1.08k stars 62 forks source link

Game crashes on Linux after 1 minute in the first mission #151

Closed StephGbzh closed 2 years ago

StephGbzh commented 3 years ago

Describe the bug When running the game on Linux, on the first mission I can drive for around one minute then it crashes with Segmentation fault (core dumped)

To Reproduce Steps to reproduce the behavior:

  1. Launch REDRIVER2 > Undercover > start the first mission
  2. Drive around for one minute
  3. Game crashes
  4. As I launched from the command line and the game is not in full screen, I could see just before the crash a bunch of lines suddenly appear like this:
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 8796
[Psy-X] CD: 'CdlReadS' at 10913
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!

And it crashes when trying to go back to a lower value (it's always 10912):

[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10942
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10943
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10944
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10912
Segmentation fault (core dumped)

Expected behavior Well, no crash would be nice.

Screenshots Not applicable.

Environment and game (please complete the following information):

Additional context I tried with the New installation method and with the flatpak and got the same result.

SoapyMan commented 3 years ago

Possibly related to #150, will check that.

melroy89 commented 3 years ago

It also crashes btw outside missions, using 'take a ride'. When pressing restart (when you car is wrecked).

StephGbzh commented 2 years ago

I tried again with the last RC2 release https://github.com/OpenDriver2/REDRIVER2/releases/tag/7.4-rc2

REDRIVER2 7.4.693 Feb 4 2022 18:35:52 (Debug)

But I still get the exact same crash in the same conditions

[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10944
All SPOOL requests (1) completed successfully on MISC
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10912
Segmentation fault (core dumped)

Was the fix included in this release ?

SoapyMan commented 2 years ago

Try fully unpacking the game to fix issue.

StephGbzh commented 2 years ago

I am not sure what you mean by unpacking ? Is it about the tar.gz ?

I tried with both the flatpak version and this linux tar.gz version. In both cases, I dumped the bin + cue files in the install folder, ran ./_convert_cd_fmv_xa.sh and then ./REDRIVER2 Both had the same problem.

melroy89 commented 2 years ago

@SoapyMan Reopen issue. It has not been solved. I can still easily reproduce this crash as well. Testing RC2 version.

[Thread 0xdd1ffb40 (LWP 392770) exited]
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[New Thread 0xdd1ffb40 (LWP 392771)]
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10941
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Thread 0xdd1ffb40 (LWP 392771) exited]
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[New Thread 0xdd1ffb40 (LWP 392773)]
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10942
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Thread 0xdd1ffb40 (LWP 392773) exited]
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[New Thread 0xdd1ffb40 (LWP 392774)]
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10943
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Thread 0xdd1ffb40 (LWP 392774) exited]
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[New Thread 0xdd1ffb40 (LWP 392775)]
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10944
[Psy-X] CD: 'CdlPause'
[Psy-X] CD thread work done.
[Thread 0xdd1ffb40 (LWP 392775) exited]
[Psy-X] [CdControlB] - Unimplemented 'CdlSetmode'!
[New Thread 0xdd1ffb40 (LWP 392776)]
[Psy-X] Running CD thread...
[Psy-X] CD: 'CdlReadS' at 10912
[Psy-X] CD: 'CdlPause'
*** %n in writable segment detected ***
--Type <RET> for more, q to quit, c to continue without paging--

Thread 65 "CDSpooler" received signal SIGABRT, Aborted.
[Switching to Thread 0xdd1ffb40 (LWP 392776)]
0xf7fd0b49 in __kernel_vsyscall ()
(gdb) where
#0  0xf7fd0b49 in __kernel_vsyscall ()
#1  0xf780b4c6 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xf77f33f7 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xf78504ac in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0xf785050c in __libc_fatal () from /lib/i386-linux-gnu/libc.so.6
#5  0xf783da17 in ?? () from /lib/i386-linux-gnu/libc.so.6
#6  0xf78eccb6 in __printf_chk () from /lib/i386-linux-gnu/libc.so.6
#7  0x56610c5e in ?? ()
#8  0x565fc79f in ?? ()
#9  0x565fc82f in ?? ()
#10 0xf7d3d8fa in ?? () from /lib/i386-linux-gnu/libSDL2-2.0.so.0
#11 0xf7dac37c in ?? () from /lib/i386-linux-gnu/libSDL2-2.0.so.0
#12 0xf779b635 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#13 0xf78de8fa in clone () from /lib/i386-linux-gnu/libc.so.6

debug00.log index.log REDRIVER2.log

jonasricardo commented 1 year ago

same problem here

adairsojr commented 1 month ago

same problem here