Skip to content

Crash due to body material not being available on start #111

@Nutomic

Description

@Nutomic

I'm just running into one error after another here. But this seems unrelated to my previous problems, and I didnt find any open issue for it either. This is with Gothic 2, and running on Manjaro Linux, plus latest master (408a0db).

I am getting this error after running ./REGoth ~/workspace/gothic2/ with an empty cache:

[INFO] [GameWorld] Insert Character PC_HERO at STARTPOINT
[FATAL] A fatal error occurred and the program has to terminate!
- Error: InternalErrorException
- Description: Trying to access an object that has been destroyed.
- In function: void bs::GameObjectHandleBase::throwIfDestroyed() const
- In file: workspace/regoth-bs/lib/bsf/Source/Foundation/bsfCore/Scene/BsGameObjectHandle.cpp:32

Stack trace:
0) workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::CrashHandler::getStackTrace[abi:cxx11]()+0x1f2 [0x7fa487e9e0e2]
1) workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::CrashHandler::logErrorAndStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, unsigned int) const+0x354 [0x7fa487e7d954]
2) workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::CrashHandler::reportCrash(std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, unsigned int) const+0x5f [0x7fa487e9daaf]
3) workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::GameObjectHandleBase::throwIfDestroyed() const+0xc4 [0x7fa488265234]
4) ./REGoth: REGoth::VisualSkeletalAnimation::material(unsigned int) const+0x18 [0x5624c3979fe8]
5) ./REGoth: REGoth::VisualCharacter::setBodyTexture(bs::TResourceHandle<bs::Texture, false>)+0x39 [0x5624c3969259]
6) ./REGoth: REGoth::VisualCharacter::onInitialized()+0xa1 [0x5624c3969661]
7) workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::SceneManager::_notifyComponentCreated(bs::GameObjectHandle<bs::Component> const&, bool)+0x112 [0x7fa488282002]
8) ./REGoth: REGoth::Character::onInitialized()+0x3c8 [0x5624c38ea0f8]
9) /home/felix/workspace/regoth-bs/build/bin/../lib/libbsf.so.1: bs::SceneManager::_notifyComponentCreated(bs::GameObjectHandle<bs::Component> const&, bool)+0x112 [0x7fa488282002]
10) ./REGoth: REGoth::GameWorld::insertCharacter(std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, bs::Transform const&)+0x271 [0x5624c39218f1]
11) ./REGoth: REGoth::GameWorld::insertCharacter(std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&)+0x16f [0x5624c39229bf]
12) ./REGoth: REGoth::Gothic2Game::setupScene()+0x918 [0x5624c38d6ca8]
13) ./REGoth: REGoth::runEngine(REGoth::Engine&)+0x3ef [0x5624c38d78df]
14) ./REGoth: main+0x158 [0x5624c389c8b8]
15) /usr/lib/libc.so.6: __libc_start_main+0xf3 [0x7fa487260153]
16) ./REGoth: _start+0x2e [0x5624c38a81fe]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions