Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues not reported on Android - Error reading envelope #1104

Closed
5 of 11 tasks
martinriviere opened this issue Oct 1, 2020 · 19 comments
Closed
5 of 11 tasks

Issues not reported on Android - Error reading envelope #1104

martinriviere opened this issue Oct 1, 2020 · 19 comments

Comments

@martinriviere
Copy link

martinriviere commented Oct 1, 2020

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 1.8.2

react-native version: 0.62.2

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

Configuration:

Sentry.init({
  dsn:
    'https://8c898bffadee496387c56f96dccd8595@o455549.ingest.sentry.io/5447240',
  debug: true,
})

I have following issue:

Issues are reported on iOS, but I can't manage to make it work on Android on both debug and release builds.

Steps to reproduce:

Actual result:

Nothing is reported on Android while it works as expected on iOS. Sentry.nativeCrash() doesn't crash the app on Android while it does on iOS.
In AS, Logcat shows 'Error reading envelope' when I trigger the errors.

Expected result:

Issues should be reported on Android.

@jennmueng
Copy link
Member

@martinriviere Can I see the full Logcat errors, and also the JS console logs outputted by debug:true? Thanks!

@martinriviere
Copy link
Author

martinriviere commented Oct 5, 2020

@martinriviere Can I see the full Logcat errors, and also the JS console logs outputted by debug:true? Thanks!

@jennmueng thanks for your reply!
Here is my full Logcat errors filtered on "sentry":

2020-10-05 10:12:55.892 16015-16015/com.medics.bippernative D/Sentry: Auto-init: false
2020-10-05 10:12:55.892 16015-16015/com.medics.bippernative I/Sentry: Retrieving auto-init from AndroidManifest.xml
2020-10-05 10:13:02.798 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: ReactNativeErrorHandlers
2020-10-05 10:13:02.799 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: Release
2020-10-05 10:13:02.799 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: InboundFilters
2020-10-05 10:13:02.799 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: FunctionToString
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: Breadcrumbs
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: LinkedErrors
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: UserAgent
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: DebugSymbolicator
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: RewriteFrames
2020-10-05 10:13:02.801 16015-16092/com.medics.bippernative I/ReactNativeJS: Sentry Logger [Log]: Integration installed: DeviceContext
2020-10-05 10:13:02.929 16015-16093/com.medics.bippernative I/react-native-sentry: Starting with DSN: 'https://8c898bffadee496387c56f96dccd8595@o455549.ingest.sentry.io/5447240'
2020-10-05 10:13:02.932 16015-16093/com.medics.bippernative I/react-native-sentry: Native Integrations '[io.sentry.core.UncaughtExceptionHandlerIntegration@dbe8ef7, io.sentry.core.ShutdownHookIntegration@3bc5164, io.sentry.core.SendCachedEventFireAndForgetIntegration@f534fcd, io.sentry.core.SendCachedEventFireAndForgetIntegration@e57a082, io.sentry.android.core.NdkIntegration@4c32393, io.sentry.android.core.EnvelopeFileObserverIntegration$OutboxEnvelopeFileObserverIntegration@29f1fd0, io.sentry.core.SendCachedEventFireAndForgetIntegration@4521bc9, io.sentry.android.core.AnrIntegration@1e342ce, io.sentry.android.core.AppLifecycleIntegration@57265ef, io.sentry.android.core.ActivityBreadcrumbsIntegration@29e68fc, io.sentry.android.core.AppComponentsBreadcrumbsIntegration@57ab85, io.sentry.android.core.SystemEventsBreadcrumbsIntegration@974bdda, io.sentry.android.core.TempSensorBreadcrumbsIntegration@929720b, io.sentry.android.core.PhoneStateBreadcrumbsIntegration@6e718e8]'
2020-10-05 10:13:02.932 16015-16093/com.medics.bippernative I/Sentry: Initializing SDK with DSN: 'https://8c898bffadee496387c56f96dccd8595@o455549.ingest.sentry.io/5447240'
2020-10-05 10:13:02.945 16015-16093/com.medics.bippernative I/Sentry: GlobalHubMode: 'true'
2020-10-05 10:13:02.946 16015-16104/com.medics.bippernative I/Sentry: sentry-debug-meta.properties file was not found.
2020-10-05 10:13:02.949 16015-16104/com.medics.bippernative D/Sentry: SU doesn't exist.
    java.io.IOException: Cannot run program "/system/xbin/which": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
        at java.lang.Runtime.exec(Runtime.java:695)
        at java.lang.Runtime.exec(Runtime.java:560)
        at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135)
        at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90)
        at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:114)
        at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:102)
        at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
        at java.lang.ProcessImpl.start(ProcessImpl.java:132)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at java.lang.Runtime.exec(Runtime.java:695) 
        at java.lang.Runtime.exec(Runtime.java:560) 
        at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135) 
        at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90) 
        at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:114) 
        at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:102) 
        at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:764) 
2020-10-05 10:13:02.973 16015-16093/com.medics.bippernative D/Sentry: UncaughtExceptionHandlerIntegration enabled: true
2020-10-05 10:13:02.973 16015-16093/com.medics.bippernative D/Sentry: default UncaughtExceptionHandler class='com.android.internal.os.RuntimeInit$KillApplicationHandler'
2020-10-05 10:13:02.973 16015-16093/com.medics.bippernative D/Sentry: UncaughtExceptionHandlerIntegration installed.
2020-10-05 10:13:02.976 16015-16093/com.medics.bippernative D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-05 10:13:02.978 16015-16093/com.medics.bippernative D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Started processing cached files from /data/user/0/com.medics.bippernative/cache/sentry
2020-10-05 10:13:02.978 16015-16093/com.medics.bippernative D/Sentry: NdkIntegration enabled: true
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Processing dir. /data/user/0/com.medics.bippernative/cache/sentry
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Processing 0 items from cache dir /data/user/0/com.medics.bippernative/cache/sentry
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: File /data/user/0/com.medics.bippernative/cache/sentry/outbox is not a File.
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: File /data/user/0/com.medics.bippernative/cache/sentry/sessions is not a File.
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Finished processing cached files from /data/user/0/com.medics.bippernative/cache/sentry
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Started processing cached files from /data/user/0/com.medics.bippernative/cache/sentry/sessions
2020-10-05 10:13:02.978 16015-16093/com.medics.bippernative I/sentry-native: using database path "/data/data/com.medics.bippernative/cache/sentry/.sentry-native"
2020-10-05 10:13:02.978 16015-16106/com.medics.bippernative D/Sentry: Processing dir. /data/user/0/com.medics.bippernative/cache/sentry/sessions
2020-10-05 10:13:02.979 16015-16093/com.medics.bippernative D/sentry-native: starting backend
2020-10-05 10:13:02.979 16015-16106/com.medics.bippernative D/Sentry: Processing 0 items from cache dir /data/user/0/com.medics.bippernative/cache/sentry/sessions
2020-10-05 10:13:02.979 16015-16106/com.medics.bippernative D/Sentry: Finished processing cached files from /data/user/0/com.medics.bippernative/cache/sentry/sessions
2020-10-05 10:13:02.979 16015-16093/com.medics.bippernative D/Sentry: NdkIntegration installed.
2020-10-05 10:13:02.979 16015-16093/com.medics.bippernative D/Sentry: Registering EnvelopeFileObserverIntegration for path: /data/user/0/com.medics.bippernative/cache/sentry/outbox
2020-10-05 10:13:02.980 16015-16093/com.medics.bippernative D/Sentry: EnvelopeFileObserverIntegration installed.
2020-10-05 10:13:02.980 16015-16093/com.medics.bippernative D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-05 10:13:02.980 16015-16093/com.medics.bippernative D/Sentry: AnrIntegration enabled: true
2020-10-05 10:13:02.980 16015-16093/com.medics.bippernative D/Sentry: ANR timeout in milliseconds: 5000
2020-10-05 10:13:02.981 16015-16093/com.medics.bippernative D/Sentry: AnrIntegration installed.
2020-10-05 10:13:02.981 16015-16106/com.medics.bippernative D/Sentry: Started processing cached files from /data/user/0/com.medics.bippernative/cache/sentry/outbox
2020-10-05 10:13:02.981 16015-16106/com.medics.bippernative D/Sentry: Processing dir. /data/user/0/com.medics.bippernative/cache/sentry/outbox
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: enableSessionTracking enabled: false
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: enableAppLifecycleBreadcrumbs enabled: true
2020-10-05 10:13:02.982 16015-16106/com.medics.bippernative D/Sentry: Processing 0 items from cache dir /data/user/0/com.medics.bippernative/cache/sentry/outbox
2020-10-05 10:13:02.982 16015-16106/com.medics.bippernative D/Sentry: Finished processing cached files from /data/user/0/com.medics.bippernative/cache/sentry/outbox
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: ActivityBreadcrumbsIntegration enabled: true
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: ActivityBreadcrumbsIntegration installed.
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: AppComponentsBreadcrumbsIntegration enabled: true
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: AppComponentsBreadcrumbsIntegration installed.
2020-10-05 10:13:02.982 16015-16093/com.medics.bippernative D/Sentry: SystemEventsBreadcrumbsIntegration enabled: true
2020-10-05 10:13:02.987 16015-16093/com.medics.bippernative D/Sentry: SystemEventsBreadcrumbsIntegration installed.
2020-10-05 10:13:02.987 16015-16093/com.medics.bippernative D/Sentry: enableSystemEventsBreadcrumbs enabled: true
2020-10-05 10:13:02.987 16015-16015/com.medics.bippernative D/Sentry: AppLifecycleIntegration installed.
2020-10-05 10:13:02.990 16015-16093/com.medics.bippernative D/Sentry: TempSensorBreadcrumbsIntegration installed.
2020-10-05 10:13:02.990 16015-16093/com.medics.bippernative D/Sentry: enableSystemEventBreadcrumbs enabled: true
2020-10-05 10:15:49.137 16015-16092/com.medics.bippernative E/ReactNativeJS: Error: Sentry error
2020-10-05 10:15:49.619 16015-16093/com.medics.bippernative I/react-native-sentry: Error reading envelope

The "Sentry error" (secont to last line) is the test error I throw in JS when pressing a button.

Here is my JS console logs:

[Mon Oct 05 2020 10:13:04.100]  LOG      Sentry Logger [Log]: Integration installed: ReactNativeErrorHandlers
[Mon Oct 05 2020 10:13:04.101]  LOG      Sentry Logger [Log]: Integration installed: Release
[Mon Oct 05 2020 10:13:04.102]  LOG      Sentry Logger [Log]: Integration installed: InboundFilters
[Mon Oct 05 2020 10:13:04.103]  LOG      Sentry Logger [Log]: Integration installed: FunctionToString
[Mon Oct 05 2020 10:13:04.104]  LOG      Sentry Logger [Log]: Integration installed: Breadcrumbs
[Mon Oct 05 2020 10:13:04.106]  LOG      Sentry Logger [Log]: Integration installed: LinkedErrors
[Mon Oct 05 2020 10:13:04.108]  LOG      Sentry Logger [Log]: Integration installed: UserAgent
[Mon Oct 05 2020 10:13:04.109]  LOG      Sentry Logger [Log]: Integration installed: DebugSymbolicator
[Mon Oct 05 2020 10:13:04.112]  LOG      Sentry Logger [Log]: Integration installed: RewriteFrames
[Mon Oct 05 2020 10:13:04.113]  LOG      Sentry Logger [Log]: Integration installed: DeviceContext
[Mon Oct 05 2020 10:13:04.114]  LOG      Running "Bipper" with {"rootTag":1}

Thanks for your help!

@jlmcdonnell
Copy link

Is there any update on this? It is reproducible on the Pixel 4/a, Android 11

@markgibaud
Copy link

Yes I am also getting this, I have the same RN version and Sentry version as OP.

Further down the log I also get an SSL error?

