Skip to content

InvalidProgramException spaming log

Make us happy - post a bug!

InvalidProgramException spaming log

Postby Alewinn » 13 Mar 2012, 08:39

Time to time Unity raises the following error when launching the game (prob : 1/5) :

Syntax:
Using csharp Syntax Highlighting
InvalidProgramException: Invalid IL code in (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ (): IL_004a: ldarg.1  
Parsed in 0.005 seconds, using GeSHi 1.0.8.4


Spamming the Log, even when game stops.
To stop spam i have to launch the game again. Then it stops spaming.
Seems to be a problem with the Vizio editor since i don't have it in any other non-related vizio project.
Alewinn
 
Posts: 26
Joined: 08 Mar 2012, 15:01

Re: InvalidProgramException spaming log

Postby Neodrop » 13 Mar 2012, 13:40

I never saw it in Windows and OSX both. Also, Universe do not use IL generation.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: InvalidProgramException spaming log

Postby Alewinn » 13 Mar 2012, 14:53

mm..
Maybe iTween for Vizio is using it.
Alewinn
 
Posts: 26
Joined: 08 Mar 2012, 15:01

Re: InvalidProgramException spaming log

Postby Alewinn » 13 Mar 2012, 16:39

By the way how can i remove a customblock Dll from Visio ?
Seems that it uses a registering mecanics (using reflexion to get a list of the dll type, maybe ?) that, if i remove the iTween Dll, break the log with errors :

Syntax:
Using csharp Syntax Highlighting
ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes ()
a4.b (System.Reflection.Assembly A_0)
System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12`2[System.Reflection.Assembly,System.Type].MoveNext ()
System.Linq.Enumerable.First[Type] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback)
System.Linq.Enumerable.FirstOrDefault[Type] (IEnumerable`1 source, System.Func`2 predicate)
a4.e (System.String A_0)
VizioWindow+e..ctor ()
VizioComponentEditor..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for VizioComponentEditor
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (RuntimeTypeHandle type)
UnityEditor.EditorAssemblies.RunClassConstructors () (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/EditorAssemblies.cs:67)
UnityEditor.DockArea:OnGUI()
 
Parsed in 0.008 seconds, using GeSHi 1.0.8.4


Also, the log spam stops while i re-paste the itween dll inside its CustomBlocks folder.
Alewinn
 
Posts: 26
Joined: 08 Mar 2012, 15:01

Re: InvalidProgramException spaming log

Postby Alewinn » 13 Mar 2012, 16:49

Ah !
And i've got other errors before the InvalidProgramException raises :

first
Syntax:
Using csharp Syntax Highlighting
!m_InsideFrame && !m_ThrottleFrame
Parsed in 0.004 seconds, using GeSHi 1.0.8.4


then
Syntax:
Using csharp Syntax Highlighting
GUI Window tries to begin rendering while something else has not finished rendering! Either you have a recursive OnGUI rendering, or previous OnGUI did not clean up properly.
Parsed in 0.005 seconds, using GeSHi 1.0.8.4


(personally i dont use any unity GUI windows - ingame or even in the editor, except Vizio - and the "!m_InsideFrame && !m_ThrottleFrame" arnt mine :p)

Edit : That appens 100 all the time when i start the unity engine inside the editor with the graph of a Gameobject of the scene open in Vizio.
The trick is that it happens in a particular scene, not all.

If i can reproduce it i will post it there.
Alewinn
 
Posts: 26
Joined: 08 Mar 2012, 15:01

Re: InvalidProgramException spaming log

Postby Alewinn » 27 Mar 2012, 10:06

Some news about these erros :
Seems that this happens while creating a logic block, then using this logic block to instanciate a new graph on a gameobject inside a scene (a rigged character, in may case).
However i didn't found time to write a method to reproduce the problem (will do it here as soon as i've time)
Alewinn
 
Posts: 26
Joined: 08 Mar 2012, 15:01

Re: InvalidProgramException spaming log

Postby Neodrop » 03 Apr 2012, 10:17

Yes. It's happend sometime. But it's not a critical bug - just Unity EditorGUI message. Nothing hard.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: InvalidProgramException spaming log

Postby Kikimora » 22 Sep 2015, 13:28

The same interested me!
Kikimora
 
Posts: 15
Joined: 22 Sep 2015, 13:20


Return to Bugs

Who is online

Registered users: No registered users