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

"Assertion !isZero(l, epsilon) failed" in xatlas.cpp during lightmap generation #39532

Closed
aelspire opened this issue Jun 14, 2020 · 2 comments
Closed

Comments

@aelspire
Copy link

Godot version:
Godot Engine v3.2.2.rc.custom_build.6efab27a4

OS/device including version:
OS: Arch linux
GPU driver: nvidia 440.82-21

OpenGL ES 3.0 Renderer: GeForce GTX 970/PCIe/SSE2

Issue description:
When opening "Third Person Shooter Demo" godot editor crashes on assert thirdparty/xatlas/xatlas.cpp:814: xatlas::internal::Vector3 xatlas::internal::normalize(const xatlas::internal::Vector3&, float): Assertion '!isZero(l, epsilon)' failed. during lightmap generation.

Logs from console:

Editing project: /home/aelspire/Dokumenty/Godot/tps-demo (::home::aelspire::Dokumenty::Godot::tps-demo)
Godot Engine v3.2.2.rc.custom_build.6efab27a4 - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GTX 970/PCIe/SSE2

ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
ERROR: _create_material: Condition "!collada.state.material_map.has(p_target)" is true. Returned: ERR_INVALID_PARAMETER
   At: editor/import/editor_import_collada.cpp:361.
Adding mesh..
Generate..
Final texture size: 100.000000,100.000000 - max 99.500000,99.500000
Done
Adding mesh..

***************************
8< snip snip
***************************

Done
Adding mesh..
Generate..
Final texture size: 52.000000,48.000000 - max 51.500000,47.500000
Done
Adding mesh..
Generate..
godot.x11.tools.64: thirdparty/xatlas/xatlas.cpp:814: xatlas::internal::Vector3 xatlas::internal::normalize(const xatlas::internal::Vector3&, float): Assertion `!isZero(l, epsilon)' failed.
@qarmin
Copy link
Contributor

qarmin commented Dec 4, 2020

Cannot reproduce crash in 3.2.4.beta.custom_build. 185520c
Please reply if you still have crash.

@qarmin qarmin closed this as completed Dec 4, 2020
@qarmin qarmin added this to the 3.2 milestone Dec 4, 2020
@aelspire
Copy link
Author

aelspire commented Dec 4, 2020

I've just tested it. Problem is gone.

@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants