sweenal / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

OpenCOLLADAValidator crash COLLADASaxFWL::LibraryEffectsLoader::handleTexture #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Crash in reading DEA file. (attached)

Compiled on linux 64bit, with cmake: r785.

This was reported as a blender bug.
https://projects.blender.org/tracker/index.php?func=detail&aid=24888&group_id=9&
atid=498

This is the output from OpenCOLLADAValidator

/data/src/opencollada-read-only # 
/data/src/opencollada-read-only/bin/OpenCOLLADAValidator /d/office2.dae 
Schema validation error: Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: 
technique, Attribute: sid, Line: 147, Column: 19, Additional: 
Schema validation error: Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: 
technique, Attribute: sid, Line: 182, Column: 19, Additional: 
Schema validation error: Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: 
technique, Attribute: sid, Line: 237, Column: 21, Additional: 
Schema validation error: Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: 
texture, Attribute: texcoord, Line: 247, Column: 33, Additional: 
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted

Backtrace from within blender.

#0  0x00007ffff5174595 in raise () from /lib/libc.so.6
#1  0x00007ffff5175a16 in abort () from /lib/libc.so.6
#2  0x00007ffff6b86ded in __gnu_cxx::__verbose_terminate_handler() () from 
/usr/lib/libstdc++.so.6
#3  0x00007ffff6b85006 in ?? () from /usr/lib/libstdc++.so.6
#4  0x00007ffff6b85033 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0x00007ffff6b8513e in __cxa_throw () from /usr/lib/libstdc++.so.6
#6  0x00007ffff6b30440 in std::__throw_logic_error(char const*) () from 
/usr/lib/libstdc++.so.6
#7  0x00007ffff6b69f29 in char* std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::_S_construct<char const*>(char const*, char const*, 
std::allocator<char> const&, std::forward_iterator_tag) () from 
/usr/lib/libstdc++.so.6
#8  0x00007ffff6b6a3a2 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) 
() from /usr/lib/libstdc++.so.6
#9  0x00000000017d14f8 in COLLADASaxFWL::LibraryEffectsLoader::handleTexture 
(this=0x7fffe02966f8, attributeData=...) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/COLLADASaxFWLLibra
ryEffectsLoader.cpp:193
#10 0x00000000017d36de in COLLADASaxFWL::LibraryEffectsLoader::begin__texture 
(this=0x7fffe02966f8, attributeData=...) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/COLLADASaxFWLLibra
ryEffectsLoader.cpp:654
#11 0x000000000185340b in COLLADASaxFWL::LibraryEffectsLoader14::begin__texture 
(this=0x7fffe0045ea8, attributeData=...) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/generated14/COLLAD
ASaxFWLLibraryEffectsLoader14.cpp:514
#12 0x00000000014cfb04 in 
COLLADASaxFWL14::ColladaParserAutoGen14Private::_begin__texture 
(this=0x7fffe0045f88, attributeData=0x7fffe00863c8) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/include/generated14/CO
LLADASaxFWLColladaParserAutoGen14Private.h:8963
#13 0x0000000001547266 in 
GeneratedSaxParser::ParserTemplate<COLLADASaxFWL14::ColladaParserAutoGen14Privat
e, COLLADASaxFWL14::ColladaParserAutoGen14>::elementBegin (this=0x7fffe0045f88, 
elementName=0x7fffe0019680 "texture", attributes=...) at 
/data/src/opencollada-read-only/GeneratedSaxParser/include/GeneratedSaxParserPar
serTemplate.h:2057
#14 0x0000000001908262 in GeneratedSaxParser::LibxmlSaxParser::startElement 
(user_data=0x7fffffffd610, name=0x7fffe0019680 "texture", attrs=0x7fffe003e440) 
at 
/data/src/opencollada-read-only/GeneratedSaxParser/src/GeneratedSaxParserLibxmlS
axParser.cpp:176
#15 0x00007ffff5708783 in xmlParseStartTag () from /usr/lib/libxml2.so.2
#16 0x00007ffff5713038 in xmlParseElement () from /usr/lib/libxml2.so.2
#17 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#18 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#19 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#20 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#21 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#22 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#23 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#24 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#25 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#26 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#27 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#28 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#29 0x00007ffff5711dda in xmlParseContent () from /usr/lib/libxml2.so.2
#30 0x00007ffff5712f23 in xmlParseElement () from /usr/lib/libxml2.so.2
#31 0x00007ffff5713f4a in xmlParseDocument () from /usr/lib/libxml2.so.2
#32 0x0000000001907eaf in GeneratedSaxParser::LibxmlSaxParser::parseFile 
(this=0x7fffffffd610, fileName=0x7fffe000fbd0 "/d/office2.dae") at 
/data/src/opencollada-read-only/GeneratedSaxParser/src/GeneratedSaxParserLibxmlS
axParser.cpp:100
#33 0x00000000013eb6aa in COLLADASaxFWL::VersionParser::createAndLaunchParser 
(this=0x7fffffffd680) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/COLLADASaxFWLVersi
onParser.cpp:329
#34 0x00000000013eb0a8 in COLLADASaxFWL::FileLoader::load (this=0x7fffffffd780) 
at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/COLLADASaxFWLFileL
oader.cpp:79
#35 0x00000000013cc473 in COLLADASaxFWL::Loader::loadDocument 
(this=0x7fffffffda80, fileName=..., writer=0x7fffffffdf40) at 
/data/src/opencollada-read-only/COLLADASaxFrameworkLoader/src/COLLADASaxFWLLoade
r.cpp:216
#36 0x00000000018d99f0 in COLLADAFW::Root::loadDocument (this=0x7fffffffdee0, 
fileName=...) at 
/data/src/opencollada-read-only/COLLADAFramework/src/COLLADAFWRoot.cpp:27
#37 0x00000000011f94f6 in Writer::write (this=0x7fffffffdf40) at 
/data/src/blender/blender/source/blender/collada/DocumentImporter.cpp:145
#38 0x00000000011f7978 in DocumentImporter::import (this=0x7fffffffe48f, 
C=0x26ac8d8, filename=0x7fffffffe4b0 "/d/office2.dae") at 
/data/src/blender/blender/source/blender/collada/DocumentImporter.cpp:967
#39 0x00000000011eab1b in collada_import (C=0x26ac8d8, filepath=0x7fffffffe4b0 
"/d/office2.dae") at 
/data/src/blender/blender/source/blender/collada/collada.cpp:36
#40 0x0000000000b34f94 in wm_collada_import_exec (C=0x26ac8d8, 
op=0x7fffe00109c8) at 
/data/src/blender/blender/source/blender/windowmanager/intern/wm_operators.c:198
9
#41 0x0000000000b26905 in wm_handler_fileselect_call (C=0x26ac8d8, 
handlers=0x2adac08, handler=0x7fffe0047438, event=0x7fffe0033968) at 
/data/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:
1284
#42 0x0000000000b26ec8 in wm_handlers_do (C=0x26ac8d8, event=0x7fffe0033968, 
handlers=0x2adac08) at 
/data/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:
1422
#43 0x0000000000b27a46 in wm_event_do_handlers (C=0x26ac8d8) at 
/data/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:
1681
#44 0x0000000000b21b3a in WM_main (C=0x26ac8d8) at 
/data/src/blender/blender/source/blender/windowmanager/intern/wm.c:342
#45 0x0000000000b2122b in main (argc=1, argv=0x7fffffffe8d8) at 
/data/src/blender/blender/source/creator/creator.c:1195

Original issue reported on code.google.com by ideasma...@gmail.com on 8 Dec 2010 at 7:42

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for reporting this issue.

It has been fixed in r805.

Original comment by opencollada2@googlemail.com on 18 Jan 2011 at 2:20