FrescoImage crashing with Compose beta 07
See original GitHub issuePlease 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:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mrmans0n @masterofdaemon @wangchenyan
Released a new version
1.2.2
. And please check your compose-related dependencies version on your project, and update.Thanks you for your issue 😃
I guess so, your module is the only one custom that i’ve used, can you report this issue?