question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A proguard mapping file does not contain line info.

See original GitHub issue

I am using io.sentry:sentry-android-gradle-plugin:1.7.22 Sentry Gradle plugin and r8 code shrinker. Proguard has -keepattributes LineNumberTable,SourceFile.

During assembleRelease mappings are sent correctly:

compressing mappings
> uploading mappings
> Uploaded a total of 1 new mapping files
Newly uploaded debug symbols:
  ae8513b1-0c13-569e-8f19-1107bcb82010

When exception occurs, on Sentry I see that there was 1 error encountered while processing event:

A proguard mapping file does not contain line info. Mapping Uuid ae8513b1-0c13-569e-8f19-1107bcb82010

And stack trace is not retraced. Can you give me hints what can be wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
filipkowiczcommented, May 27, 2019

@realdadfish I see you mentioned bugs related to gradle plugin. Currently I’m doing it by hand (own gradle task) with sentry-cli so it’s generated correctly and send to backend. sentry as far as i understand is able to match mapping file with log - by uuid but it cant retrace it correctly because of R8

0reactions
bruno-garciacommented, Oct 9, 2019

As @ninniuz mentioned it worked against sentry.io it might be that it’s an issue with sentry 9.1.1. It’d hard to tell but since we can’t reproduce in the current version of bits I’d suggest upgrading Sentry first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ProGuard doesn't generate mapping file - Stack Overflow
In app/build/outputs folder, I only have. Folder. Then I read somewhere about proguard-rules.pro file. It just had some comments and no code.
Read more >
Android debug files correctly uploaded but issues do not show ...
Usually the problems are: Not uploading proguard mapping files. Not using the plugin so the debug_meta isn't in the event. Could you confirm...
Read more >
ProGuard Manual: ReTrace - Guardsquare
A mapping file contains the original names and the obfuscated names of classes, fields, and methods. ProGuard can write out such a file...
Read more >
Error uploading proguard mapping file - Unity Forum
I'm working on an android game using Unity 2019.4.25f1. I built the app bundle with minify option set to 'Proguard'.
Read more >
Deobfuscate or symbolicate crash stack traces - Google Help
Important: Only ReTrace-compatible mapping files are supported for deobfuscation of apps compiled in Java. This is the same format used by ProGuard or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found