Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

android crashes after Recreating the Vehicle #1967

Closed
redmouth opened this issue Jun 2, 2017 · 4 comments
Closed

android crashes after Recreating the Vehicle #1967

redmouth opened this issue Jun 2, 2017 · 4 comments

Comments

@redmouth
Copy link

redmouth commented Jun 2, 2017

Urho3D library build commit ID: ea15976
Tested with x86 and armeabi-v7a version of static library libUrho3D.a

On Android platform, crash happens with the following steps:

  • creating a Vehicle defined in sample 46 RaycastVehicleDemo.
  • Removing the Vehicle Node and all it's child Wheel nodes
  • Recreating the Vehicle, got the following crash:

Attached source files and stack trace. It works well on Linux.

stack trace:

  • thread Vertical orientation of text in ui elements #13, name = 'SDLThread', stop reason = signal SIGSEGV: invalid address (fault address: 0x60)
    • frame #0: libworldexplore.sobtRaycastVehicle::updateWheelTransformsWS(this=0xa184f100, wheel=0x00000000, interpolatedTransform=false) at btRaycastVehicle.cpp:154 frame #1: libworldexplore.sobtRaycastVehicle::updateWheelTransform(this=0xa184f100, wheelIndex=0, interpolatedTransform=false) at btRaycastVehicle.cpp:107
      frame Crash on shutdown if ScriptObject implements TransformChanged #2: libworldexplore.sobtRaycastVehicle::updateVehicle(this=0xa184f100, step=0.0166666675) at btRaycastVehicle.cpp:273 frame #3: libworldexplore.sobtRaycastVehicle::updateAction(this=0xa184f100, collisionWorld=0xb4086790, step=0.0166666675) at btRaycastVehicle.h:88
      frame Add LineEdit::SetEditable(<true|false>) #4: libworldexplore.sobtDiscreteDynamicsWorld::updateActions(this=0xb4086790, timeStep=0.0166666675) at btDiscreteDynamicsWorld.cpp:614 frame #5: libworldexplore.sobtDiscreteDynamicsWorld::internalSingleStepSimulation(this=0xb4086790, timeStep=0.0166666675) at btDiscreteDynamicsWorld.cpp:513
      frame Add optional FreeARC compression to pak files #6: libworldexplore.sobtDiscreteDynamicsWorld::stepSimulation(this=0xb4086790, timeStep=0.0167804994, maxSubSteps=2, fixedTimeStep=0.0166666675) at btDiscreteDynamicsWorld.cpp:455 frame #7: libworldexplore.soUrho3D::PhysicsWorld::Update(this=0xb4286200, timeStep=0.0167804994) at PhysicsWorld.cpp:256
      frame Bump freetype? #8: libworldexplore.soUrho3D::PhysicsWorld::HandleSceneSubsystemUpdate(this=0xb4286200, eventData=0xb43a43b0) at PhysicsWorld.cpp:796 frame #9: libworldexplore.soUrho3D::EventHandlerImplUrho3D::PhysicsWorld::Invoke(this=0xa18c29e0, eventData=0xb43a43b0) at Object.h:307
      frame ListView Hierarachy LV_OverlayContainer shows in layout editor #10: libworldexplore.soUrho3D::Object::OnEvent(this=0xb4286200, sender=0xa18ba280, eventType=(value_ = 1997371372), eventData=0xb43a43b0) at Object.cpp:113 frame #11: libworldexplore.soUrho3D::Object::SendEvent(this=0xa18ba280, eventType=(value_ = 1997371372), eventData=0xb43a43b0) at Object.cpp:325
      frame Compiling with Urho3D as Library- Undefined References #12: libworldexplore.soUrho3D::Scene::Update(this=0xa18ba280, timeStep=0.0167804994) at Scene.cpp:787 frame #13: libworldexplore.soUrho3D::Scene::HandleUpdate(this=0xa18ba280, eventData=0xb43f2ca0) at Scene.cpp:1171
      frame Editor hangs if can't find font for Text #14: libworldexplore.soUrho3D::EventHandlerImpl<Urho3D::Scene>::Invoke(this=0xa18c2800, eventData=0xb43f2ca0) at Object.h:307 frame #15: libworldexplore.soUrho3D::Object::OnEvent(this=0xa18ba280, sender=0xb43fc740, eventType=(value_ = 915638697), eventData=0xb43f2ca0) at Object.cpp:121
      frame kNet does not compile with MinGW 4.8.1 #16: libworldexplore.soUrho3D::Object::SendEvent(this=0xb43fc740, eventType=(value_ = 915638697), eventData=0xb43f2ca0) at Object.cpp:355 frame #17: libworldexplore.soUrho3D::Engine::Update(this=0xb43fc740) at Engine.cpp:695
      frame MakeHttpRequest from lua #18: libworldexplore.soUrho3D::Engine::RunFrame(this=0xb43fc740) at Engine.cpp:519 frame #19: libworldexplore.soUrho3D::Application::Run(this=0xb4266600) at Application.cpp:86
      frame border image rendering bug #20: libworldexplore.soRunApplication() at TestRayVehicleEnvironment.cpp:45 frame #21: libworldexplore.so::SDL_main(argc=0, argv=0xae7ff9e0) at TestRayVehicleEnvironment.cpp:45
      frame BillboardSet/ParticleEmitter decouple billboarding from relative_ flag? #22: libworldexplore.so`Java_org_libsdl_app_SDLActivity_nativeInit(env=0xb43f9940, cls=0xae7ffa8c, array=0xae7ffa90, filesDir="/data/data/co.deepstudio.worldexplore/files") at SDL_android_main.c:69
      frame cmake_mingw with all options creates only libUrho3D.a #23: 0xa463572b
      raycastVehicle_stacktrace.txt
      raycastvehicle_problems.tar.gz
@slapin
Copy link
Contributor

slapin commented Jun 2, 2017

Could you please update to current master and re-check if this is still reproducible?

@redmouth
Copy link
Author

redmouth commented Jun 3, 2017

Great job, the latest master branch works on android. Thanks 👍

@cadaver
Copy link
Contributor

cadaver commented Jun 3, 2017

Can this be closed then?

@redmouth
Copy link
Author

redmouth commented Jun 3, 2017 via email

@eugeneko eugeneko closed this as completed Jun 3, 2017
@weitjong weitjong added this to the 1.7 milestone Oct 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants