Some kind of security exception that I cannot trace to my own code

I was hoping someone would recognize this stack trace, as I cannot trace the error to my own code so I don't know how I can solve it:

Xamarin Exception Stack:
System.ArgumentNullException: Value cannot be null.
Parameter name: obj
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_monitor_enter_v4_internal(object,intptr)
  at Mono.Net.Security.MobileAuthenticatedStream.get_IsAuthenticated () <0xbfb769b8 + 0x00043> in <09a58032fad04aa88077f64ffdcf83b6>:0
  at Mono.Net.Security.MobileAuthenticatedStream.get_CanRead () <0xbfb76c10 + 0x00017> in <09a58032fad04aa88077f64ffdcf83b6>:0
  at System.Net.Security.AuthenticatedStream..ctor (System.IO.Stream innerStream, System.Boolean leaveInnerStreamOpen) <0xbfc35170 + 0x0004b> in <09a58032fad04aa88077f64ffdcf83b6>:0
  at Mono.Net.Security.MobileAuthenticatedStream..ctor (System.IO.Stream innerStream, System.Boolean leaveInnerStreamOpen, System.Net.Security.SslStream owner, Mono.Security.Interface.MonoTlsSettings settings, Mono.Security.Interface.MonoTlsProvider provider) <0xbfb75568 + 0x00067> in <09a58032fad04aa88077f64ffdcf83b6>:0
  at Mono.Btls.MonoBtlsStream..ctor (System.IO.Stream innerStream, System.Boolean leaveInnerStreamOpen, System.Net.Security.SslStream owner, Mono.Security.Interface.MonoTlsSettings settings, Mono.Security.Interface.MonoTlsProvider provider) <0xbfb7f9b4 + 0x0001b> in <09a58032fad04aa88077f64ffdcf83b6>:0
  at (wrapper remoting-invoke-with-check) Mono.Btls.MonoBtlsStream..ctor(System.IO.Stream,bool,System.Net.Security.SslStream,Mono.Security.Interface.MonoTlsSettings,Mono.Security.Interface.MonoTlsProvider)

Thread 2:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.app.ActivityThread.main(ActivityThread.java:6938)
4   java.lang.reflect.Method.invoke(Method.java:-2)
5   com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
6   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Thread 8834:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:178)
2   java.lang.Daemons$Daemon.run(Daemons.java:103)
3   java.lang.Thread.run(Thread.java:764)

Thread 8835:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Object.wait(Object.java:422)
2   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
3   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
4   java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:232)
5   java.lang.Daemons$Daemon.run(Daemons.java:103)
6   java.lang.Thread.run(Thread.java:764)

Thread 8836:
0   java.lang.Thread.sleep(Thread.java:-2)
1   java.lang.Thread.sleep(Thread.java:373)
2   java.lang.Thread.sleep(Thread.java:314)
3   java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:342)
4   java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:364)
5   java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:281)
6   java.lang.Daemons$Daemon.run(Daemons.java:103)
7   java.lang.Thread.run(Thread.java:764)

Thread 8844:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Thread.parkFor$(Thread.java:2135)
2   sun.misc.Unsafe.park(Unsafe.java:358)
3   java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
4   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2101)
5   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:1168)
6   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:1147)
7   java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1086)
8   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
9   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
10  java.lang.Thread.run(Thread.java:764)

Thread 8846:
0   java.lang.Object.wait(Object.java:-2)
1   java.lang.Thread.parkFor$(Thread.java:2135)
2   sun.misc.Unsafe.park(Unsafe.java:358)
3   java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
4   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059)
5   java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
6   java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1087)
7   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
8   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
9   java.lang.Thread.run(Thread.java:764)

Thread 8851:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 8853:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Thread 8854:
0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
1   android.os.MessageQueue.next(MessageQueue.java:325)
2   android.os.Looper.loop(Looper.java:142)
3   android.os.HandlerThread.run(HandlerThread.java:65)

Answers

  • DipakPatilDipakPatil Member ✭✭

    It's because you are trying to pass a variable which has null value.
    can you share code?

  • MLyrstadMLyrstad Member ✭✭

    I am afraid it's not quite that simple. I know very well what a null reference exception is. The problem here is that it does not seem to be happening in our code.

  • DipakPatilDipakPatil Member ✭✭

    ok. best wishes.

  • MLyrstadMLyrstad Member ✭✭

    This is becoming a recurring problem and I really need help. I have no idea how I can debug this since there's no sign of our own code anywhere. It clearly has something to do with security code.

    Package: net.poweroffice.PowerId
    Version Code: 101009901
    Version Name: 1.1.9.1
    Android: 9
    Android Build: PPR1.180610.011
    Manufacturer: samsung
    Model: SM-G950F
    CrashReporter Key: 91c60b2c-3bf4-498a-a299-17f88e06419b
    Date: undefined
    
    Xamarin Exception Stack:
    System.NullReferenceException: Object reference not set to an instance of an object
      at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.get_Provider()
    
    Thread 2:
    0   android.view.ThreadedRenderer.nSetStopped(ThreadedRenderer.java:-2)
    1   android.view.ThreadedRenderer.setStopped(ThreadedRenderer.java:563)
    2   android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3732)
    3   android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3006)
    4   android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1865)
    5   android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8488)
    6   android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
    7   android.view.Choreographer.doCallbacks(Choreographer.java:761)
    8   android.view.Choreographer.doFrame(Choreographer.java:696)
    9   android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
    10  android.os.Handler.handleCallback(Handler.java:873)
    11  android.os.Handler.dispatchMessage(Handler.java:99)
    12  android.os.Looper.loop(Looper.java:214)
    13  android.app.ActivityThread.main(ActivityThread.java:7045)
    14  java.lang.reflect.Method.invoke(Method.java:-2)
    15  com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    16  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
    
    Thread 9138:
    0   java.lang.Object.wait(Object.java:-2)
    1   java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:178)
    2   java.lang.Daemons$Daemon.run(Daemons.java:103)
    3   java.lang.Thread.run(Thread.java:764)
    
    Thread 9139:
    0   java.lang.Object.wait(Object.java:-2)
    1   java.lang.Object.wait(Object.java:422)
    2   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
    3   java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
    4   java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:232)
    5   java.lang.Daemons$Daemon.run(Daemons.java:103)
    6   java.lang.Thread.run(Thread.java:764)
    
    Thread 9140:
    0   java.lang.Thread.sleep(Thread.java:-2)
    1   java.lang.Thread.sleep(Thread.java:373)
    2   java.lang.Thread.sleep(Thread.java:314)
    3   java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:342)
    4   java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:364)
    5   java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:281)
    6   java.lang.Daemons$Daemon.run(Daemons.java:103)
    7   java.lang.Thread.run(Thread.java:764)
    
    Thread 9147:
    0   java.lang.Object.wait(Object.java:-2)
    1   java.lang.Thread.parkFor$(Thread.java:2137)
    2   sun.misc.Unsafe.park(Unsafe.java:358)
    3   java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
    4   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2101)
    5   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:1168)
    6   java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:849)
    7   java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1091)
    8   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
    9   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    10  java.lang.Thread.run(Thread.java:764)
    
    Thread 9149:
    0   java.lang.Object.wait(Object.java:-2)
    1   java.lang.Thread.parkFor$(Thread.java:2137)
    2   sun.misc.Unsafe.park(Unsafe.java:358)
    3   java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
    4   java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059)
    5   java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    6   java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
    7   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
    8   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    9   java.lang.Thread.run(Thread.java:764)
    
    Thread 9153:
    0   dalvik.system.VMStack.getThreadStackTrace(VMStack.java:-2)
    1   java.lang.Thread.getStackTrace(Thread.java:1538)
    2   java.lang.Thread.getAllStackTraces(Thread.java:1588)
    3   com.microsoft.appcenter.crashes.Crashes.saveUncaughtException(Crashes.java:943)
    4   com.microsoft.appcenter.crashes.WrapperSdkExceptionManager.saveWrapperException(WrapperSdkExceptionManager.java:50)
    
    Thread 9155:
    0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
    1   android.os.MessageQueue.next(MessageQueue.java:326)
    2   android.os.Looper.loop(Looper.java:181)
    3   android.os.HandlerThread.run(HandlerThread.java:65)
    
    Thread 9157:
    0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
    1   android.os.MessageQueue.next(MessageQueue.java:326)
    2   android.os.Looper.loop(Looper.java:181)
    3   android.os.HandlerThread.run(HandlerThread.java:65)
    
    Thread 9158:
    0   android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
    1   android.os.MessageQueue.next(MessageQueue.java:326)
    2   android.os.Looper.loop(Looper.java:181)
    3   android.os.HandlerThread.run(HandlerThread.java:65)
    
Sign In or Register to comment.