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

Previewing fails with AssertionError: Data is too big #5099

Closed
rand0m-cloud opened this issue Jul 16, 2024 · 3 comments
Closed

Previewing fails with AssertionError: Data is too big #5099

rand0m-cloud opened this issue Jul 16, 2024 · 3 comments

Comments

@rand0m-cloud
Copy link

rand0m-cloud commented Jul 16, 2024

I am getting this error while trying to preview a screen in desktopMain. This has not been an issue until today for some reason.

@Preview
@Composable
fun TestPreview() {
    Text("preview")
}
java.lang.AssertionError: Data is too big: 1802136077 >= 8192
	at org.jetbrains.compose.desktop.ui.tooling.preview.rpc.RemoteConnectionImpl.readData(RemoteConnection.kt:139)
	at org.jetbrains.compose.desktop.ui.tooling.preview.rpc.RemoteConnectionImpl.receiveCommand(RemoteConnection.kt:87)
	at org.jetbrains.compose.desktop.ui.tooling.preview.rpc.CommandsKt.receiveConfigFromGradle(commands.kt:89)
	at org.jetbrains.compose.desktop.ui.tooling.preview.rpc.PreviewManagerImpl$special$$inlined$repeatWhileAliveThread$default$4.invoke(PreviewManager.kt:312)
	at org.jetbrains.compose.desktop.ui.tooling.preview.rpc.PreviewManagerImpl$special$$inlined$repeatWhileAliveThread$default$4.invoke(PreviewManager.kt:283)
	at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

I think it is this line that needs to be increased:

The captured dump of previewing
cap.txt

@igordmn
Copy link
Collaborator

igordmn commented Jul 17, 2024

Please, create issues in YouTrack
#5102

@igordmn igordmn closed this as completed Jul 17, 2024
@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

1 similar comment
@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants