Forum Xamarin.Android

Tasks and Android 5.1 - null exceptions

ManuelCostaManuelCosta PTMember ✭✭
edited September 2015 in Xamarin.Android

Hi guys

i've been experiencing a some very strange errors with task with 5.1 OS.

So far we were able to identify two different situations

1 - Task.Delay throwing a null exception in both simulator and device. After changing from stable ( 5.1.5.3) channel to beta (5.1.6.5) it stopped happening and and we changed it back to stable we were not able to reproduce it anymore.
2 - We are using Parse SDK 1.5.5 like

var query = ParseObject.GetQuery ("####");
var task = query.FindAsync (ct); 

...

await Task.WhenAny (task, Task.Delay (timeout, ctFinished), cancelTask);

and have always this exception on the device, but not in the simulator.

[0] {System.NullReferenceException: Object reference not set to an instance of an object at Parse.PlatformHooks+HttpRequestAndroid+<>c__DisplayClass17.b__f (System.Threading.Tasks.Task1 t) [0x00093] in <filename unknown>:0 at System.Threading.Tasks.ContinuationResultTaskFromResultTask2[System.Net.WebResponse,System.Threading.Tasks.Task1[System.Tuple2[System.Net.HttpStatusCode,System.String]]].InnerInvoke () [0x00027] in :0 at System.Threading.Tasks.Task.Execute () [0x00016] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 at Parse.Internal.InternalExtensions+<>c__DisplayClass71[System.Tuple2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary2[System.String,System.Object]]].<OnSuccess>b__6 (System.Threading.Tasks.Task t) [0x00033] in <filename unknown>:0 at System.Threading.Tasks.ContinuationResultTaskFromTask1[System.Threading.Tasks.Task1[System.Tuple2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary2[System.String,System.Object]]]].InnerInvoke () [0x00027] in <filename unknown>:0 at System.Threading.Tasks.Task.Execute () [0x00016] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 at Parse.Internal.InternalExtensions+<>c__DisplayClass71[System.Collections.Generic.IEnumerable1[Parse.ParseObject]].<OnSuccess>b__6 (System.Threading.Tasks.Task t) [0x00033] in <filename unknown>:0 at System.Threading.Tasks.ContinuationResultTaskFromTask1[System.Threading.Tasks.Task1[System.Collections.Generic.IEnumerable1[Parse.ParseObject]]].InnerInvoke () [0x00027] in :0 at System.Threading.Tasks.Task.Execute () [0x00016] in :0 } System.NullReferenceException

Ideas?

tkx
Manuel

Posts

Sign In or Register to comment.