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

Error When Navigation Back #1

Open
alek43 opened this issue Jul 11, 2023 · 2 comments
Open

Error When Navigation Back #1

alek43 opened this issue Jul 11, 2023 · 2 comments

Comments

@alek43
Copy link

alek43 commented Jul 11, 2023

Haloo utsmann, i have try your lib, but i got some error, when i got back requested after load the maps the apps force closing.

@alek43
Copy link
Author

alek43 commented Jul 11, 2023

java.lang.IllegalStateException: Check failed.
at androidx.compose.runtime.saveable.SaveableStateRegistryImpl.performSave(SaveableStateRegistry.kt:138)
at androidx.compose.runtime.saveable.SaveableStateHolderImpl$RegistryHolder.saveTo(SaveableStateHolder.kt:125)
at androidx.compose.runtime.saveable.SaveableStateHolderImpl$SaveableStateProvider$1$1$invoke$$inlined$onDispose$1.dispose(Effects.kt:484)
at androidx.compose.runtime.DisposableEffectImpl.onForgotten(Effects.kt:85)

@Doomsdayrs
Copy link

The issue is with rememberOverlayManagerState.

DefaultOverlayManager is not savable into a bundle.

Use the following alternative.

 rememberSaveable(key = null, saver = Saver(
				save = {
					   null
				},
				restore = {
					OverlayManagerState(null)
				}
			)) {
				OverlayManagerState(null)
			}

Or just do not use this library.
It is not maintained, and is not recommended for any production code.

moaathalrajab pushed a commit to moaathalrajab/BCS421_F23Capstone_group1 that referenced this issue Dec 14, 2023
DefaultOverlayManager is not savable into a bundle.
We can just throw away the overlay manager.
We do not use it.

utsmannn/osm-android-compose#1 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants