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)
- Compose 1.6.2 iOS ComposeContainer memory leak HOT 2
- ComposeUIViewController don't Update View HOT 2
- TextField cannot input in ExposedDropdownMenuBox, when ExposedDropdownMenu is expanded HOT 4
- 🚀 Low-code tools to speed up and ease app development HOT 1
- java.lang.SecurityException: SHA-256 digest error for org/bouncycastle/operator/OperatorCreationException.class HOT 3
- [IOS-Simulator] TextField Text Cursor Jumps Around After Using CMD+A then Delete to clear all text preventing further text input.
- Using `ComposeScene`s with anything but `MainUIDispatcher` results in a deadlock HOT 19
- Generate XCFramework with UI, resources and dependencies HOT 2
- Remove compose ui fallback from LocalViewModelStoreOwner HOT 3
- Kotlin/Wasm responsive layout HOT 7
- Support text hyphenation HOT 1
- How to monitor finger position like touch_down\touch_move on Android platform?
- Brush.linearGradient don't work HOT 1
- Order of accessibility nodes is wrong HOT 2
- When targeting Android for a KMP project using `Coil 3.0.0-alpha06`, attempting to use `.toBitmap()` and `.asComposeImageBitmap()` results in `Unresolved reference` HOT 2
- Consider removing `Unconfined` dispatcher as default `CoroutineContext` for `ComposeScene` creation HOT 1
- Consider adding a boolean to disable `GlobalSnapshotManager.ensureStarted()` call during scene creation
- PressInteraction.Cancel is sent on mouse press and drag outside surface HOT 1
- Are there any good suggestions about using compose to generate UI through drag and drop and output the code to the local? HOT 5
- Erratic window focus behavior HOT 2
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.