Forum Xamarin.Android

Strange random exceptions on Nexus 10

LauraviatrixLauraviatrix USMember ✭✭
edited July 2013 in Xamarin.Android

Hi guys,

We're having an issue with the Nexus 10, our app runs fine on many other devices, but when installed on the N10, we're experiencing random exceptions that make no sense...

The one that comes up the most frequently is System.NotSupportedException when converting lists/arrays with .ToList() or .ToArray().

Examples of stack traces:

When sorting a list:

System.NotSupportedException: Operation is not supported.
   at System.Array.System.Collections.IList.Add (System.Object value) [0x00000] in <filename unknown>:0
   at System.Linq.Enumerable.ToArray[Runway] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
   at System.Linq.QuickSort`1[Fds.InfiniteRunway.Runway]..ctor (IEnumerable`1 source, System.Linq.SortContext`1 context) [0x00000] in <filename unknown>:0
   at System.Linq.QuickSort`1+<Sort>c__Iterator39[Fds.InfiniteRunway.Runway].MoveNext () [0x00000] in <filename unknown>:0
   at System.Linq.Enumerable.First[Runway] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
   at System.Linq.Enumerable.FirstOrDefault[Runway] (IEnumerable`1 source) [0x00000] in <filename unknown>:0

When converting with ToList():

System.NotSupportedException: Operation is not supported.
  at System.Array.System.Collections.IList.Add (System.Object value) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Fds.InfiniteRunway.WeightPointEntry]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.ToList[WeightPointEntry] (IEnumerable`1 source) [0x00000] in <filename unknown>:0

When calling AddRange():

System.NotSupportedException: Operation is not supported.
  at System.Array.System.Collections.IList.Add (System.Object value) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Fds.InfiniteRunway.AreaShape].AddCollection (ICollection`1 collection) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[Fds.InfiniteRunway.AreaShape].AddRange (IEnumerable`1 collection) [0x00000] in <filename unknown>:0

The stacks all point to Add being called on System.Array.System.Collections.IList.Add() which the MSDN doc says should always throw this exception...

I'm not sure what to do here... I don't have a clear repro, it happens randomly, other devices run this app just fine, it sometimes happen at the beginning of a session while we don't have much in memory yet...

The N10 is at the latest official version, the app is built against API Level 14.

Any help or hints would be appreciated,

Thanks!

Matt

Posts

  • DominiqueLouisDominiqueLouis GBMember Xamurai

    Hi Matt,
    No one on the team has seen this and no one else has reported it. As you say it makes no sense. Might be a bit tough to track down without a repro.

    D.

  • LauraviatrixLauraviatrix USMember ✭✭

    I'll try to find an easier repro... it only happens on the Nexus 10 though...

Sign In or Register to comment.