![]() |
#1 |
Junior Member
Member
Join Date: Nov 2011
Posts: 10
|
![]()
Hi, i have to batch convert many objects from COLLADA format to another format.
Luckily i found this script on this forum to do this: http://www.inivis.com/forum/showthread.php?t=4180 this script works fine on small files. they load fine and export correctly. however in some cases , where files are large and complicated , they do not load at all, and then the exporter exports an empty file. I can load and export these same files manually and they work fine, so the issue is not the importer plugin itself, but this script. Is there any limitation of TCL / ACD3 scripting i should be aware of? any chance to debug this behavior to find the source of the problem? thank you very much. |
![]() |
![]() |
![]() |
#2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,541
|
![]()
I can't think how larger file would be any different. You could try pausing/syncing before calling the export but this should happen naturally anyway with the threading that is used.
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Member
Join Date: Nov 2011
Posts: 10
|
![]()
Hi Andy, thank you very much for your reply. Actually i did further testing today and found out that the COLLADA export fails with some DAE files. No clue why. The COLLADA import works fine, but when its time to export to COLLADA both the script method and manual method FAILS. You may be asking "why the hell do you import COLLADA and export COLLADA without doing any processing?" actually i do this to "normalize" COLLADA files. AC3D renames materials in a way i find useful , and later i process this AC3D created COLLADA files with some scripts.
The error im getting is this: Code:
*********************************************** *** glibc detected *** ./ac3d: free(): invalid next size (normal): 0x0e0f4158 *** ======= Backtrace: ========= /lib32/libc.so.6(+0x6bf31)[0xf71c5f31] /lib32/libc.so.6(+0x6d7a8)[0xf71c77a8] /lib32/libc.so.6(cfree+0x6d)[0xf71ca88d] /usr/lib32/libstdc++.so.6(_ZdlPv+0x21)[0xf73a0a31] /home/alejandro/ac3dlx/plugins/collada_export.p(+0x269e)[0xf4d1269e] /home/alejandro/ac3dlx/plugins/collada_export.p(+0x2764)[0xf4d12764] /home/alejandro/ac3dlx/plugins/collada_export.p(+0x2c3b)[0xf4d12c3b] ./ac3d(ac_exporter_write_file+0x6f)[0x80e564f] ./ac3d(do_command+0x4ab)[0x80ce99b] ./ac3d[0x80b9232] ./ac3d(TclInvokeStringCommand+0x76)[0x819c296] ./ac3d[0x819d4ad] ./ac3d[0x819e094] ./ac3d(Tcl_EvalEx+0x3a)[0x819e35a] ./ac3d(Tcl_FSEvalFileEx+0x266)[0x820bb16] ./ac3d[0x81b60b1] ./ac3d[0x819d4ad] ./ac3d(Tcl_EvalObjv+0x54)[0x819e544] ./ac3d(TclEvalObjEx+0x382)[0x819e982] ./ac3d[0x822a0db] ./ac3d[0x819d4ad] ./ac3d[0x81e74c9] ./ac3d(TclObjInterpProcCore+0x117)[0x8229657] ./ac3d(TclObjInterpProc+0x61)[0x8229bb1] ./ac3d[0x819d4ad] ./ac3d[0x819e094] ./ac3d(Tcl_EvalEx+0x3a)[0x819e35a] ./ac3d(Tcl_Eval+0x3c)[0x819e39c] ./ac3d(tcl_command+0x58)[0x80ba208] ./ac3d(_Z24process_user_tcl_scriptsv+0x12)[0x80ba472] ./ac3d(main+0x29b)[0x809c86b] /lib32/libc.so.6(__libc_start_main+0xe6)[0xf7170c76] ./ac3d[0x809bdf1] ======= Memory map: ======== 08048000-083af000 r-xp 00000000 08:06 1384625 /home/alejandro/ac3dlx/ac3d 083af000-083cb000 rw-p 00366000 08:06 1384625 /home/alejandro/ac3dlx/ac3d 083cb000-084f5000 rw-p 00000000 00:00 0 087f6000-10fd7000 rw-p 00000000 00:00 0 [heap] d5d00000-d5d21000 rw-p 00000000 00:00 0 d5d21000-d5e00000 ---p 00000000 00:00 0 d5e47000-d5e48000 rw-p 00000000 00:00 0 d5e48000-d5f48000 rw-s 1768ec000 00:05 5663 /dev/nvidia0 d5f48000-d6048000 rw-s 16ace7000 00:05 5663 /dev/nvidia0 d6048000-d6148000 rw-s 1588da000 00:05 5663 /dev/nvidia0 d6148000-d6248000 rw-s 161cd4000 00:05 5663 /dev/nvidia0 d6248000-d6348000 rw-s 158811000 00:05 5663 /dev/nvidia0 d6348000-d7750000 rw-p 00000000 00:00 0 d778f000-d788f000 rw-s 157ce0000 00:05 5663 /dev/nvidia0 d788f000-d798f000 rw-s 181ad3000 00:05 5663 /dev/nvidia0 d798f000-d82d3000 rw-p 00000000 00:00 0 d8313000-ee083000 rw-p 00000000 00:00 0 ee0ab000-eeeb0000 rw-p 00000000 00:00 0 eef15000-ef45d000 rw-p 00000000 00:00 0 ef45e000-ef924000 rw-p 00000000 00:00 0 ef925000-f0131000 rw-p 00000000 00:00 0 f01a7000-f02fa000 rw-p 00000000 00:00 0 f02fb000-f0d03000 rw-p 00000000 00:00 0 f0d82000-f11d4000 rw-p 00000000 00:00 0 f1214000-f1295000 rw-p 00000000 00:00 0 f1295000-f1395000 rw-s 158ac6000 00:05 5663 /dev/nvidia0 f1395000-f1597000 rw-p 00000000 00:00 0 f15d7000-f1658000 rw-p 00000000 00:00 0 f1658000-f1758000 rw-s 16ac79000 00:05 5663 /dev/nvidia0 f1758000-f1958000 rw-s 175268000 00:05 5663 /dev/nvidia0 f1958000-f1a58000 rw-s 158716000 00:05 5663 /dev/nvidia0 f1a58000-f1b58000 rw-s 158a42000 00:05 5663 /dev/nvidia0 f1b58000-f1c84000 rw-p 00000000 00:00 0 f1c85000-f4bff000 rw-p 00000000 00:00 0 f4c00000-f4c02000 r-xp 00000000 08:06 1393466 /home/alejandro/ac3dlx/plugins/terragenimport.p f4c02000-f4c03000 rw-p 00001000 08:06 1393466 /home/alejandro/ac3dlx/plugins/terragenimport.p f4c03000-f4c04000 r-xp 00000000 08:06 1393457 /home/alejandro/ac3dlx/plugins/quakemap_export.p f4c04000-f4c05000 rw-p 00000000 08:06 1393457 /home/alejandro/ac3dlx/plugins/quakemap_export.p f4c05000-f4c07000 r-xp 00000000 08:06 1393454 /home/alejandro/ac3dlx/plugins/pngload.p f4c07000-f4c08000 rw-p 00001000 08:06 1393454 /home/alejandro/ac3dlx/plugins/pngload.p f4c08000-f4c61000 r-xp 00000000 08:01 109660 /usr/lib32/libtiff.so.4.3.3 f4c61000-f4c63000 rw-p 00059000 08:01 109660 /usr/lib32/libtiff.so.4.3.3 f4c63000-f4c64000 r-xp 00000000 08:06 1393467 /home/alejandro/ac3dlx/plugins/tgaload.p f4c64000-f4c65000 rw-p 00001000 08:06 1393467 /home/alejandro/ac3dlx/plugins/tgaload.p f4c65000-f4c67000 r-xp 00000000 08:06 1393459 /home/alejandro/ac3dlx/plugins/savepng.p f4c67000-f4c68000 rw-p 00001000 08:06 1393459 /home/alejandro/ac3dlx/plugins/savepng.p f4c68000-f4c75000 r-xp 00000000 08:06 1392731 /home/alejandro/ac3dlx/plugins/DirectX.p f4c75000-f4c76000 rw-p 0000c000 08:06 1392731 /home/alejandro/ac3dlx/plugins/DirectX.p f4c76000-f4c77000 rw-p 00000000 00:00 0 f4c77000-f4c78000 r-xp 00000000 08:06 1393465 /home/alejandro/ac3dlx/plugins/t3d_export.p f4c78000-f4c79000 rw-p 00000000 08:06 1393465 /home/alejandro/ac3dlx/plugins/t3d_export.p f4c79000-f4c7a000 r-xp 00000000 08:06 1393468 /home/alejandro/ac3dlx/plugins/tiffload.p f4c7a000-f4c7b000 rw-p 00000000 08:06 1393468 /home/alejandro/ac3dlx/plugins/tiffload.p f4c7b000-f4c87000 r-xp 00000000 08:06 1392732 /home/alejandro/ac3dlx/plugins/LDraw.p f4c87000-f4c8d000 rw-p 0000b000 08:06 1392732 /home/alejandro/ac3dlx/plugins/LDraw.p f4c8d000-f4c8e000 rw-p 00000000 00:00 0 f4c8e000-f4c8f000 r-xp 00000000 08:06 1393443 /home/alejandro/ac3dlx/plugins/linecom.p f4c8f000-f4c90000 rw-p 00000000 08:06 1393443 /home/alejandro/ac3dlx/plugins/linecom.p f4c90000-f4c91000 r-xp 00000000 08:06 1393439 /home/alejandro/ac3dlx/plugins/field_import.p f4c91000-f4c92000 rw-p 00001000 08:06 1393439 /home/alejandro/ac3dlx/plugins/field_import.p f4c92000-f4c93000 r-xp 00000000 08:06 1393455 /home/alejandro/ac3dlx/plugins/point_import.p f4c93000-f4c94000 rw-p 00000000 08:06 1393455 /home/alejandro/ac3dlx/plugins/point_import.p f4c94000-f4c95000 r-xp 00000000 08:06 1393461 /home/alejandro/ac3dlx/plugins/slbox_export.p f4c95000-f4c96000 rw-p 00000000 08:06 1393461 /home/alejandro/ac3dlx/plugins/slbox_export.p f4c96000-f4c9a000 r-xp 00000000 08:06 1393431 /home/alejandro/ac3dlx/plugins/ase_export.p/mnt/server/xplane/proyects/convert-object/convert.sh: line 21: 9569 Aborted ./ac3d this is the file: http://sketchup.google.com/3dwarehou...=1202486089000 regards. |
![]() |
![]() |
![]() |
#4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,541
|
![]()
Just tried importing/exporting the stadium model with AC3D 6.8.14 and then reloading the output and it was fine.
My test was under Windows. I see you are using the Linux version of AC3D - have you tried using the other AC3D binary which is statically linked? |
![]() |
![]() |
![]() |
#5 |
Junior Member
Member
Join Date: Nov 2011
Posts: 10
|
![]()
hi Andy, thank you for your reply.
You are correct im using Linux. I tested both AC3D and AC3DS binarys executed directly and the both fail. I will try on a Windows version either over WINE or a VIRTUAL MACHINE. thank you. |
![]() |
![]() |
![]() |
#6 |
Junior Member
Member
Join Date: Nov 2011
Posts: 10
|
![]()
I can confirm that the WINDOWS version works fine. i managed to run AC3D with WINE and i no longer get this error. regards.
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|