compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Flickering/App stays black with compose >0.3.1

Open twatzl opened this issue 4 years ago • 14 comments

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.

image

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

twatzl avatar Feb 28 '21 14:02 twatzl

Very hard to say anything without reproducer.

olonho avatar Mar 01 '21 08:03 olonho

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

andymue66 avatar Mar 01 '21 12:03 andymue66

Will set SKIKO_RENDER_API=OPENGL work for you?

olonho avatar Mar 01 '21 15:03 olonho

OPENGL is also working.

andymue66 avatar Mar 01 '21 15:03 andymue66

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.

twatzl avatar Mar 03 '21 22:03 twatzl

Could you please give your PC specification? OS version: ? Graphics card: ? Graphics card driver version: ?

Rsedaikin avatar Mar 05 '21 09:03 Rsedaikin

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

andymue66 avatar Mar 08 '21 13:03 andymue66

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.

Rsedaikin avatar Mar 09 '21 07:03 Rsedaikin

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

andymue66 avatar Mar 09 '21 14:03 andymue66

Please apply the patch current_adapter.txt and give me the console output. No need to set SKIKO_RENDER_API (leave it unset).

Rsedaikin avatar Mar 09 '21 15:03 Rsedaikin

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)

andymue66 avatar Mar 10 '21 08:03 andymue66

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

YektaDev avatar Mar 19 '21 05:03 YektaDev

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.

twatzl avatar Mar 19 '21 17:03 twatzl

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

okushnikov avatar Aug 26 '24 17:08 okushnikov