Flickering/App stays black with compose >0.3.1
Hi,
I am experiencing a weird issue with compose 0.3.1 on Windows 10. When I build any app, the app is either flickering or completely black. The same behavior could be observed with compose 0.4.0-build168.

This is also true for the widgetsgallery and imageviewer examples, as well as for my own app.
As soon as reverting back to 0.3.0 and doing a clean rebuild, everything works again.
Unfortunately I cannot provide more information at the moment, because there really is no difference other than the version, but I can provide more infos upon request.
Best Tobi
Very hard to say anything without reproducer.
I think this is the same problem like #413. I have the same problem with Windows 10.
When I do the following there is no flickering or black screen:
gradlew -stop set SKIKO_RENDER_API=SOFTWARE gradlew run
Will set SKIKO_RENDER_API=OPENGL work for you?
OPENGL is also working.
Very hard to say anything without reproducer.
Yeah unfortunately I have no idea what causes the issue other than the version.
I think this is the same problem like #413. I have the same problem with Windows 10.
When I do the following there is no flickering or black screen:
gradlew -stop set SKIKO_RENDER_API=SOFTWARE gradlew run
I can try this once I have time. Will take a couple of days though.
Will set SKIKO_RENDER_API=OPENGL work for you?
Will try this as well.
Could you please give your PC specification? OS version: ? Graphics card: ? Graphics card driver version: ?
Notebook Asus ROG Windows 10 Version 2004 Graphic Cards:
- Intel HD Graphics 530 - driver version 21.20.16.4550
- Nvidia GeForce GTX 960M - driver version 27.21.14.6140
Could you please check if the example from skiko works?
To build skiko you need to run in terminal ./gradlew publishToMavenLocal from skiko/skiko directory.
To run the example (rendering clocks) you need to run in terminal ./gradlew run from skiko/samples/SkijaInjectSample directory.
For more info on how to build skiko, please read the manual on the skiko github repository.
I've done the test. With SKIKO_RENDER_API=OPENGL - [1079280] FPS 45 (4-87) [1081296] FPS 54 (28-76) [1083297] FPS 58 (20-67) [1085313] FPS 54 (20-74) [1087330] FPS 58 (30-73) [1089330] FPS 59 (31-63) [1091346] FPS 59 (30-66)
- clocks are moving
SKIKO_RENDER_API=SOFTWARE
- [1111585] FPS 27 (5-33) [1111585] FPS 27 (5-33) [1113603] FPS 32 (22-35) [1115613] FPS 31 (24-34) [1117620] FPS 31 (20-35) [1119637] FPS 31 (18-34)
- clocks are moving
After unset SKIKO_RENDER_API
- Graphics card: Intel(R) HD Graphics 530 is blacklisted. [1133630] FPS 31 (1-92) [1135630] FPS 60 (30-93) [1137630] FPS 59 (14-94) [1139631] FPS 60 (28-91) [1141646] FPS 60 (14-95)
- Flickering
- the clocks are not moving
Please apply the patch current_adapter.txt and give me the console output. No need to set SKIKO_RENDER_API (leave it unset).
Hi, this is the output: Current graphics card: Intel(R) HD Graphics 530 Graphics card: Intel(R) HD Graphics 530 is blacklisted. Current graphics card: NVIDIA GeForce GTX 960M [67513510] FPS 30 (1-98) [67515513] FPS 60 (23-92) [67517527] FPS 60 (16-96)
I guess I have the same problem. The project is almost blank. Approximately, a black screen appears in every 4 to 9 executions of the project; it doesn't have a flickering problem though.
- Kotlin 1.4.31
- Compose 0.4.0-build173
- Windows 10
- Asus ROG Laptop
- Nvidia GeForce GTX 960M
Sorry for the late response, my graphics adapters are
- Intel HD Graphics 4600 - driver version 20.19.15.5058
- NVIDIA Quadro K2100M - driver version 25.21.14.2591
set SKIKO_RENDER_API=SOFTWARE works
set SKIKO_RENDER_API=opengl does not work
As far as I have read you already have enough information to work on this? If not let me know and I can also try the stuff with the skiko examples.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.