Choosing the location of a watermark file does not open a file browser

Bug #1643296 reported by Geert Jan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Phatch
New
Undecided
Unassigned
Fedora
New
Undecided
Unassigned

Bug Description

When I run Phatch at the CLI.
Try to create a new action list.
Choose a watermark
Click on the filename and path for changing the watermark file.
It will do nothing and I have no possibility to change the watermark file.

In the CLI output I get the following traceback:
"
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 16763, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/share/phatch/phatch/lib/pyWx/popup.py", line 364, in OnChange
    icon_size=self.icon_size,
  File "/usr/share/phatch/phatch/lib/pyWx/imageFileBrowser.py", line 102, in __init__
    self.image_list = ListCtrl(self.panel, files, icon_size)
  File "/usr/share/phatch/phatch/lib/pyWx/imageFileBrowser.py", line 54, in __init__
    pil_wxBitmap(open_thumb(file, size=icon_size)))
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_gdi.py", line 6735, in Add
    return _gdi_.ImageList_Add(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed at ../src/generic/imaglist.cpp(66) in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.
"
Please your reply and help, I use this functionallity a lot!

I have a Debian 8 system with the Phatch install according to the repository.

Revision history for this message
angie_bg (angie-bg) wrote :

On Fedora 25:
File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_gdi.py", line 6735, in Add
    return _gdi_.ImageList_Add(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed at ./src/generic/imaglist.cpp(66) in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

Revision history for this message
Gerald Schedl (e-gerald) wrote :

The same to me on Artful Aardvark (Ubuntu 17.10.):

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 16765, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/share/phatch/phatch/lib/pyWx/popup.py", line 364, in OnChange
    icon_size=self.icon_size,
  File "/usr/share/phatch/phatch/lib/pyWx/imageFileBrowser.py", line 102, in __init__
    self.image_list = ListCtrl(self.panel, files, icon_size)
  File "/usr/share/phatch/phatch/lib/pyWx/imageFileBrowser.py", line 54, in __init__
    pil_wxBitmap(open_thumb(file, size=icon_size)))
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_gdi.py", line 6735, in Add
    return _gdi_.ImageList_Add(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed at ../src/generic/imaglist.cpp(66) in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.