fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.97k stars 826 forks source link

Mouse pointer strange behaviour #4037

Closed Motomanual closed 11 months ago

Motomanual commented 1 year ago

Hello, just installed version 1.0.0-1457Win64 but found a strange behaviour of the mouse pointer when focused on a component on breadboard and drawing sections (pointer looks like two orizontal lines). Already sent a mail to 'support@fritzing.org' with a short video showing the issue, that was not present on previous versions and make complex connect wires to components. Additionally in the Code section the drop down menu used to select platform/card/port, words appear in black color on dark gray background (almost unreadable). The mouse problem appear on a specific laptop below ireported and just in the indicated sections, color problem appeared on all pc I have tested. O.S. - Windows 10 V19045.3086 PC Lenovo Ideapad Ryzen 7 Thanks and best regards

Motomanual commented 1 year ago

https://github.com/fritzing/fritzing-app/assets/137813515/13baee7c-2e8e-45e0-b2f6-30d5cf43f2b5

KjellMorgenstern commented 1 year ago

Can you check the integrity of Fritzing? Reachable by right clicking, ( https://chat.openai.com/share/ce4247fa-e95c-4188-b612-21fc64c1f7a1 ) . Certificate should be to Fritzing GmbH.

Were there any error messages when installing on the Ideapad?

Motomanual commented 1 year ago

Hello, thanks for Your answer! I checked the integrity as requested and the certificate is correct (I download the file from the link supplied by Fritzing several times). During installation any error message appeared (checked several times), previous versions don't have this problem. Thanks and best regards.

failiz commented 1 year ago

I have seen this bug in a few computers from my students (all running 1.0.0).

KjellMorgenstern commented 1 year ago

Unfortunately I have never seen it yet. Were all the students using Windows? And can you check if it was Windows 10, maybe even build 19045 like in the first post?

failiz commented 1 year ago

I think all of them were on Windows. I took some pictures of one of them. I will try to find more tomorrow. IMG_20230717_144855 IMG_20230717_144904 IMG_20230717_144921

failiz commented 1 year ago

Another computer with the same problem. IMG_20230718_115539 IMG_20230718_115549 IMG_20230718_115619

Let me know if you need more info.

KjellMorgenstern commented 1 year ago

Are there any Windows PC where it does work?

One thing suspicious is that the cursors are encoded as binary bitmap make_wire.bmp: PC bitmap, Windows 3.x format, 32 x 32 x 1, image size 130, resolution 2834 x 2834 px/m, cbSize 192, bits offset 62 Maybe that is too outdated for some graphics drivers, but just pure speculation here.

Motomanual commented 1 year ago

Hello, in my case there are other 3 (older) laptops with same Windows version that don't have any problem. In the newest laptop the problem appear just with Fritzing version 1.0.0, older versions (included 0.9.10 that's Im actually using) dont have any problem and suppose the cursor bitmap is the same... What about the QT version?

KjellMorgenstern commented 1 year ago

Indeed, no changes for the bitmaps. Qt docs warn that QGuiApplication must be created before the Cursor, but this also did not change from Qt5 to Qt6. Fritzing is build with qt6 since 1.0.0

Another guess could be that upscaling the cursor does not work, which would then show mostly on notebooks with HiRes displays.

Motomanual commented 1 year ago

It could be, are there any test to be done? Thanks.

failiz commented 1 year ago

Are there any Windows PC where it does work?

I have 23 students and around half of them (or 40%) are MacOS users. From the around 12 or 14 Windows users, I have seen this bug in two or maybe three computers. In the other ones, it works correctly.

jfmorgenstern commented 1 year ago

I was able to reproduce the bug by adjusting the display scaling to a non-integer scaling factor of 100%, such as 175%.

grafik

Tested on Windows 11, multi-monitor setup. One Monitor was set to 100% scaling, the other to 175% grafik

Motomanual commented 1 year ago

You're right, the suggested scaling setting of my monitor is 125% but changing to 100% the problem disappear, unfortunately with this scaling setting there are reading problem with other programs.. An additional issue that forgot to report is that, after installation, the resolution of version 0.9.10 and 1.0.0 is quite different as shown on below pictures (scaling 125%, 1.0.0 is bigger). Fritzing 1 0 0 Fritzing 0 9 10

jfmorgenstern commented 1 year ago

This could be related to the switch to QT6.

As a workaround until we fix this, you could try to change the high DPI settings in the compatibility tab.

  1. Right click on Fritzing shortcut
  2. Select Properties
  3. Select Compatibility tab grafik
  4. Set High DPI scaling override to "Sytem" or "System Enhanced" grafik

This fixes the cursor for me.

Motomanual commented 1 year ago

With this setting the cursor probem is fixed also for me, the resolution of this version remain bigger compared to 0.9.10 but now is possible to use it. Thanks for your support!

Motomanual commented 1 year ago

Hello, in my first post I mention another problem 'Additionally in the Code section the drop down menu used to select platform/card/port, words appear in black color on dark gray background (almost unreadable).' and don't know if is necessary open a new issue, here a picture showing it. Fritzing 1 0 0

KjellMorgenstern commented 1 year ago

Of course it is, split the problems. Thats what the issues are for.

failiz commented 1 year ago

Probably, it would be a good idea to add this bug and the workaround to the list of known issues.

KjellMorgenstern commented 1 year ago

I added it: https://fritzing.org/download/known-issues/

KjellMorgenstern commented 1 year ago

Switched the cursor from Bitmap to Pixmap representation. Pixmap can be scaled correctly. It looks like the issue does not occur on other systems because they don't try to scale the cursor, it just stays at 100%

Spinky1001 commented 1 year ago

I started using Fritzing yesterday and I also have this problem with the cursor. Tried all the suggestions above but still not working properly. Not sure what last comment means - how do you switch the cursor from Bitmap to Pixmap? Any further ideas? Windows 10 home edition.