Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes crash after 'Don't Spank Ma Bitch Up' intro cutscene #91

Closed
gbudny opened this issue May 26, 2016 · 11 comments
Closed

Sometimes crash after 'Don't Spank Ma Bitch Up' intro cutscene #91

gbudny opened this issue May 26, 2016 · 11 comments
Labels

Comments

@gbudny
Copy link
Contributor

gbudny commented May 26, 2016

Hi

I noticed that Openrw often crashes after this cuscene:

00:35

https://www.youtube.com/watch?v=CHIPqOA6fx0

 ./rwgame
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 32 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
Created: version = 3.3 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
I [Game] Game directory: /home/gbudny/GTAIII
Max UBO Size: 65536
UBO Alignment: 256
Max batch size: 512
I [Renderer] OpenGL Renderer Version: 3.3.0 NVIDIA 340.96 (GLSL 3.30 NVIDIA via Cg compiler) Vendor: NVIDIA Corporation
I [Data] Loaded 42 zones from /home/gbudny/GTAIII/data/gta3.zon
I [Game] Started
Fstat failed ()
I [World] Loaded cutscene: BET
Fstat failed ()
I [World] Loaded cutscene: JB
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 117 (ENFORCR)
I [World] Creating Vehicle ID 130 (RUMPO)
I [World] Creating Vehicle ID 96 (PATRIOT)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
Fstat failed ()
I [World] Loaded cutscene: L1_LG
Segmentation fault (core dumped)

(Markup fixed by JayFoxRox)

@gbudny
Copy link
Contributor Author

gbudny commented May 28, 2016

This bug exists in this version, too:

https://github.com/rwengine/openrw/tree/fix/audio

Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 32 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
Created: version = 3.3 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
I [Game] Game directory: /home/gbudny/GTAIII
Max UBO Size: 65536
UBO Alignment: 256
Max batch size: 512
I [Renderer] OpenGL Renderer Version: 3.3.0 NVIDIA 340.96 (GLSL 3.30 NVIDIA via Cg compiler) Vendor: NVIDIA Corporation
I [Data] Loaded 42 zones from /home/gbudny/GTAIII/data/gta3.zon
I [Game] Started
Fstat failed ()
I [World] Loaded cutscene: BET
libmad error: lost synchronization
Fstat failed ()
I [World] Loaded cutscene: JB
libmad error: lost synchronization
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 117 (ENFORCR)
I [World] Creating Vehicle ID 130 (RUMPO)
I [World] Creating Vehicle ID 96 (PATRIOT)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
Fstat failed ()
I [World] Loaded cutscene: L1_LG
libmad error: lost synchronization
Segmentation fault (core dumped)

(Markup fixed by JayFoxRox)

@danhedron
Copy link
Member

Can you get a back trace of this crash

@gbudny
Copy link
Contributor Author

gbudny commented May 28, 2016

This is the result:

Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rwgame...(no debugging symbols found)...done.
(gdb) break fpc_raiseexception
Function "fpc_raiseexception" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (fpc_raiseexception) pending.
(gdb) run
Starting program: /home/gbudny/Desktop/openrw-build/rwgame/rwgame 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef89a700 (LWP 9930)]
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 32 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
Created: version = 3.3 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
I [Game] Game directory: /home/gbudny/GTAIII
Max UBO Size: 65536
UBO Alignment: 256
Max batch size: 512
I [Renderer] OpenGL Renderer Version: 3.3.0 NVIDIA 340.96 (GLSL 3.30 NVIDIA via Cg compiler) Vendor: NVIDIA Corporation
[New Thread 0x7fffeb2c9700 (LWP 9932)]
[New Thread 0x7fffeb2c9700 (LWP 9933)]
[Thread 0x7fffeb2c9700 (LWP 9932) exited]
[New Thread 0x7fffe6ac7700 (LWP 9934)]
I [Data] Loaded 42 zones from /home/gbudny/GTAIII/data/gta3.zon
I [Game] Started
[New Thread 0x7fffee2c6700 (LWP 9942)]
Fstat failed ()
I [World] Loaded cutscene: BET
[New Thread 0x7fffe69c6700 (LWP 9943)]
[Thread 0x7fffe69c6700 (LWP 9943) exited]
Fstat failed ()
I [World] Loaded cutscene: JB
[New Thread 0x7fffe69c6700 (LWP 9944)]
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 117 (ENFORCR)
I [World] Creating Vehicle ID 130 (RUMPO)
I [World] Creating Vehicle ID 96 (PATRIOT)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
[Thread 0x7fffe69c6700 (LWP 9944) exited]
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
Fstat failed ()
I [World] Loaded cutscene: L1_LG
[New Thread 0x7fffe69c6700 (LWP 9972)]
[Thread 0x7fffe69c6700 (LWP 9972) exited]

