-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bug: Open simple COLLADA file on BigEndian architecture fails (s390x or ppc64) #4788
Comments
the |
so i just ran your test on $ ./assimp_test_collada
Info, T0: Load cube.dae
Debug, T0: Assimp 5.2.0 ppc64 gcc debug shared singlethreadedsingle :
Info, T0: Found a matching importer for this file format: Collada Importer.
Info, T0: Import root directory is './'
Debug, T0: Collada schema version is 1.5.n
Error, T0: Expected different index count in <p> element.
Assimp error: Expected different index count in <p> element. so it seems that this is indeed a simple BigEndian issue. |
Thanks for the additional testing!
Is there a patch that I can try? otherwise, do you have any insight of the faulty code that I could debug? |
what i meant to say is that for me the double-test confirmed that the issue is indeed ("just") a BigEndian problem, as opposed to a (complicated, hardware-specific) s390x-only problem. i did not want to imply (with "a simple BigEndian issue"), that there is a simple and quick fix to the problem. assimp/code/AssetLib/Collada/ColladaParser.cpp Lines 1748 to 1759 in cfed745
|
Title updated, and I'll try to look at the code you've pointed. Thanks! |
Describe the bug
Loading the COLLADA example from 1.5 documentation (Appendix A) fails on s390x architecture with the following error description:
Expected different index count in <p> element.
It works on any other architectures like amd64 or arm64.
To Reproduce
Build and run the program at: https://salsa.debian.org/mzf/assimp-collada-test
Expected behavior
The importer loads the given COLLADA file without error, like on amd64 architecture.
Screenshots
N/A
Platform (please complete the following information):
Additional context
s390x is a Big Endian architecture, which may be the root of the issue. I can do additional check on this architecture to ease debugging, do not hesitate to ask.
This is the forwarding of the Debian issue 1023212
Thanks!
The text was updated successfully, but these errors were encountered: