nfprojects / nfengine

Game engine
GNU General Public License v2.0
55 stars 4 forks source link

Crash during exit after scene switching in Release mode #116

Closed Witek902 closed 9 years ago

Witek902 commented 9 years ago

The bug appeared after fa3eeb65bce6779cd97c62fdcd07eae1552dd64d, but I don't see any problems there...

Reproduce:

  1. Launch nfEngineTest.
  2. Switch to Sponza scene (press "2")
  3. Wait until everything loads.
  4. Exit.

It will crash here:

nfCommon.dll!_InterlockedExchangeAdd64_ASM(volatile __int64 * _Tgt, int64 _Value) Line 120 C++ nfCommon.dll!std::atomic_ullong::operator++(int formal) Line 1216 C++ nfCommon.dll!NFE::Common::ThreadPool::Enqueue(std::function<void cdecl(unsigned int,unsigned int)> function, unsigned int instances, const std::vector<unsigned int64,std::allocator > & dependencies, unsigned int required) Line 185 C++ nfCore.dll!NFE::Resource::ResManager::UnloadResource(NFE::Resource::ResourceBase * pResource) Line 208 C++ nfCore.dll!NFE::Resource::Material::OnUnload() Line 213 C++ nfCore.dll!NFE::Resource::ResourceBase::Unload() Line 185 C++ [External Code] nfCommon.dll!NFE::Common::ThreadPool::SchedulerCallback(NFE::Common::WorkerThread * thread) Line 132 C++ [External Code] [Frames below may be incorrect and/or missing, no symbols loaded for msvcr120.dll]

Witek902 commented 9 years ago

Fix: Fix: https://review.gerrithub.io/#/c/246087/

Witek902 commented 9 years ago

Merged, closing.