Thread 1 "rwgame" received signal SIGSEGV, Segmentation fault.
0x0000000025430920 in ?? ()
(gdb) backtrace
#0  0x0000000025430920 in ?? ()
#1  0x00000000004c27a8 in WorldCollisionDispatcher::needsResponse(btCollisionObject const*, btCollisionObject const*) ()
#2  0x00007ffff6e06231 in btSimulationIslandManager::buildIslands(btDispatcher*, btCollisionWorld*) ()
   from /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.83
#3  0x00007ffff6e06431 in btSimulationIslandManager::buildAndProcessIslands(btDispatcher*, btCollisionWorld*, btSimulationIslandManager::IslandCallback*) ()
   from /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.83
#4  0x00007ffff70e4053 in btDiscreteDynamicsWorld::solveConstraints(btContactSolverInfo&) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#5  0x00007ffff70e2a35 in btDiscreteDynamicsWorld::internalSingleStepSimulation(float) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#6  0x00007ffff70e2c42 in btDiscreteDynamicsWorld::stepSimulation(float, int, float) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#7  0x000000000044702a in RWGame::tick(float) ()
#8  0x000000000044a7bd in RWGame::run() ()
#9  0x000000000043cf00 in main ()

(Markup fixed by JayFoxRox)

@gbudny gbudny changed the title Openrw often crashes after the cuscene Openrw often crashes after the cutscene May 29, 2016
@MrSapps
Copy link

MrSapps commented May 29, 2016

It will run super slow but sometimes running under valgrind tracks down these sorts of crashes more easily (assuming out of bounds/mem corruption)

@JayFoxRox JayFoxRox added the bug label Jun 10, 2016
@gbudny
Copy link
Contributor Author

gbudny commented Jun 11, 2016

I want to inform you that this bug still exists in the new version of Openrw, and I think it is very similar to this issue:

#133

@JayFoxRox JayFoxRox changed the title Openrw often crashes after the cutscene Sometimes crash after 'Don't Spank Ma Bitch Up' intro cutscene Jun 11, 2016
@gbudny
Copy link
Contributor Author

gbudny commented Jun 11, 2016

