bslatkin / dpxdt

Make continuous deployment safe by comparing before and after webpage screenshots for each release. Depicted shows when any visual, perceptual differences are found. This is the ultimate, automated end-to-end test.
https://dpxdt-test.appspot.com
Apache License 2.0
1.44k stars 124 forks source link

PdiffFailedError: Could not resize reference image to size of new image #114

Closed santthosh closed 9 years ago

santthosh commented 10 years ago

Any ideas how to resolve this issue?

ERROR workers.py:452] Error in workflow=dpxdt.client.pdiff_worker.DoPdiffQueueWorkflow({args: (), parent: dpxdt.client.queue_worker.DoTaskWorkflow({args: ('http://localhost:80/api/work_queue/run-pdiff', <cl...8, kwargs: {build_id: 1, reference_sha1sum: u'a177b4f676168270d016444b23b24f8dfb46c4de', release_number: 1, run_sha1sum: u'5b837ec806dd7bfded2e8223f4b4cfeedc0cadd4', run_name: u"'self#4'", heartbeat: <function heartbeat at 0x2b939b0>, release_name: u"'test.qa.acme.com'"}})#45775760 from item=dpxdt.client.pdiff_worker.ResizeWorkflow({parent: dpxdt.client.pdiff_worker.DoPdiffQueueWorkflow({args: (), parent: dpxdt.client.queue_worker.DoTaskWo...0, kwargs: {timeout_seconds: 20}, args: ('/tmp/tmp9ksvPH/log.txt',), resized_ref_path: '/tmp/tmp9ksvPH/ref_resized', result: 1, ref_path: '/tmp/tmp9ksvPH/ref', done: True, run_path: '/tmp/tmp9ksvPH/run'})#45773648, error=None
Traceback (most recent call last):
  File "/home/ec2-user/dpxdt-mirror/dpxdt/client/workers.py", line 435, in handle_item
    next_item = generator.send(item.result)
  File "/home/ec2-user/dpxdt-mirror/dpxdt/client/pdiff_worker.py", line 182, in run
    'Could not resize reference image to size of new image')
PdiffFailedError: Could not resize reference image to size of new image
tom-parker commented 10 years ago

I'm having this same issue, anyone got any ideas?

scrofts commented 9 years ago

I'm having the same issue, think it might be to do with diffing really large pages.

tom-parker commented 9 years ago

This was a imagemagick issue for me. Although homebrew was telling me that it installed fine, seemingly it wasn't working properly. Only way to fix it for me was to do the following

brew uninstall imagemagick
brew doctor
// Fix all of the issues here, all of them
brew install imagemagick --disable-openmp --build-from-source
bslatkin commented 9 years ago

I added a check in 6fe0d173e29e5319d3a34b3903ecfd703306f96e to make sure image magick is installed correctly. That should help this one.