Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.63k stars 123 forks source link

pick color causes freeze/crash on OSX 10.11.6 #79

Open schroef opened 4 years ago

schroef commented 4 years ago

Describe the bug Open the app and select the color picker mode. Pick a color, the app will become unresponsive and needs to be "force" quit.

To Reproduce Steps to reproduce the behavior:

  1. Open application
  2. Select "Pick Color"
  3. App becomes unresponsive
  4. No error can be seen as app freezes.

Expected behavior Return picked color so color numbers can be used.

Screenshots see below pick-color-issue pick-color-causes-app-freeze

OS (please complete the following information):

Colorpicker (please complete the following information):

Additional context Some times i can get 1 color, no issue. It does freeze eventually.

Toinane commented 4 years ago

Hey @schroef ! Thank you for your issue. It's a weird one here.. I didn't have this bug on my OSX. Did you have a second screen or any thing that can be related to the screen?

I suppose this can be a bug due to the mouse position on the screen that Colorpicker can't get. I already have this issue but I always have this bug report :

Capture d’écran 2020-06-08 à 17 41 44
Toinane commented 4 years ago

How often that occur? When you don't use picker feature, you don't have any issue with Colorpicker?

Toinane commented 4 years ago

In any case, Picker feature will be entirely rewrited in a C++ module for the next update, its in progress here #78 So I hope this will be fixed with that! 😄

schroef commented 4 years ago

Wow fast response!

Yes, I'm using dual display setup. Sometimes it happens immediately, sometimes 2nd or 3rd color I pick. I do t get any java error or any error in dev tools, the app freezes and becomes none responsive.

I have crash report if that is of any help.

Does the code check if there is a dual display setup?

schroef commented 4 years ago

Ps only picked causes the freeze, rest works fine

Toinane commented 4 years ago

Wow fast response!

Yes, I'm using dual display setup. Sometimes it happens immediately, sometimes 2nd or 3rd color I pick. I do t get any java error or any error in dev tools, the app freezes and becomes none responsive.

I have crash report if that is of any help.

Ahah yeah, i'm pretty active here!

Hmm I had an old similar issue.. It concern dual monitor. Can you test with just one screen, it should be working fine (i hope ahah) This old issue concern the position of screen, if the second screen is in the left, the x,y pixel position will be negative and my actual C++ module failed to take these negative positions. But fixed that bug in a previous release, so it would be strange if its that bug actually.

Yeah the crash report could help me, if you can send here 👍

Does the code check if there is a dual display setup?

yes and no, its the C++ module that use x,y position, and can crash if the position isn't correct, but my code should handle that case and show error to the user.

Toinane commented 4 years ago

Miss click~

Another thing, you wrote 2.0.7 for the Colorpicker version. But this version didn't exist 😅can you have the good version number?