Beast error: 5: Invalid object state

Hi all,

This is my first posted message here, so first of all I would like to say that Unity 3 rocks!
However there is a problem (bug) with the Lightmapper (that “Beast”).
If I start Unity offline, I always get the “Beast error: 5: Invalid object state” error.
If I start Unity online (connected to internet), the Lightmapper works just fine.
I hope this is not a kind of spyware.
Any clue what’s going on?

regards

That seems strange!
The only thing I could think of thats causing the error is if youre using a custom .xml file that points to an .hdr map thats on some kind of network drive. Ive had that error earlier too, but then it was just because beast couldn`t find my hdri-map.

Keep us updated!

I get exactly the same error dude, except i cant get Beast to Bake full stop. Very frustrating. Like you, I even made an account on here to try and find a solution from someone far wiser than I…There is another thread with my full error message, but ill post it again…

From the Editor.log

Beast error: 5: Invalid object state

UnityEditor.Lightmapping:BakeAsync()
UnityEditor.LightmapEditor:Buttons()
UnityEditor.LightmapEditor:OnGUI()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[ ], Exception)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[ ], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[ ])
UnityEditor.HostView:Invoke(String, Object)
UnityEditor.HostView:Invoke(String)
UnityEditor.DockArea:OnGUI()
[/Applications/buildAgent/work/68355d6e5d19d587/Projects/…/Editor/Src/Lightmapping.cpp line 40]
(Filename: /Applications/buildAgent/work/68355d6e5d19d587/Projects/…/Editor/Src/Lightmapping.cpp Line: 40)

I haven’t experimented with the Beast yet, my scene isn’t ready for it… however this is troubling as I can only develop on an offline computer.

Can anyone confirm it has to do with the internet connection and not just a networked drive?

@AlinaX: Beast doesn’t require an internet connection and you can bake offline just fine. brokenpoly has a good point, though: Beast might get confused if it can’t access an image that you’ve specified in the xml, so make sure that’s not the case. If it’s not, then please submit a bug report with your project via Help->Report a Problem and we’ll look at it.

@line6dude: We could use your bug report too.

Thanks!

To brokenpoly and robert:

Thank you for infos.
But I didn’t modifiy any XML file.
It seams that Unity has a big problem if you change the project folder ( by default C:\Documents and Settings.…\My Documents.… ).
Is trying to rebuild the new paths, but something goes wrong.
And I don’t use that Windows folder for documents at all.
However, the main question remains: if the internet connection is enabled, I see some network activity after Unity is launched
and the Lightmapper (Beast) works fine.
Why?

regards

What is the exact path to your project folder? (including any funky characters)

What do you mean?

I got the same error, but as robert said… i was thinking about xml file… because I was working my project in windows, then changed to mac… and got the error… some idea?