nroduit / Weasis

Weasis is a DICOM viewer available as a desktop application or as a web-based application.
https://nroduit.github.io
Other
832 stars 295 forks source link

PNG codec error and image zooming/moving trouble #553

Open ucrainis opened 6 months ago

ucrainis commented 6 months ago

Describe the bug. What happened?

Good day,

after updating to 4.4.0 version of the app occured several errors and I cannot work any more: can't load PNG format images - I get every time error saying that app cannot read this image (attached screenshot). And another one - loading any other image (JPG, BMP etc) I cannot scroll image - it got stucked in the corner (attached second screenshot) without possibility to pan (move on it) image, zoom it in or out and to look resized to best fit version of the image. 1 2

What version of Weasis are you running?

4.4.0

On which system the problem occurs?

Windows

Relevant log output

No response

Additional contextual elements

No response

nroduit commented 6 months ago

I can't reproduce the 2 problems mentioned. Please provide logs and/or sample images.

ucrainis commented 6 months ago

I can't reproduce the 2 problems mentioned. Please provide logs and/or sample images.

I looked into the logging folder, but I saw that the last logs were before update - since then all those times I opened app and tryed to do something - nothing new adds there. The problem is the same on two different PCs: Windows 7 and Windows 10. If it helps - I can do a video as I try to do the same things mentioned.

ucrainis commented 6 months ago

I can't reproduce the 2 problems mentioned. Please provide logs and/or sample images.

I checked preferences: logging was turned off with new update. So I share the log-file after trying to do these things and quitting app. default.log

nroduit commented 6 months ago

The problem lies in the OpenCV library, with an unexpected error.

Without an example to reproduce the problem, I don't see how I can help.

ucrainis commented 6 months ago

The problem lies in the OpenCV library, with an unexpected error.

Without an example to reproduce the problem, I don't see how I can help.

Without an example - you mean I need to provide video of what I am doing or something else?

nroduit commented 6 months ago

I need a test case where the problem can be reproduced. Please send me an image that cannot be read.

ucrainis commented 6 months ago

I need a test case where the problem can be reproduced. Please send me an image that cannot be read.

Yep, I send the .png file, that gives error with codec. About the second problem - it has to do simply with every other file that app reads. pan

ucrainis commented 6 months ago

Now I downgraded to 4.3.0 and everything works fine.

nroduit commented 6 months ago

I've tested it on several Windows 10 and 11 systems and I can't reproduce the error.

Do you have recent or specific versions of Windows?

See this post even though normally with recent compile mode Visual C++ redistributable should not be necessary.

ucrainis commented 6 months ago

I've tested it on several Windows 10 and 11 systems and I can't reproduce the error.

Do you have recent or specific versions of Windows?

See this post even though normally with recent compile mode Visual C++ redistributable should not be necessary.

I have PCs with Windows 7 Professional and Windows 10 Home with all actual upgrades. But the bug is version-dependent, not Windows-dependent - 4.3.0 works well on both machines. I do have Visual C++ installed on my computers.

So, I tryed installing again 4.4.0 (previously installed Visual C++ redistributable 2015 and Universal C Runtime) - nothing has changed at all: both bugs still appear. Then I downgraded again to 4.3.0 - the app works fine again. I guess I just stay on 4.3.0 release.

nroduit commented 6 months ago

I haven't found any other users with this problem. As the problem is in a third-party library, there are no error messages and no procedure to reproduce the problem, I'm not going to investigate further.