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.

FrescoImage crashing with Compose beta 07

See original GitHub issue

Please complete the following information:

  • Library Version [v1.2.1]
  • Affected Device(s) [e.g. Pixel 4 XL]

Describe the Bug:

After updating the compose dependency to 1.0.0-beta07, FrescoImage usages crash at runtime with this stacktrace:

05-19 10:09:28.796 29352 29352 E AndroidRuntime: FATAL EXCEPTION: main
05-19 10:09:28.796 29352 29352 E AndroidRuntime: Process: com.twitter.sandbox.uiarch, PID: 29352
05-19 10:09:28.796 29352 29352 E AndroidRuntime: java.lang.NoSuchMethodError: No interface method startRestartGroup(ILjava/lang/String;)Landroidx/compose/runtime/Composer; in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' appears in /data/app/~~xzvvhkZTNhoZWKRPq8VHJg==/com.twitter.sandbox.uiarch-W3sSHxog8MH9aWO23m7A6A==/base.apk)
05-19 10:09:28.796 29352 29352 E AndroidRuntime: 	at com.skydoves.landscapist.fresco.FrescoImage__FrescoImageKt.FrescoImage(FrescoImage.kt:85)
05-19 10:09:28.796 29352 29352 E AndroidRuntime: 	at com.skydoves.landscapist.fresco.FrescoImage.FrescoImage(FrescoImage.kt:1)
05-19 10:09:28.796 29352 29352 E AndroidRuntime: 	at com.twitter.sandbox.uiarch.samples.dogs.DogContentViewProviderKt.ShowDog(DogContentViewProvider.kt:136)

And this is the calling code:

    Row(modifier = Modifier.clickable { viewModel.loadNewDog() }) {
        FrescoImage(imageUrl = dogImage.url, modifier = Modifier.fillMaxSize(), contentScale = ContentScale.Fit)
    }

Expected Behavior:

Using FrescoImage should not cause a runtime crash.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
skydovescommented, May 21, 2021

@mrmans0n @masterofdaemon @wangchenyan

Released a new version 1.2.2. And please check your compose-related dependencies version on your project, and update.

composeVersion   : '1.0.0-beta07',
constraintVersion: '1.0.0-alpha07',
activityVersion  : '1.3.0-alpha08',
landscapistVersion : '1.2.2'

Thanks you for your issue 😃

1reaction
masterofdaemoncommented, May 20, 2021

I guess so, your module is the only one custom that i’ve used, can you report this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

kotlin - App Crashes when OutlinedTextField text value is erased
I have a composable function that implements an OutlinedTextField and some other simple compose components. Recently, I have been facing a ...
Read more >
Crash in Jetpack Compose alpha07 (but not alpha06) #949
Change to Compose alpha07; Launch app; App crashes when calling getViewModel. Expected behavior. The app should work the same and not crash.
Read more >
Compose Compiler - Android Developers
Transform @Composable functions and enable optimizations with a Kotlin compiler plugin. Latest Update, Stable Release, Release Candidate, Beta Release, Alpha ...
Read more >
Nested SubcomposeLayout + Lazy* crashes after scrolling
0-Alpha21, I got what looks like a potentially related crash a couple of times with Wear Compose. java.lang.NullPointerException at androidx.compose.ui.layout.
Read more >
Any experiences with Fresco (image loading lib by facebook)
I'm building an app which revolves around images loaded from a backend. Now before coming to the point where I need to decide...
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