[mono-android] 4.0 crashing previously working source.
Josh Handel
Josh.Handel at catapultsystems.com
Mon Dec 5 15:41:01 EST 2011
>From "cold start" of MonoDevelop (2.8.4.1) to failing to run the app once these are the errors in my Message log.
Also my breakpoints are throwing erros in MonoDevelop now (it doesn't crash).. to be clean I'll start a new thread for that issue.
(these two from running the app)
Error - 2:38:22 PM - Exception while loading assemblies: {0}
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.MonoDroid.Utils.ResolveAssemblies.AddAssemblyReferences (System.Collections.Generic.List`1 assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
at MonoDevelop.MonoDroid.Utils.ResolveAssemblies.Run () [0x000b4] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Utils/AssemblyHelper.cs:205
Error - 2:38:22 PM - Error in async operation chain
System.ArgumentNullException: Argument cannot be null.
Parameter name: source
at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.Where[String] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
at MonoDevelop.MonoDroid.Utils.ResolveAssemblies.get_ResolvedUserAssemblies () [0x00000] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Utils/AssemblyHelper.cs:172
at MonoDevelop.MonoDroid.AndroidToolbox.InstallAssemblies (Mono.AndroidTools.AndroidDevice device, Boolean external, System.String tmp, System.String target, System.String packageName, System.IO.TextWriter outputLog, System.IO.TextWriter errorLog) [0x000d8] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/AndroidToolbox.cs:286
at MonoDevelop.MonoDroid.MonoDroidUploadOperation+<MonoDroidUploadOperation>c__AnonStorey22.<>m__71 () [0x0000b] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:574
at MonoDevelop.MonoDroid.ChainedAsyncOperationSequence.RunNext () [0x000df] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:774
at MonoDevelop.MonoDroid.ChainedAsyncOperationSequence.OpCompleted (IAsyncOperation op) [0x00112] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:816
(this one from startup of MonoDevelop)
Error - 2:32:22 PM - Error loading policy file 'Default.mdpolicy.xml' file '/Users/jhandel/Library/MonoDevelop-2.8/Policies/Default.mdpolicy.xml':
System.InvalidOperationException: Could not set property 'Text' in type 'StandardHeader' ---> System.InvalidCastException: Cannot cast from source type to destination type.
at MonoDevelop.Core.Serialization.PrimitiveDataType.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/PrimitiveDataType.cs:52
at MonoDevelop.Core.Serialization.DataSerializer.OnDeserialize (MonoDevelop.Core.Serialization.DataType dataType, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:101
at MonoDevelop.Core.Serialization.DataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataType.cs:106
at MonoDevelop.Core.Serialization.ItemProperty.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ItemProperty.cs:290
at MonoDevelop.Core.Serialization.DataSerializer.OnDeserializeProperty (MonoDevelop.Core.Serialization.ItemProperty prop, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object instance, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:121
at MonoDevelop.Core.Serialization.ItemProperty.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object instance, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ItemProperty.cs:285
at MonoDevelop.Core.Serialization.ClassDataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object obj, MonoDevelop.Core.Serialization.DataCollection itemData, MonoDevelop.Core.Serialization.DataItem ukwnDataRoot, System.String baseName) [0x001c1] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:523
--- End of inner exception stack trace ---
at MonoDevelop.Core.Serialization.ClassDataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object obj, MonoDevelop.Core.Serialization.DataCollection itemData, MonoDevelop.Core.Serialization.DataItem ukwnDataRoot, System.String baseName) [0x00279] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:539
at MonoDevelop.Core.Serialization.ClassDataType.DeserializeNoCustom (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object obj, MonoDevelop.Core.Serialization.DataCollection itemData) [0x0007d] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:465
at MonoDevelop.Core.Serialization.ClassDataType.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data, System.Object obj) [0x0003a] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:453
at MonoDevelop.Core.Serialization.DataSerializer.OnDeserialize (MonoDevelop.Core.Serialization.DataType dataType, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data, System.Object valueInstance) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:106
at MonoDevelop.Core.Serialization.DataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data, System.Object valueInstance) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataType.cs:111
at MonoDevelop.Core.Serialization.ClassDataType.OnDeserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x0015d] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/ClassDataType.cs:409
at MonoDevelop.Core.Serialization.DataSerializer.OnDeserialize (MonoDevelop.Core.Serialization.DataType dataType, MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:101
at MonoDevelop.Core.Serialization.DataType.Deserialize (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Object mapData, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataType.cs:106
at MonoDevelop.Core.Serialization.DataContext.LoadConfigurationData (MonoDevelop.Core.Serialization.SerializationContext serCtx, System.Type type, MonoDevelop.Core.Serialization.DataNode data) [0x00008] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataContext.cs:114
at MonoDevelop.Core.Serialization.DataSerializer.Deserialize (System.Type type, MonoDevelop.Core.Serialization.DataNode data) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataSerializer.cs:76
at MonoDevelop.Projects.Policies.PolicyService.RawDeserialize (MonoDevelop.Core.Serialization.DataNode data) [0x000d4] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:206
at MonoDevelop.Projects.Policies.PolicyService.DiffDeserialize (MonoDevelop.Core.Serialization.DataItem item) [0x00031] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:242
at MonoDevelop.Projects.Policies.PolicyService+<DiffDeserializeXml>c__Iterator70.MoveNext () [0x000cd] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:177
at MonoDevelop.Projects.Policies.PolicySet.LoadFromXml (System.Xml.XmlReader reader) [0x00100] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicySet.cs:187
at MonoDevelop.Projects.Policies.PolicyService.<LoadPolicy>m__75 (System.IO.StreamReader reader) [0x0007b] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:1224
at MonoDevelop.Projects.Policies.PolicyService.ParanoidLoad (System.String fileName, System.String friendlyName, System.Action`1 read) [0x00019] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs:1251
Hope this is helpful.
Josh
________________________________
From: monodroid-bounces at lists.ximian.com [monodroid-bounces at lists.ximian.com] on behalf of Andreia Gaita [shana at xamarin.com]
Sent: Monday, December 05, 2011 2:26 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] 4.0 crashing previously working source.
Hi again,
Do any errors show up in the Message Log (accessible via the View / Pads menu), something like "Exception while loading assemblies"?
andreia gaita
On Mon, Dec 5, 2011 at 8:08 PM, Josh Handel <Josh.Handel at catapultsystems.com<mailto:Josh.Handel at catapultsystems.com>> wrote:
Scrubbed squeaky clean, even created a new Emulator for it, even cleaned and rebuilt all the other assemblies the project used and re-referenced them (with cleaning between references to make sure MonoDevelop was really really really using the new stuff).. But sadly no dice :-(
this is my output when I try to debug.
Waiting for packaging processing to complete
Getting package list from device
Installing package
649 KB/s (52666 bytes in 0.079s)
pkg: /data/local/tmp/monodroiddeltaforce.monodroiddeltaforce-Signed.apk
Success
Installing assemblies
Internal error. Argument cannot be null.
Parameter name: source
Josh
________________________________________
From: monodroid-bounces at lists.ximian.com<mailto:monodroid-bounces at lists.ximian.com> [monodroid-bounces at lists.ximian.com<mailto:monodroid-bounces at lists.ximian.com>] on behalf of Jonathan Pryor [jonp at xamarin.com<mailto:jonp at xamarin.com>]
Sent: Monday, December 05, 2011 1:45 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] 4.0 crashing previously working source.
On Dec 5, 2011, at 2:44 PM, Josh Handel wrote:
> I just upgraded to 4.0 and now a previously working project won't startup on the emulator/debugger. The only error I get is
>
> Internal error. Argument cannot be null.
> Parameter name: source
>
> this happens after "Installing assemblies"
Please Clean and rebuild your project first.
If you're using MonoDevelop, please try using the recently released MonoDevelop 2.8.4.1.
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com<mailto:Monodroid at lists.ximian.com>
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com<mailto:Monodroid at lists.ximian.com>
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111205/ada54fbc/attachment-0001.html
More information about the Monodroid
mailing list