FOR YOYOZ / BUG REPORT / linked instance groups crash

Forums: FOR YOYOZ / BUG REPORT / linked instance groups crash
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby kiwimage » Thu Sep 01, 2011 5:43 am

kiwimage Thu Sep 01, 2011 5:43 am
Hello Lionel,

I have made a topic about a bug here : viewtopic.php?f=32&t=7187, but no one seams to have a clue.

For animation in Blender, it's handy - if not necessary - to have the main scene and the rigged characters in separated .blend files.

I don't know if you're familiar with this procedure, but it's done buy all character animators, I explain it briefly :
you place your environnement and set your camera in a main .blend, lets call it "main_set.blend"
From there you wanna call rigs and props, wich are stored in other blend files aside.
Lets say you have a complex rigged character : you group all of it (bones, armature, geometry) and call this group 'myrig'. you save this file in "my_character.blend".
Back to the master blend file (main_set.blend), you do file > link -> path to.../mycharacter.blend ->group-> 'myrig'.

The linked group is now available in main_set.blend via the command shift + A / group instance.

Currently, your exporter is lost and crashes if you have links / groups in it.

I have reproduced this bug context in the zipped files attached, If you'd have a moment to figure this out, it would be awesome.

The attached files contains the master scene (the default cube), and a .blend wich contains the rig to import as a linked group.
Exporter crashes, leaving an unfinished .obj , and blender's console says : "Runtime Error : Object does not have geometry data".

I'm at your service if you want help on testing stuffs about that.
Attachments
linked-groups-problem.zip
the blend files.
(250.35 KiB) Downloaded 309 times
Titan Black + GTX 580-3go / Win 7 pro 64 bits / C4DR14 with integrated plugin / Blender / Octane standalone /
website : http://www.kiwimage.com
User avatar
kiwimage
Licensed Customer
Licensed Customer
 
Posts: 67
Joined: Sat Dec 18, 2010 9:39 pm
Location: France / Bretagne / Lorient

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby matej » Fri Sep 02, 2011 2:12 pm

matej Fri Sep 02, 2011 2:12 pm
Yes, I confirm this bug report and also the wish to have this patched in the future. For bigger projects or projects where multiple people work on it, is indeed usual and handy to have your objects in multiple files and then linked into a "master scene" blend.

If I try exporting a scene with linked groups I get this crash:
Code: Select all
Octane plug-in v1.09 on 2.59.0.39475M : Fixed name <None> to <None>
Octane plug-in v1.09 on 2.59.0.39475M : Fixed name <None> to <None>
Octane plug-in v1.09 on 2.59.0.39475M : Fixed name <None> to <None>
Octane plug-in v1.09 on 2.59.0.39475M : Fixed name <None> to <None>
Traceback (most recent call last):
  File "/home/matej/prog/blender-259/2.59/scripts/addons/octanerender/engine.py", line 97, in render
    mtl_list = write_obj(objTemp, mtlFile, obj_list, scene, unitFactor)
  File "/home/matej/prog/blender-259/2.59/scripts/addons/octanerender/export.py", line 702, in write_obj
    ob_main.dupli_list_free()
AttributeError: 'Object' object has no attribute 'dupli_list_free'
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby yoyoz » Sat Oct 29, 2011 5:17 pm

yoyoz Sat Oct 29, 2011 5:17 pm
Kiwi,

I think I can arrange that, I just need some time to look at new obj export code from Campbell to see what he has modified.


Matej,

sounds that's another problem. Can you share you blend file (link to PM if you don't want to make it public).

Cheers,
Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby matej » Sat Oct 29, 2011 8:05 pm

matej Sat Oct 29, 2011 8:05 pm
Here's an example scene. In the Sphere.blend there is a sphere which is in a group called "Spheres". The Scene.blend is the master file. From the master file you link the sphere object (File -> Link -> Object -> Sphere) and then you export and everything works. But if you link the group the sphere belongs to (File -> Link -> Group -> Spheres), then it crashes on export with the above posted message.

Try to export the scene as is, it will result in error. If you disable the second layer (with the linked group) and enable the first (where the linked object is), it will export ok. (EDIT: actually I made an error when saving, they are both on the second layer, one on top of the other)
Attachments
linked-groups.zip
(311.85 KiB) Downloaded 294 times
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby yoyoz » Sat Oct 29, 2011 8:34 pm

yoyoz Sat Oct 29, 2011 8:34 pm
I should first have asked you the following: does the built-in obj exporter work well?
If yes, I may be able to fix together with issue Kiwi has.

I'll anyway have a look.

NOTE: I'm using Blender 2.60 now, and apart from cosmetic error messages and some memory leaks it works as before. I'll also need to get in touch with Campbell for these.
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby matej » Sat Oct 29, 2011 8:50 pm

matej Sat Oct 29, 2011 8:50 pm
The built in .obj exporter work fine and says this when exporting that scene:

Code: Select all
creating dupli_list on Spheres
Spheres has 1 dupli children
OBJ Export time: 0.08


EDIT: Testing this with Blender 2.60 behaves exactly the same
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby yoyoz » Sun Oct 30, 2011 7:46 am

yoyoz Sun Oct 30, 2011 7:46 am
Yes, I also could try your (Kiwi) scene with builtin obj and it worked fine for me too. I was wondering about Matej's scene because it shows up different error but I don't get any error with the exporter and his scene now (I'm testing with Blender 2.60 build 41346).
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby matej » Sun Oct 30, 2011 8:11 am

matej Sun Oct 30, 2011 8:11 am
Hm, I still get the error with 2.6

There are two spheres in my Scene, th one that doesn't export is the linked group -> it's attached to an empty.
zaslonska_slika.jpg
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby yoyoz » Sun Oct 30, 2011 8:56 am

yoyoz Sun Oct 30, 2011 8:56 am
when I open your scene in blender I only have one sphere... may be I should first figure out where is the missing one :-)
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: FOR YOYOZ / BUG REPORT / linked instance groups crash

Postby matej » Sun Oct 30, 2011 9:29 am

matej Sun Oct 30, 2011 9:29 am
The I probably messed up when saving :D

Here is the whole thing, it should have all the necessary.
linked-groups.tar.gz
(630.33 KiB) Downloaded 307 times


And the second file is the PS test we talked about on PM
PStest.tar.gz
(130.07 KiB) Downloaded 322 times
SW: Octane 3.05 | Linux Mint 18.1 64bit | Blender 2.78 HW: EVGA GTX 1070 | i5 2500K | 16GB RAM Drivers: 375.26
cgmo.net
User avatar
matej
Licensed Customer
Licensed Customer
 
Posts: 2083
Joined: Fri Jun 25, 2010 7:54 pm
Location: Slovenia
Next

Return to Blender


Who is online

Users browsing this forum: No registered users and 10 guests

Thu Mar 28, 2024 1:52 pm [ UTC ]