Anyone know how to fix "this app is preventing shu...
# compose-desktop
j
Anyone know how to fix "this app is preventing shutdown" with a Compose Desktop app on Windows? Also regularly happens with JetBrains Toolbox
👍 1
👍🏻 1
l
the Toolbox app also causes my display to flicker (variable refresh rate kicks in) and nvidia comes alive when it is open, like it's a game.
😯 2
d
I guess it’s because of the skia rendering engine
b
I had this happen to me on and on with compose on desktop. You close the window and the java process continues. You have 6 processes everytime you look in task manager. You have to forcefully kill things on application end, nomater what they are, ktor servers, sockets, anything you see :) I vaguely remember "System.exit(0)" not working or not being enough and putting this hook in in some components and cleaning up with it: Runtime.getRuntime().addShutdownHook(...........)
👀 1
you might have to throttle some things before they hit the ui. like if you have resize hooks you can throttle(250ms) or burst updates through some web socket. this killed off the flickering for me
a
Same problem here
thank you color 1
plus1 1