I tried to skip the cutscene, but the game crashed:

 gdb ./rwgame
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rwgame...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/gbudny/Desktop/openrw-build/rwgame/rwgame 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffefa54700 (LWP 2473)]
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 32 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
Created: version = 3.3 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false
I [Game] Game directory: /home/gbudny/GTAIII
Max UBO Size: 65536
UBO Alignment: 256
Max batch size: 512
I [Renderer] OpenGL Renderer Version: 3.3.0 NVIDIA 340.96 (GLSL 3.30 NVIDIA via Cg compiler) Vendor: NVIDIA Corporation
[New Thread 0x7fffeb6ec700 (LWP 2475)]
[New Thread 0x7fffeb6ec700 (LWP 2476)]
[Thread 0x7fffeb6ec700 (LWP 2475) exited]
[New Thread 0x7fffe6eea700 (LWP 2477)]
I [Data] Loaded 42 zones from /home/gbudny/GTAIII/data/gta3.zon
I [Game] Started
[New Thread 0x7fffe6de9700 (LWP 2480)]
I [World] Loaded cutscene: BET
[New Thread 0x7fffe65e8700 (LWP 2481)]
I [World] Loaded cutscene: JB
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 117 (ENFORCR)
I [World] Creating Vehicle ID 130 (RUMPO)
I [World] Creating Vehicle ID 96 (PATRIOT)
[Thread 0x7fffe6de9700 (LWP 2480) exited]
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 105 (CHEETAH)
I [World] Creating Vehicle ID 92 (STINGER)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 110 (TAXI)
I [World] Creating Vehicle ID 111 (KURUMA)
[Thread 0x7fffe65e8700 (LWP 2481) exited]
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
I [SCM] Restarting Critical Mission
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
I [SCM] Restarting Critical Mission
I [World] Creating Vehicle ID 111 (KURUMA)
I [World] Creating Vehicle ID 116 (POLICAR)
I [World] Creating Vehicle ID 116 (POLICAR)
[New Thread 0x7fffe55e7700 (LWP 2501)]
I [World] Loaded cutscene: L1_LG
[Thread 0x7fffe55e7700 (LWP 2501) exited]

Thread 1 "rwgame" received signal SIGSEGV, Segmentation fault.
0x0000000024bbf1f0 in ?? ()
(gdb) backtrace
#0  0x0000000024bbf1f0 in ?? ()
#1  0x00000000004c7b98 in WorldCollisionDispatcher::needsResponse(btCollisionObject const*, btCollisionObject const*) ()
#2  0x00007ffff7020231 in btSimulationIslandManager::buildIslands(btDispatcher*, btCollisionWorld*) ()
   from /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.83
#3  0x00007ffff7020431 in btSimulationIslandManager::buildAndProcessIslands(btDispatcher*, btCollisionWorld*, btSimulationIslandManager::IslandCallback*) ()
   from /usr/lib/x86_64-linux-gnu/libBulletCollision.so.2.83
#4  0x00007ffff72fe053 in btDiscreteDynamicsWorld::solveConstraints(btContactSolverInfo&) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#5  0x00007ffff72fca35 in btDiscreteDynamicsWorld::internalSingleStepSimulation(float) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#6  0x00007ffff72fcc42 in btDiscreteDynamicsWorld::stepSimulation(float, int, float) () from /usr/lib/x86_64-linux-gnu/libBulletDynamics.so.2.83
#7  0x0000000000448588 in RWGame::tick(float) ()
#8  0x000000000044bd1d in RWGame::run() ()
#9  0x000000000043e3f0 in main ()

@JayFoxRox
Copy link
Collaborator

JayFoxRox commented Jun 11, 2016

There is no point in reporting the same crash log over and over.
I've been loading from a savegame and I'm unable to reproduce this bug on any revision (master + master from yesterday) using Arch Linux. I've tried running everywhere before starting the mission and also tried skipping and watching the scene.

What OS are you running? What version of GTA3 is it (= steam, original DVD, original CD, country, ...)?
It's possible that your mission script does something differently.

Also try running a debug build to see if that fixes it. (That's what I use)

@gbudny
Copy link
Contributor Author

gbudny commented Jun 11, 2016

I am using Ubuntu 16.04 on Mac Mini Server from 2010, and I used the Mac version from Steam to run OpenRW.

EDIT: I think that I found a solution, but it doesn't make any sense to me. I used the data from the Windows version (Wine), and the game didn't crash in this area.

Do you think that Trasngaming modified his version of GTA3?

A debug build? Do you think about this option for cmake or should I use valgrind?

BUILD_TESTS — Build the test suite

@danhedron
Copy link
Member

The PR #158 should fix this crash, which has become more common now that vehicles are spawned and destroyed as traffic. Can others confirm this crash is fixed for them?

@danhedron
Copy link
Member

This should now be fixed, please confirm that this no longer occurs.

@JayFoxRox
Copy link
Collaborator

There hasn't been any activity lately.
I'll close this and if the issue still exists this can be re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants