https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
h

Henri Gourvest

03/25/2024, 1:47 PM
For some time now, my application has not been closing properly at random, when I quit the application, it remains in the background. I've managed to isolate the problem and it seems to be linked to the use of Modifier.onExternalDrag. Am I the only one experiencing this problem? here's the bug report I filed: https://github.com/JetBrains/compose-multiplatform/issues/4541
a

Alexander Maryanovsky

03/25/2024, 10:02 PM
Does this only happen on Linux?
and what do you mean by “sometimes”? How often? Any chance of pinpointing how to trigger it 100%?
h

Henri Gourvest

03/26/2024, 11:16 AM
I created an empty project using the "Kotlin Multiplatform Wizard", then modified the main function as indicated in the bug report. I run the "run" gradle task and then close the window several times. I tested on all 3 platforms: Windows Linux and Mac OS. The problem only occurs on Linux, the error frequency is 25-33%.
a

Alexander Maryanovsky

03/26/2024, 11:17 AM
You just run it and close the window, without attempting to drag anything into it?
h

Henri Gourvest

03/26/2024, 11:17 AM
yes
a

Alexander Maryanovsky

03/26/2024, 11:17 AM
Ok, thank you. Could you add that information to the ticket?
h

Henri Gourvest

03/26/2024, 11:17 AM
ok