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

RoR crashes on Auriga when spawning a Gavril Zeta LWB #859

Closed
ulteq opened this Issue Apr 29, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@ulteq
Contributor

ulteq commented Apr 29, 2016

Steps to reproduce:

  • Load Auriga Proving Grounds
  • Do not move, wait until the character touches the asphalt surface
  • Press CTRL+G
  • Spawn a Gavril Zeta LWB

-> Segmentation fault

It does not happen with 0.4.5.1.

It does not happen when the vehicle is spawned mid air (not touching the ground).

It does not happen when the vehicle is spawned via the truck spawner.

Edit: Caused by this commit: 121f507

Edit: It does not happen when Caelum is disabled

Edit: It does not seem to happen on resolutions lower than 3840x2160

@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq May 9, 2016

Contributor
Thread 18 "RoR" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb7fff700 (LWP 26661)]
0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
(gdb) bt
#0  0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
#1  0x00000000007a12c5 in PointColDetector::build_kdtree_incr(int, int) ()
#2  0x00000000007a1434 in PointColDetector::queryrec(int, int) ()
#3  0x00000000007a073a in intraTruckCollisions(float, PointColDetector&, int, int*, int*, collcab_rate_t*, node_t*, float, ground_model_t&) ()
#4  0x000000000076cc66 in std::_Function_handler<void (int), BeamFactory::UpdatePhysicsSimulation()::{lambda(int)#1}>::_M_invoke(std::_Any_data const&, int&&) ()
#5  0x000000000076a2a0 in std::_Function_handler<void (), std::_Bind<std::function<void (int)> (int)> >::_M_invoke(std::_Any_data const&) ()
#6  0x0000000000770819 in BeamFactory::UpdatePhysicsSimulation() ()
#7  0x0000000000776992 in std::_Function_handler<void (), std::_Bind<std::function<void (int)> (float)> >::_M_invoke(std::_Any_data const&) ()
#8  0x0000000000777488 in std::thread::_State_impl<std::_Bind_simple<ThreadPool::ThreadPool(int)::{lambda()#1} ()> >::_M_run()
    ()
#9  0x00007ffff481aaaf in std::execute_native_thread_routine (__p=0x2cdcf50)
    at /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:83
#10 0x00007ffff73dd474 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007ffff3d63acd in clone () from /usr/lib/libc.so.6
Contributor

ulteq commented May 9, 2016

Thread 18 "RoR" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb7fff700 (LWP 26661)]
0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
(gdb) bt
#0  0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
#1  0x00000000007a12c5 in PointColDetector::build_kdtree_incr(int, int) ()
#2  0x00000000007a1434 in PointColDetector::queryrec(int, int) ()
#3  0x00000000007a073a in intraTruckCollisions(float, PointColDetector&, int, int*, int*, collcab_rate_t*, node_t*, float, ground_model_t&) ()
#4  0x000000000076cc66 in std::_Function_handler<void (int), BeamFactory::UpdatePhysicsSimulation()::{lambda(int)#1}>::_M_invoke(std::_Any_data const&, int&&) ()
#5  0x000000000076a2a0 in std::_Function_handler<void (), std::_Bind<std::function<void (int)> (int)> >::_M_invoke(std::_Any_data const&) ()
#6  0x0000000000770819 in BeamFactory::UpdatePhysicsSimulation() ()
#7  0x0000000000776992 in std::_Function_handler<void (), std::_Bind<std::function<void (int)> (float)> >::_M_invoke(std::_Any_data const&) ()
#8  0x0000000000777488 in std::thread::_State_impl<std::_Bind_simple<ThreadPool::ThreadPool(int)::{lambda()#1} ()> >::_M_run()
    ()
#9  0x00007ffff481aaaf in std::execute_native_thread_routine (__p=0x2cdcf50)
    at /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:83
#10 0x00007ffff73dd474 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007ffff3d63acd in clone () from /usr/lib/libc.so.6
@Hiradur

This comment has been minimized.

Show comment
Hide comment
@Hiradur

Hiradur May 9, 2016

Contributor

stacktrace reminds me of #160

Contributor

Hiradur commented May 9, 2016

stacktrace reminds me of #160

@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq May 9, 2016

Contributor
(gdb) info thread
Id   Target Id         Frame 
  1    Thread 0x7ffff7fc7780 (LWP 26641) "RoR" 0x00007ffff78c64d3 in ?? () from /usr/lib/libOgreMain.so.1.9.0
  2    Thread 0x7fffe86a6700 (LWP 26644) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  3    Thread 0x7fffe7ea5700 (LWP 26645) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  4    Thread 0x7fffe76a4700 (LWP 26646) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  5    Thread 0x7fffe6ea3700 (LWP 26647) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  6    Thread 0x7fffe66a2700 (LWP 26648) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  7    Thread 0x7fffe5ea1700 (LWP 26649) "RoR" 0x00007ffff788678c in Ogre::Math::intersects(Ogre::Ray const&, Ogre::Plane const&) () from /usr/lib/libOgreMain.so.1.9.0
  8    Thread 0x7fffe56a0700 (LWP 26650) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  9    Thread 0x7fffe4e9f700 (LWP 26651) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  11   Thread 0x7fffbffff700 (LWP 26654) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  12   Thread 0x7fffbf2ed700 (LWP 26655) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  13   Thread 0x7fffbeaec700 (LWP 26656) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  14   Thread 0x7fffbe2eb700 (LWP 26657) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  15   Thread 0x7fffbdaea700 (LWP 26658) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  16   Thread 0x7fffbd2e9700 (LWP 26659) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  17   Thread 0x7fffbcae8700 (LWP 26660) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
* 18   Thread 0x7fffb7fff700 (LWP 26661) "RoR" 0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
Contributor

ulteq commented May 9, 2016

(gdb) info thread
Id   Target Id         Frame 
  1    Thread 0x7ffff7fc7780 (LWP 26641) "RoR" 0x00007ffff78c64d3 in ?? () from /usr/lib/libOgreMain.so.1.9.0
  2    Thread 0x7fffe86a6700 (LWP 26644) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  3    Thread 0x7fffe7ea5700 (LWP 26645) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  4    Thread 0x7fffe76a4700 (LWP 26646) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  5    Thread 0x7fffe6ea3700 (LWP 26647) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  6    Thread 0x7fffe66a2700 (LWP 26648) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  7    Thread 0x7fffe5ea1700 (LWP 26649) "RoR" 0x00007ffff788678c in Ogre::Math::intersects(Ogre::Ray const&, Ogre::Plane const&) () from /usr/lib/libOgreMain.so.1.9.0
  8    Thread 0x7fffe56a0700 (LWP 26650) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  9    Thread 0x7fffe4e9f700 (LWP 26651) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  11   Thread 0x7fffbffff700 (LWP 26654) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  12   Thread 0x7fffbf2ed700 (LWP 26655) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  13   Thread 0x7fffbeaec700 (LWP 26656) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  14   Thread 0x7fffbe2eb700 (LWP 26657) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  15   Thread 0x7fffbdaea700 (LWP 26658) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  16   Thread 0x7fffbd2e9700 (LWP 26659) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
  17   Thread 0x7fffbcae8700 (LWP 26660) "RoR" 0x00007ffff73e309f in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /usr/lib/libpthread.so.0
* 18   Thread 0x7fffb7fff700 (LWP 26661) "RoR" 0x00000000007a104e in PointColDetector::partintwo(int, int, int, int, float&, float&) ()
@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq May 9, 2016

Contributor

stacktrace reminds me of #160

Yes, but when I disable collisions the screen still turns black.
And I do not get any segfault or screen issue, when I lower the resolution to 1920x1080.

Contributor

ulteq commented May 9, 2016

stacktrace reminds me of #160

Yes, but when I disable collisions the screen still turns black.
And I do not get any segfault or screen issue, when I lower the resolution to 1920x1080.

ulteq added a commit to ulteq/rigs-of-rods that referenced this issue May 9, 2016

[Bugfix] Fixes segfault on auriga
Brings back the ZeroedMemoryAllocator temporarily

Fixes: RigsOfRods#859

@ulteq ulteq closed this in #872 May 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment