Comments (7)
Hey @sunny-chung
What is the device you are running this on?
Can you create a minimal reproducible with this problem and share it with us?
I can clearly see this in both cases:
Failed to create Skia Metal context!
I wonder why any metal commands are dispatched in a first place.
from compose-multiplatform.
I am running on a M2 MacBook Pro.
I can only provide the project I am working on to you, as I am not sure what is going on. The issue is not frequently reproducible. But once I hit it, I would keep hitting for a while. The file Main.kt may have what you need. Please let me know if I use Compose Desktop in a wrong way.
from compose-multiplatform.
Thanks, I'll have a look.
from compose-multiplatform.
Are there some specific circumstances, that you could note, that lead to this?
Do you have some heavy graphics application running along? I've played with an app for several minutes but didn't manage to reproduce the behavior.
from compose-multiplatform.
My wild guess is that id <MTLCommandQueue>
is null if there are windows(popups) opened and closed very quickly for continuous time span.
It was solved by this PR on iOS: JetBrains/compose-multiplatform-core#1127
If it's indeed the case, I'll roll a speculative fix for skiko window management on macOS.
from compose-multiplatform.
It apparently only reproducible with IntelliJ IDEA and after I upgraded Compose Multiplatform from 1.6.0-rc02 to 1.6.2. It only happens while launching the application.
I did have running lots of browsers along. It seems my Mac runs apparently slower and displays some black pixels if I have Instagram with HDR media opening.
Near the end of Main.kt, there is a dummy Window
. It will be dismissed after some background loading and after 500ms, and immediately followed by launching another Window
. Perhaps that relates to the issue you mentioned.
from compose-multiplatform.
I have just reproduced with:
- Run the gradle task
run
with IntelliJ IDEA. - Without closing the application, run a test case in the "ux-and-transport-test" module of the project using the green triangle button in IntelliJ IDEA. The window created in the test case is an empty window.
- Stop all the tasks.
- Rerun the test case. The window created is normal now.
- Repeat step 1 - 4 for several times.
- Without running the application, run the gradle task
:ux-and-transport-test:check
, the window created is an empty window. - Stop it and then run the gradle task
run
. Now the application also shows an empty window, with the reported error messages output in the console. - Rerun the gradle task
run
, the issue still exists. - Stop it, run the gradle task
clean
and thenrun
, the issue still exists.
During the time, I have no other heavy graphic-demanding applications running.
Edit: Run ./gradlew run
in an external console yields the same result. Sometimes the issue is gone for a short while after reopening IntelliJ IDEA, sometimes after I rerun the :ux-and-transport-test:check
gradle task and let it completes for several times.
from compose-multiplatform.
Related Issues (20)
- Reduce variety of Preview annotations HOT 5
- Being able to create a ComposePanel with vsync disabled
- Need to tap the touchpad thrice for double click action when using combined clickable. However, Button clicks are only required to clicked twice. HOT 4
- ImageVector is blurry when used with `Image()` + `Modifier.scale()` HOT 2
- [Compose Resources] commonMainResourceAccessors is not generated in multi-module architecture using Kotlin 2.0.0 HOT 4
- `Dialogs` are not rendered as expected when used inside a `ImageComposeScene`
- Unable to compile kotlinjs
- "No such file or directory" when using `Res.getUri()` HOT 6
- FocusRequester is not working on web both js(IR) and WASM the same as in JVM HOT 1
- Support getting resources by key
- Failed to use common source set to manage compose multi-language string resources HOT 2
- PointerInputChange onDrag events always emit ID of 0 on desktop HOT 3
- Default Proguard rules cause release task failure when using Material 3 instead of 2 in Compose Desktop HOT 1
- Jetsnack images are not loading HOT 1
- syncPodComposeResourcesForIos: Cannot query the value of this provider because it has no value available.
- [Gradle] tryGetSkikoRuntimeIfNeeded() eagerly resolves KMP runtime configuration on task creation HOT 2
- [Compose Resources] `MissingResourceException` in Auto-Updater application with different folders HOT 1
- Cannot change preferredStatusBarStyle on ComposeUIViewController HOT 1
- Buuld release not working with kotlin 2 HOT 1
- Use browser sessionStorage API to back rememberSaveable on web HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-multiplatform.