2020-10-07 10:33:42.158 12902-13143/com.hy.app I/react-native-sentry: Starting with DSN: 'https://xxx@xxx.ingest.sentry.io/5454137'
2020-10-07 10:33:42.161 12902-13143/com.hy.app I/react-native-sentry: Native Integrations '[io.sentry.core.UncaughtExceptionHandlerIntegration@b2bcd59, io.sentry.core.ShutdownHookIntegration@60dbd1e, io.sentry.core.SendCachedEventFireAndForgetIntegration@6acd9ff, io.sentry.core.SendCachedEventFireAndForgetIntegration@c3eb3cc, io.sentry.android.core.NdkIntegration@d42e615, io.sentry.android.core.EnvelopeFileObserverIntegration$OutboxEnvelopeFileObserverIntegration@d48d2a, io.sentry.core.SendCachedEventFireAndForgetIntegration@5ff171b, io.sentry.android.core.AnrIntegration@8940b8, io.sentry.android.core.AppLifecycleIntegration@278ce91, io.sentry.android.core.ActivityBreadcrumbsIntegration@18651f6, io.sentry.android.core.AppComponentsBreadcrumbsIntegration@d6e09f7, io.sentry.android.core.SystemEventsBreadcrumbsIntegration@aedb064, io.sentry.android.core.TempSensorBreadcrumbsIntegration@44ac2cd, io.sentry.android.core.PhoneStateBreadcrumbsIntegration@2bd9782]'
2020-10-07 10:33:42.166 12902-13143/com.hy.app I/Sentry: Initializing SDK with DSN: 'https://xxx@xxx.ingest.sentry.io/5454137'
2020-10-07 10:33:42.189 12902-13181/com.hy.app D/Sentry: SU doesn't exist.
    java.io.IOException: Cannot run program "/system/xbin/which": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
        at java.lang.Runtime.exec(Runtime.java:695)
        at java.lang.Runtime.exec(Runtime.java:560)
        at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135)
        at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90)
        at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:114)
        at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:102)
        at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
        at java.lang.ProcessImpl.start(ProcessImpl.java:132)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at java.lang.Runtime.exec(Runtime.java:695) 
        at java.lang.Runtime.exec(Runtime.java:560) 
        at io.sentry.android.core.util.RootChecker.checkSUExist(RootChecker.java:135) 
        at io.sentry.android.core.util.RootChecker.isDeviceRooted(RootChecker.java:90) 
        at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(DefaultAndroidEventProcessor.java:114) 
        at io.sentry.android.core.DefaultAndroidEventProcessor.lambda$new$0$DefaultAndroidEventProcessor(DefaultAndroidEventProcessor.java:102) 
        at io.sentry.android.core.-$$Lambda$DefaultAndroidEventProcessor$ZsPdDrAaOs30gov_5eSNgy_KYe8.call(Unknown Source:2) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:764) 
2020-10-07 10:33:42.196 12902-13143/com.hy.app I/Sentry: GlobalHubMode: 'true'
2020-10-07 10:33:42.240 12902-13143/com.hy.app D/Sentry: UncaughtExceptionHandlerIntegration enabled: true
2020-10-07 10:33:42.241 12902-13143/com.hy.app D/Sentry: default UncaughtExceptionHandler class='com.android.internal.os.RuntimeInit$KillApplicationHandler'
2020-10-07 10:33:42.241 12902-13143/com.hy.app D/Sentry: UncaughtExceptionHandlerIntegration installed.
2020-10-07 10:33:42.247 12902-13143/com.hy.app D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-07 10:33:42.248 12902-13183/com.hy.app D/Sentry: Started processing cached files from /data/user/0/com.hy.app/cache/sentry
2020-10-07 10:33:42.249 12902-13183/com.hy.app D/Sentry: Processing dir. /data/user/0/com.hy.app/cache/sentry
2020-10-07 10:33:42.250 12902-13143/com.hy.app D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-07 10:33:42.250 12902-13183/com.hy.app D/Sentry: Processing 0 items from cache dir /data/user/0/com.hy.app/cache/sentry
2020-10-07 10:33:42.251 12902-13143/com.hy.app D/Sentry: NdkIntegration enabled: true
2020-10-07 10:33:42.251 12902-13183/com.hy.app D/Sentry: File /data/user/0/com.hy.app/cache/sentry/outbox is not a File.
2020-10-07 10:33:42.251 12902-13183/com.hy.app D/Sentry: File /data/user/0/com.hy.app/cache/sentry/sessions is not a File.
2020-10-07 10:33:42.253 12902-13183/com.hy.app D/Sentry: File /data/user/0/com.hy.app/cache/sentry/.sentry-native is not a File.
2020-10-07 10:33:42.254 12902-13183/com.hy.app D/Sentry: Finished processing cached files from /data/user/0/com.hy.app/cache/sentry
2020-10-07 10:33:42.256 12902-13183/com.hy.app D/Sentry: Started processing cached files from /data/user/0/com.hy.app/cache/sentry/sessions
2020-10-07 10:33:42.257 12902-13183/com.hy.app D/Sentry: Processing dir. /data/user/0/com.hy.app/cache/sentry/sessions
2020-10-07 10:33:42.259 12902-13183/com.hy.app D/Sentry: Processing 0 items from cache dir /data/user/0/com.hy.app/cache/sentry/sessions
2020-10-07 10:33:42.259 12902-13143/com.hy.app I/sentry-native: using database path "/data/data/com.hy.app/cache/sentry/.sentry-native"
2020-10-07 10:33:42.260 12902-13183/com.hy.app D/Sentry: Finished processing cached files from /data/user/0/com.hy.app/cache/sentry/sessions
2020-10-07 10:33:42.260 12902-13143/com.hy.app D/sentry-native: starting backend
2020-10-07 10:33:42.263 12902-13143/com.hy.app D/Sentry: NdkIntegration installed.
2020-10-07 10:33:42.263 12902-13143/com.hy.app D/Sentry: Registering EnvelopeFileObserverIntegration for path: /data/user/0/com.hy.app/cache/sentry/outbox
2020-10-07 10:33:42.266 12902-13143/com.hy.app D/Sentry: EnvelopeFileObserverIntegration installed.
2020-10-07 10:33:42.267 12902-13183/com.hy.app D/Sentry: Started processing cached files from /data/user/0/com.hy.app/cache/sentry/outbox
2020-10-07 10:33:42.268 12902-13183/com.hy.app D/Sentry: Processing dir. /data/user/0/com.hy.app/cache/sentry/outbox
2020-10-07 10:33:42.269 12902-13143/com.hy.app D/Sentry: SendCachedEventFireAndForgetIntegration installed.
2020-10-07 10:33:42.270 12902-13143/com.hy.app D/Sentry: AnrIntegration enabled: true
2020-10-07 10:33:42.270 12902-13143/com.hy.app D/Sentry: ANR timeout in milliseconds: 5000
2020-10-07 10:33:42.274 12902-13143/com.hy.app D/Sentry: AnrIntegration installed.
2020-10-07 10:33:42.274 12902-13183/com.hy.app D/Sentry: Processing 0 items from cache dir /data/user/0/com.hy.app/cache/sentry/outbox
2020-10-07 10:33:42.274 12902-13183/com.hy.app D/Sentry: Finished processing cached files from /data/user/0/com.hy.app/cache/sentry/outbox
2020-10-07 10:33:42.274 12902-13143/com.hy.app D/Sentry: enableSessionTracking enabled: false
2020-10-07 10:33:42.275 12902-13143/com.hy.app D/Sentry: enableAppLifecycleBreadcrumbs enabled: true
2020-10-07 10:33:42.277 12902-13143/com.hy.app D/Sentry: ActivityBreadcrumbsIntegration enabled: true
2020-10-07 10:33:42.278 12902-13143/com.hy.app D/Sentry: ActivityBreadcrumbsIntegration installed.
2020-10-07 10:33:42.279 12902-13143/com.hy.app D/Sentry: AppComponentsBreadcrumbsIntegration enabled: true
2020-10-07 10:33:42.279 12902-13143/com.hy.app D/Sentry: AppComponentsBreadcrumbsIntegration installed.
2020-10-07 10:33:42.280 12902-13143/com.hy.app D/Sentry: SystemEventsBreadcrumbsIntegration enabled: true
2020-10-07 10:33:42.289 12902-13143/com.hy.app D/Sentry: SystemEventsBreadcrumbsIntegration installed.
2020-10-07 10:33:42.290 12902-13143/com.hy.app D/Sentry: enableSystemEventsBreadcrumbs enabled: true
2020-10-07 10:33:42.290 12902-13143/com.hy.app I/Sentry: TYPE_AMBIENT_TEMPERATURE is not available.
2020-10-07 10:33:42.291 12902-13143/com.hy.app D/Sentry: enableSystemEventBreadcrumbs enabled: true
2020-10-07 10:33:42.294 12902-12902/com.hy.app D/Sentry: AppLifecycleIntegration installed.
2020-10-07 10:33:42.321 12902-13143/com.hy.app D/Sentry: PhoneStateBreadcrumbsIntegration installed.
2020-10-07 10:33:44.179 12902-13184/com.hy.app D/Sentry: onEvent fired for EnvelopeFileObserver with event type 8 on path: /data/user/0/com.hy.app/cache/sentry/outbox for file 7fa70f15-5026-4459-9ddb-441b30b50d81.
2020-10-07 10:33:44.242 12902-13184/com.hy.app D/Sentry: Processing Envelope with 1 item(s)
2020-10-07 10:33:44.602 12902-13184/com.hy.app D/Sentry: Error when deserializing UTC timestamp format, it might be millis timestamp format.
    java.lang.IllegalArgumentException: timestamp is not ISO format 1602063222.03
        at io.sentry.core.DateUtils.getDateTime(DateUtils.java:77)
        at io.sentry.core.adapters.DateDeserializerAdapter.deserialize(DateDeserializerAdapter.java:28)
        at io.sentry.core.adapters.DateDeserializerAdapter.deserialize(DateDeserializerAdapter.java:15)
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
        at com.google.gson.TypeAdapter.fromJsonTree(TypeAdapter.java:285)
        at io.sentry.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:127)
        at io.sentry.core.UnknownPropertiesTypeAdapterFactory$UnknownPropertiesTypeAdapter.read(UnknownPropertiesTypeAdapterFactory.java:57)
        at com.google.gson.Gson.fromJson(Gson.java:927)
        at com.google.gson.Gson.fromJson(Gson.java:865)
        at io.sentry.core.GsonSerializer.deserializeEvent(GsonSerializer.java:105)
        at io.sentry.core.EnvelopeSender.processEnvelope(EnvelopeSender.java:121)
        at io.sentry.core.EnvelopeSender.processFile(EnvelopeSender.java:67)
        at io.sentry.core.EnvelopeSender.processEnvelopeFile(EnvelopeSender.java:100)
        at io.sentry.android.core.EnvelopeFileObserver.onEvent(EnvelopeFileObserver.java:58)
        at android.os.FileObserver$ObserverThread.onEvent(FileObserver.java:123)
        at android.os.FileObserver$ObserverThread.observe(Native Method)
        at android.os.FileObserver$ObserverThread.run(FileObserver.java:86)
2020-10-07 10:33:44.665 12902-13184/com.hy.app D/Sentry: Capturing event: 6f9452d78b7c40d480744b4cc2efd48b
2020-10-07 10:33:44.707 12902-13184/com.hy.app I/Sentry: Not possible to read external files directory
2020-10-07 10:33:44.740 12902-13184/com.hy.app I/Sentry: Session is null on scope.withSession
2020-10-07 10:33:44.760 12902-13184/com.hy.app D/Sentry: Captured SentryEvent is already cached
2020-10-07 10:33:44.779 12902-13184/com.hy.app D/Sentry: Item 1 is being captured.
2020-10-07 10:33:50.045 12902-13207/com.hy.app E/Sentry: Event submission failed: 6f9452d78b7c40d480744b4cc2efd48b
    java.lang.IllegalStateException: Sending the event failed.
        at io.sentry.core.transport.AsyncConnection$EventSender.flush(AsyncConnection.java:310)
        at io.sentry.core.transport.AsyncConnection$EventSender.run(AsyncConnection.java:262)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.net.SocketTimeoutException: SSL handshake timed out
        at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
        at com.android.org.conscrypt.NativeSsl.doHandshake(NativeSsl.java:383)
        at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:231)
        at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:1483)
        at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:1427)
        at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:1371)
        at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:219)
        at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:142)
        at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:104)
        at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:392)
        at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:325)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:488)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)
        at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
        at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:26)
        at io.sentry.core.transport.HttpTransport.createConnection(HttpTransport.java:271)
        at io.sentry.core.transport.HttpTransport.send(HttpTransport.java:162)
        at io.sentry.core.transport.AsyncConnection$EventSender.flush(AsyncConnection.java:291)
        at io.sentry.core.transport.AsyncConnection$EventSender.run(AsyncConnection.java:262) 
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at java.lang.Thread.run(Thread.java:764) 
2020-10-07 10:33:50.046 12902-13207/com.hy.app D/Sentry: Marking event submission result: false

@jennmueng
Copy link
Member

@jlmcdonnell It could be related to this issue with Pixel 4/4a on Android 11: getsentry/sentry-java#904

@martinriviere Are you also on Android 11 with Pixel 4/4a, it could be the issue above.

@markgibaud
Hmm this on initial look, seems unrelated and looks to be an SSL issue as it says in the logs, although the timestamp error log does look unusual, I will look into that.

@martinriviere
Copy link
Author

@jennmueng I'm not, and I get the same issue on the simulator Nexus 5X running Android 9, and on my real device, Xiaomi Mi Mix 2S also running Android 9.
I haven't tried on other devices yet...

@allenmanning
Copy link

I'm getting these crashes for all Pixels in prod trying to use my App. I'm not sure if the fixes here have been propagated in.

getsentry/sentry-java#904

I'm needing to filter out Pixel handsets for now and I'm going to attempt the work-arounds described in the sentry-java issue.

@jennmueng
Copy link
Member

@allenmanning Are you using version 2.0.0? The fixes should be included there. Let me know if this issue is fixed, so I can close this issue.

@pranavbabu
Copy link

@allenmanning Are you using version 2.0.0? The fixes should be included there. Let me know if this issue is fixed, so I can close this issue.

Tested on 2.0.0 - still valid

@ph98
Copy link

ph98 commented Feb 19, 2021

no update on this? still I can't send anything with v 2.2.1
no logs in console, just nothing happens.

@jennmueng
Copy link
Member

no update on this? still I can't send anything with v 2.2.1
no logs in console, just nothing happens.

Can you pass debug: true to Sentry.init and show me the logs? Also if this is on Android please also paste the logcat ones

@ph98
Copy link

ph98 commented Feb 20, 2021

Hi and Thanks for your fast reply!
sentry-debug-meta.properties file was not found.
the only logcat that is related to sentry was this line.
and there is no log in js console.

@jennmueng
Copy link
Member

@ph98 Hmm are you correctly initializing the Sentry SDK if no logs show? They should always show if the SDK is being correctly initialized. Make sure everything is correct following our documentation.

@gekitz
Copy link

gekitz commented Jul 6, 2021

I don't get any issues reported on Android too. Looks like a problem on Android 10 only, as on Android 8 it works for me.

On Android 10 I get a SSL error using 2.6.0.

2021-07-06 13:26:10.495 22472-22687/at.meisterwork.kiosk.vendor E/Sentry: Envelope submission failed
    java.lang.IllegalStateException: Sending the event failed.
        at io.sentry.transport.AsyncHttpTransport$EnvelopeSender.flush(AsyncHttpTransport.java:229)
        at io.sentry.transport.AsyncHttpTransport$EnvelopeSender.run(AsyncHttpTransport.java:183)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: AndroidOpenSSL, class: com.android.org.conscrypt.DefaultSSLContextImpl)

@CarsonRedeye
Copy link

CarsonRedeye commented Jul 29, 2021

This or something similar seems to be fixed on 5.0.1. Was happening on 2.3.2 of native android sdk on OnePlus 7 Pro

@jennmueng
Copy link
Member

cc @marandaneto

@marandaneto
Copy link
Contributor

I don't get any issues reported on Android too. Looks like a problem on Android 10 only, as on Android 8 it works for me.

On Android 10 I get a SSL error using 2.6.0.

2021-07-06 13:26:10.495 22472-22687/at.meisterwork.kiosk.vendor E/Sentry: Envelope submission failed
    java.lang.IllegalStateException: Sending the event failed.
        at io.sentry.transport.AsyncHttpTransport$EnvelopeSender.flush(AsyncHttpTransport.java:229)
        at io.sentry.transport.AsyncHttpTransport$EnvelopeSender.run(AsyncHttpTransport.java:183)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: AndroidOpenSSL, class: com.android.org.conscrypt.DefaultSSLContextImpl)

are you using sentry.io or on-premise? also, what's the version of your Java SDK? please run java -version and copy/paste the logs.
Could be something like getsentry/sentry-java#1590 and getsentry/sentry-java#1000 , if so, you have to upgrade your Java SDK and recompile your App.

@paulo-rodrigues-pontomais

as naive as it seems but in my case it was my emulator wifi that was not connected!
using v2.6.2

@marandaneto
Copy link
Contributor

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. There's a large chance that this issue has been solved since.
Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests