#85 DEBUG ASSERT vector subscript out of range - BLENDER file

Release 3.0
closed
nobody
None
5
2016-02-01
2012-07-31
sigEleven
No

I'm new to openGL 3d rendering, and I was using the supplied "SimpleTexturedOpenGL" project to test loading in some blender files. The only modification I have made so far, is to change the file name of the model to load. I loaded most of the examples without a problem, then tried loading a half-finished blender model of my own. It's pretty basic, only has 2 cubes, a plane, a lamp, and a camera. On debug execution, it asserts with vector subscript out of range. On release, the model is simply not rendered.

The assert is triggered by this line in BlenderModifier.cpp:
aiMesh** const meshes = &conv_data.meshes[conv_data.meshes->size() - out.mNumMeshes];

Here is the assimp log:
Info, T7548: this is my info-call
Info, T7548: App fired!
Info, T7548: Load ging.blend
Debug, T7548: Assimp 3.0.1270 x86 msvc debug noboost shared singlethreaded
Info, T7548: Found a matching importer for this file format
Info, T7548: Import root directory is 'X:\Users\sigEleven\Documents\'
Info, T7548: BLEND: Blender version is 2.63 (64bit: false, little endian: true)
Debug, T7548: REND
Debug, T7548: TEST
Debug, T7548: GLOB
Debug, T7548: WM
Debug, T7548: DATA
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SN
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: SC
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: IM
Debug, T7548: CA
Debug, T7548: LA
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: WO
Debug, T7548: DATA
Debug, T7548: OB
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: OB
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: OB
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: OB
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: MA
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: MA
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: TE
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: ME
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: ME
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: BR
Debug, T7548: DATA
Skipping one or more lines with the same contents
Debug, T7548: DNA1
Debug, T7548: BlenderDNA: Got 463 structures with totally 5584 fields
Info, T7548: BlenderDNA: Dumped dna to dna.txt
Debug, T7548: ENDB
Warn, T7548: BlendDNA: Did not find a field named `angle` in structure `Camera`
Warn, T7548: BlendDNA: Did not find a field named `mat_nr` in structure `MVert`
Skipping one or more lines with the same contents
Warn, T7548: BlendDNA: Did not find a field named `flags` in structure `Lamp`
Warn, T7548: BlendDNA: Did not find a field named `mat_nr` in structure `MVert`
Skipping one or more lines with the same contents
Info, T7548: (Stats) Fields read: 4185, pointers resolved: 22, cache hits: 8, cached objects: 18

Like I said, I'm rather new to this, so please bear with me, and let me know if there's anything else I can do to help with this issue.

Thanks.
aidevelopment[at]gmail[dot]com

Discussion

  • sigEleven

    sigEleven - 2012-07-31

    Just to test, I took a sample file that worked "NoisyTexturedCube_VoronoiGlob_248" opened it in blender, saved it as a copy immediately, tested it again, and the copy does not work... so I would guess assimp doesn't work with the 2.63 Blender format?

    Works: Info, T5328: BLEND: Blender version is 2.48 (64bit: false, little endian: true)
    Broken: Info, T7376: BLEND: Blender version is 2.63 (64bit: false, little endian: true)

     
  • sigEleven

    sigEleven - 2012-07-31

    Looks like you can do the following for a workaround (for now) in Blender:
    File -> Save As -> CHECK Legacy Mesh Format

     
  • Kim Kulling

    Kim Kulling - 2013-09-28
    • status: open --> pending
    • Group: --> Release 3.0
     
  • Kim Kulling

    Kim Kulling - 2016-02-01

    deprecated

     
  • Kim Kulling

    Kim Kulling - 2016-02-01
    • status: pending --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks