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

Editor crashes when child scene is removed from mesh_collision scene and is played. #485

Open
r41k0u opened this issue Nov 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@r41k0u
Copy link
Contributor

r41k0u commented Nov 12, 2021

Deleting a child scene which has external models ( scenes except camera and light ) and then trying to play the scene gives the following exception:

this was 0xFFFFFFFFFFFFFFFF

Stack Trace :

	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\memory(1271)
Editor.exe!std::shared_ptr<MaterialResourceFile>::operator-><MaterialResourceFile,0>() Line 1700
	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\memory(1700)
Editor.exe!RenderableComponent::getJSON() Line 142
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\components\visual\model\renderable_component.cpp(142)
Editor.exe!Entity::getJSON() Line 30
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\entity.cpp(30)
Editor.exe!Scene::getJSON() Line 315
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\scene.cpp(315)
Editor.exe!Scene::getJSON() Line 321
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\scene.cpp(321)
Editor.exe!SceneLoader::saveSceneAtFile(Scene * scene, const std::string & filePath) Line 118
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\scene_loader.cpp(118)
Editor.exe!SceneLoader::saveScene(Scene * scene) Line 111
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\framework\scene_loader.cpp(111)
Editor.exe!EditorSystem::saveAll(const Event * event) Line 851
	at C:\Users\pragy\Documents\Rootex\Rootex\editor\editor_system.cpp(851)
Editor.exe!EventBinder<EditorSystem>::bind::__l2::<lambda>(const Event * e) Line 35
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\core\event_manager.h(35)
Editor.exe!std::invoke<std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> <lambda>(const Event *) &,Event const *>(EventBinder<EditorSystem>::bind::__l2::std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> <lambda>(const Event *) & _Obj, const Event * && _Arg1) Line 1595
	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\type_traits(1595)
Editor.exe!std::_Invoker_ret<std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *>,0>::_Call<std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> <lambda>(const Event *) &,Event const *>(EventBinder<EditorSystem>::bind::__l2::std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> <lambda>(const Event *) & _Func, const Event * && <_Vals_0>) Line 753
	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\functional(753)
Editor.exe!std::_Func_impl_no_alloc<std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> <lambda>(const Event *),std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *>,Event const *>::_Do_call(const Event * && <_Args_0>) Line 920
	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\functional(920)
Editor.exe!std::_Func_class<std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *>,Event const *>::operator()(const Event * <_Args_0>) Line 968
	at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\functional(968)
Editor.exe!EventBinder<EditorSystem>::handle(const Event & event) Line 60
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\core\event_manager.h(60)
Editor.exe!EventManager::call(const Event & event) Line 51
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\core\event_manager.cpp(51)
Editor.exe!EventManager::call(const std::string & eventType, const std::variant<bool,int,char,float,std::string,std::vector<std::string,std::allocator<std::string>>,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix,std::vector<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>,std::allocator<std::variant<bool,int,char,float,std::string,DirectX::SimpleMath::Vector2,DirectX::SimpleMath::Vector3,DirectX::SimpleMath::Vector4,DirectX::SimpleMath::Matrix>>>,Scene *,Entity *,Hit *> & data) Line 65
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\core\event_manager.cpp(65)
Editor.exe!ToolbarDock::draw(float deltaMilliseconds) Line 72
	at C:\Users\pragy\Documents\Rootex\Rootex\editor\gui\toolbar_dock.cpp(72)
Editor.exe!EditorSystem::update(float deltaMilliseconds) Line 187
	at C:\Users\pragy\Documents\Rootex\Rootex\editor\editor_system.cpp(187)
Editor.exe!Application::run() Line 156
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\app\application.cpp(156)
Editor.exe!main() Line 10
	at C:\Users\pragy\Documents\Rootex\Rootex\rootex\main\main.cpp(10)
Editor.exe!invoke_main() Line 79
	at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(79)
Editor.exe!__scrt_common_main_seh() Line 288
	at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288)
Editor.exe!__scrt_common_main() Line 331
	at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(331)
Editor.exe!mainCRTStartup(void * __formal) Line 17
	at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp(17)
kernel32.dll!00007ffa93546ab0()
ntdll.dll!00007ffa94bd1dbb()```
@r41k0u r41k0u added the bug Something isn't working label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant