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

Crashes are not reporting in release builds #658

Open
mslalith opened this issue Feb 15, 2024 · 12 comments
Open

Crashes are not reporting in release builds #658

mslalith opened this issue Feb 15, 2024 · 12 comments
Assignees
Labels
bug Something isn't working Platform: Android

Comments

@mslalith
Copy link

Gradle Version

8.6

AGP Version

8.2.2

Code Minifier/Optimizer

Proguard

Version

4.3.0

Sentry SDK Version

7.3.0

Steps to Reproduce

I've integrated Sentry to my project (mslalith/focus_launcher#383). I'm able to see crash reports in devDebug builds but not in devRelease builds

Expected Result

Crashes should properly report in release builds

Actual Result

Crashes are not being reported in release builds

@romtsn
Copy link
Member

romtsn commented Feb 15, 2024

hi, could you enable debug logs and check the logcat output - it should show you what exactly is happening.

        <meta-data android:name="io.sentry.debug" android:value="true" />

@mslalith
Copy link
Author

Nothing is shown when I tried enabling debug mode from SentryPluginExtension. Lemme check with manifest override

@mslalith
Copy link
Author

Looks to me that sentry files are also obfuscated.

SCR-20240216-gyfk

BTW, debug logs are not being shown when enabling from SentryPluginExtension but working if added from manifest.

@romtsn
Copy link
Member

romtsn commented Feb 16, 2024

BTW, debug logs are not being shown when enabling from SentryPluginExtension but working if added from manifest.

Yea, that's because debug in SentryPluginExtension is for the gradle plugin, and to have the sdk debug logs enabled you have to go through manifest.


Few questions to the issue:

  • Are you using self-hosted Sentry or sentry.io?
  • Do you set a proper DSN for your release builds?
  • Are you behind a proxy on your device/emulator?

@mslalith
Copy link
Author

Are you using self-hosted Sentry or sentry.io?

Not self-hosted

Do you set a proper DSN for your release builds?

DSN is proper. I can see it in debug logs

Are you behind a proxy on your device/emulator?

No. I tested on real device as well

I can see crash reports with debug build but not with release

@mslalith
Copy link
Author

@romtsn Somehow today I could see crash reports from emulator (release build) but still no luck when tested on real device

@romtsn
Copy link
Member

romtsn commented Feb 19, 2024

@romtsn Somehow today I could see crash reports from emulator (release build) but still no luck when tested on real device

just to make sure, do you restart the app after it crashes? we upload crash reports on restart (to not block the process from termination for too long) and whenever internet connectivity changes

@mslalith
Copy link
Author

just to make sure, do you restart the app after it crashes? we upload crash reports on restart (to not block the process from termination for too long) and whenever internet connectivity changes

Yes I did

@mslalith
Copy link
Author

@romtsn Found the issue. When DuckDuckGo's App Tracking Protection is enabled, reports are not being sent. For now I disabled this for my launcher. But I feel this should be properly handled (if it is possible)

@romtsn
Copy link
Member

romtsn commented Feb 21, 2024

@romtsn Found the issue. When DuckDuckGo's App Tracking Protection is enabled, reports are not being sent. For now I disabled this for my launcher. But I feel this should be properly handled (if it is possible)

glad you figured it out. I don't think we can handle this, but it definitely deserves to be mentioned on the docs/troubleshooting. I will address that, thanks for the update!

@kahest
Copy link
Member

kahest commented Feb 21, 2024

Troubleshooting entry similar to e.g. https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers would make sense

@markushi
Copy link
Member

markushi commented May 8, 2024

Let's mention our support for using custom proxies via options as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Android
Projects
Status: No status
Status: Todo
Development

No branches or pull requests

4 participants