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.

Some missing Proguard rules?

See original GitHub issue

Describe the bug I get a systematic crash on any build using Proguard when I try to launch a Chucker intent like this for example: context.startActivity(Chuck.getLaunchIntent(context, SCREEN_HTTP))

I don’t have any issue if I don’t use Proguard, so that’s why I guess it may be related to some Proguard rules missing.

Crash logs:

E/AndroidRuntime: FATAL EXCEPTION: ModernAsyncTask #2
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at androidx.i.b.d$3.done(ModernAsyncTask.java:164)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        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: android.database.sqlite.SQLiteException: no such column: tag (code 1 SQLITE_ERROR[1]): , while compiling: SELECT _id, tag, clazz, message, date FROM 'd' ORDER BY date DESC
        at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1229)
        at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:703)
        at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
        at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
        at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
        at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
        at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1865)
        at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1712)
        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1583)
        at e.a.a.f$a.a(DatabaseCompartment.java:641)
        at e.a.a.f.a(DatabaseCompartment.java:437)
        at e.a.a.f.a(DatabaseCompartment.java:53)
        at e.a.a.f$b.a(DatabaseCompartment.java:586)
        at e.a.a.f$b.b(DatabaseCompartment.java:595)
        at com.readystatesoftware.chuck.internal.data.ChuckContentProvider.query(ChuckContentProvider.java:95)
        at android.content.ContentProvider.query(ContentProvider.java:1078)
        at android.content.ContentProvider.query(ContentProvider.java:1170)
        at android.content.ContentProvider$Transport.query(ContentProvider.java:241)
        at android.content.ContentResolver.query(ContentResolver.java:808)
        at android.content.ContentResolver.query(ContentResolver.java:758)
        at androidx.core.content.a.a(ContentResolverCompat.java:81)
        at androidx.i.b.b.h(CursorLoader.java:63)
        at androidx.i.b.b.d(CursorLoader.java:41)
        at androidx.i.b.a.e(AsyncTaskLoader.java:307)
        at androidx.i.b.a$a.a(AsyncTaskLoader.java:60)
        at androidx.i.b.a$a.a(AsyncTaskLoader.java:48)
        at androidx.i.b.d$2.call(ModernAsyncTask.java:141)

To Reproduce Steps to reproduce the behavior: Enable Proguard and try to launch any Chucker intent.

Thanks a lot in advance for your help! 🙂👋

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
cortinicocommented, Jun 28, 2019

Awesome 👍 Hopefully we’ll release a 3.0.0 stable in the near future.

0reactions
HappyDr0idcommented, Jun 28, 2019

@cortinico It works with the 3.0.0-alpha1 version, no issue with Proguard 👏 I’ll stay on this version until a stable one will be published, thanks a lot! 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

proguard-rules.pro file missing - Android Studio 1.0.1
1) in the buildTypes create a "debug" section. Set minifyEnabled to "true" and only include the file with the lines specified in the...
Read more >
Android's Built-in ProGuard Rules: The Missing Guide
First up: proguard-android.txt · dontusemixedcaseclassnames - Just tells it not to use mixed cases in class names so they don't go awry if ......
Read more >
Missing Android consumer proguard rules #2431 - GitHub
The short explanation is that Detox relies on some dependencies in the main app apk like Kotlin and React-Native that the test apk...
Read more >
Troubleshooting ProGuard issues on Android - Medium
In some cases ProGuard can't know that a class or method is being used, such as when it's only referenced by reflection, from...
Read more >
proguard rules get lost when running assembleRelease ...
First of all: I wanted to create this issue under Gradle plugin but I have don't rights for that space. Studio Build: //...
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