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

Jetbrains products fail to start when using wayland: Viewporter protocol #70

Closed
MrNavaStar opened this issue Jan 18, 2025 · 3 comments
Closed

Comments

@MrNavaStar
Copy link

MrNavaStar commented Jan 18, 2025

Reproduce:

# force goland to run with wayland
./goland -Dawt.toolkit.name=WLToolkit

Produces:

**Start Failed**

Failed to initialize graphics environment.

java.awt.AWTError: Can't bind to the wp_viewporter interface
	at java.desktop/sun.awt.wl.WLToolkit.initIDs(Native Method)
	at java.desktop/sun.awt.wl.WLToolkit.<clinit>(WLToolkit.java:148)
	at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:75)
	at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:595)
	at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invokeSuspend(ui.kt:138)
	at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invoke(ui.kt)
	at com.intellij.platform.ide.bootstrap.UiKt$initAwtToolkit$2.invoke(ui.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
	at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span$default(tracer.kt:48)
	at com.intellij.platform.ide.bootstrap.UiKt.initAwtToolkit(ui.kt:137)
	at com.intellij.platform.ide.bootstrap.UiKt.access$initAwtToolkit(ui.kt:1)
	at com.intellij.platform.ide.bootstrap.UiKt$scheduleInitAwtToolkit$task$1$1.invokeSuspend(ui.kt:120)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

I assume this fails because the wp_viewporter protocol is not implemented: https://wayland.app/protocols/viewporter, however smithay does implement it, so I imagine it should be straight forward to enable? as per: https://github.com/Smithay/smithay/blob/master/src/wayland/viewporter/mod.rs

MrNavaStar added a commit to MrNavaStar/wprs that referenced this issue Jan 18, 2025
@MrNavaStar
Copy link
Author

Fixed in #71

@maxhbooth
Copy link
Contributor

We just implemented this with #80 if you'd like to give it a try @MrNavaStar

@MrNavaStar
Copy link
Author

Awesome! I'll try it out today!

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