-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sporadic test_array_to_qimage_rgb failure using pyside2 #517
Comments
That's really odd. There really shouldn't be anything more than a (channel-shuffled) memory copy for these pixel values. I'm tempted to say that this is a Qt/PySide bug, but maybe I'm missing something. |
Idea for debugging these issues: re-write the test to save the |
Here's the image from a failed test: It should be all blue, but some pixels at the top are different. Strangely enough, the pixels in the image don't seem to match printed out hex values. I thought that maybe it is another test interaction brought upon by the change in test order, but I managed to replicate the error with nose runner, so it is most likely an issue with Qt/PySide. |
I think I found the reason behind the failure. It's not a Qt bug as the behaviour is mentioned in the documentation:
The buffer in this case is Note: to reproduce this issue locally it helps if the UI is kept in the background |
Right - so I think when I was writing this I assumed that the constructor copied the bytes of the image. |
I saw the same error again on a recent build for this PR: #552
I believe CI is doing a PR build which means the fix from #546 should have been applied. While normally I would have merged master to the PR to be sure, PR #552 is targeting another PR so I don't want to mess things up by merging master. Just wanted to note the occurrence. If this happens again, we might have to reopen the issue. |
Because PR #552 is targeting #545, the CI is using the merge commit based on #545. Since #545 was open before #546 was merged and has not pulled in the latest master, CI for #552 was built without the fix. That should explain the sporadic failure seen in #552. Nothing needs to be done here, the issue does not need to be reopened. |
The test sporadically fails both on Travis and during a manual test suite run
after switching to unittest runner (#515)(edit: happens with both unittest and nose runners). I haven't managed to reproduce the error when running just that single test or the test module, seems to only happen when the whole test suite is run.For some reason the following pixels have different values than expected (
0xff4488cc
):Non-informative failure traceback:
The text was updated successfully, but these errors were encountered: