Problem with UVMap Layout exporter

Hello. I’m having some problems with the UV layout exporter; it crashes Blender every time I try to use it.

It throws this (Backtrace included):

*** glibc detected *** /opt/Blender/blender: double free or corruption (out): 0x09aa03f0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7b6dd65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7b71800]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7a9fd81]
/usr/lib/libapt-pkg-libc6.6-6.so.4.5(_Z13ReadConfigDirR13ConfigurationRKSsbj+0x317)[0xb53c3487]
/usr/lib/libapt-pkg-libc6.6-6.so.4.5(_Z13pkgInitConfigR13Configuration+0x82b)[0xb53f8aab]
/usr/lib/python2.5/site-packages/apt_pkg.so[0xb5e03ac2]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7eb288d]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x60e9)[0xb7f005e9]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7f01734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7f017b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7f1627d]
/usr/lib/libpython2.5.so.1.0[0xb7f18696]
/usr/lib/libpython2.5.so.1.0[0xb7f19a9a]
/usr/lib/libpython2.5.so.1.0[0xb7f18d83]
/usr/lib/libpython2.5.so.1.0[0xb7f192e4]
/usr/lib/libpython2.5.so.1.0[0xb7f1948f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7f19b73]
/opt/Blender/blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7eb288d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e7bc17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7ef980c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7efbf14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7f01734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7f017b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7f1627d]
/usr/lib/libpython2.5.so.1.0[0xb7f18696]
/usr/lib/libpython2.5.so.1.0[0xb7f18d83]
/usr/lib/libpython2.5.so.1.0[0xb7f1926c]
/usr/lib/libpython2.5.so.1.0[0xb7f1948f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7f19b73]
/opt/Blender/blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7eb288d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e7bc17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7ef980c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7efbf14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7f01734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7f017b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7f1627d]
/usr/lib/libpython2.5.so.1.0[0xb7f18696]
/usr/lib/libpython2.5.so.1.0[0xb7f18d83]
/usr/lib/libpython2.5.so.1.0[0xb7f1926c]
/usr/lib/libpython2.5.so.1.0[0xb7f1948f]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7f19b73]
/opt/Blender/blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7eb288d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e7bc17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7ef980c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7efbf14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7f01734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7f017b3]
/usr/lib/libpython2.5.so.1.0(PyImport_ExecCodeModuleEx+0xad)[0xb7f1627d]
/usr/lib/libpython2.5.so.1.0[0xb7f18696]
/usr/lib/libpython2.5.so.1.0[0xb7f18d83]
/usr/lib/libpython2.5.so.1.0[0xb7f1926c]
/usr/lib/libpython2.5.so.1.0[0xb7f194d6]
/usr/lib/libpython2.5.so.1.0(PyImport_ImportModuleLevel+0x33)[0xb7f19b73]
/opt/Blender/blender(blender_import+0x6c)[0x83f1c7c]
/usr/lib/libpython2.5.so.1.0(PyCFunction_Call+0x14d)[0xb7eb288d]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0xb7e7bc17]
/usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7c)[0xb7ef980c]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1a14)[0xb7efbf14]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7c4)[0xb7f01734]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0xb7f017b3]

And I’m just wondering… What?

I’m using Ubuntu 7.10 Gutsy Gibbon, Blender 2.45, Python 2.5.1.

Yep. Bad bug. Works fine if you use Blender made for the earlier version of Python.

…OR
you could just update manager for Ubuntu now… I think they fixed it for Ubuntu in the new release just put on the repos this week. The latest “as is” blender from blender.org has the crash.

To anyone who can reproduce the crash:

  • Does it also happen with current builds? (your own or from graphicall.org)
  • Can you try editing the script (it’s in your .blender/script folder, called uv_export.py) the script and see if it crashes:
    – 1) Remove everything starting from “if retval:” at the end, including that line
    – 2) Remove everything after “from math import *” at the beginning, excluding that line
    – 3) at the start of the ExportCallback function, add “return” on a new line before the first line of that function.

Current builds don’t crash here on linux 32bit and 2.45 doesn’t crash on win32 last time I used it there.

If there’s a fix for that in Ubuntu, it’d be nice if we could see the changes they did, if they could be ported back.

Martin