I'm having problems using wx.lib.wxcairo in a 64 bit environment. Just
using it out of the box causes a segfault. After a litlle poking
around I found that the segfault is triggered inside pycairo because
it is not getting the correct 64 bit pointer, but only the lower 32
bits. To fix this I had to change wxcairo.py so that it now reads:
I'm having problems using wx.lib.wxcairo in a 64 bit environment. Just
using it out of the box causes a segfault. After a litlle poking
around I found that the segfault is triggered inside pycairo because
it is not getting the correct 64 bit pointer, but only the lower 32
bits. To fix this I had to change wxcairo.py so that it now reads:
Well, the bitamp (actually PNG) issues were related to a separate
library issue on my side (two versions of the same library linked
against different packages), so no wxPython problems here. I did run
into problems with the FontFaceFromFont routine (which was breaking
demo/Cairo.py). The fix is similar to the previous one. The fixed code
now reads:
So now all examples run fine. I'm sure some Python gurus will find a
better way of implementing this, so we don't set the function return
types every time we call it.
Cheers,
Ricardo
···
On Jan 5, 1:08 am, Robin Dunn <ro...@alldunn.com> wrote:
On 1/4/10 3:27 AM, zamb wrote:
> Dear all
> I'm having problems using wx.lib.wxcairo in a 64 bit environment. Just
> using it out of the box causes a segfault. After a litlle poking
> around I found that the segfault is triggered inside pycairo because
> it is not getting the correct 64 bit pointer, but only the lower 32
> bits. To fix this I had to change wxcairo.py so that it now reads:
Could you please send this as a proper patch file (a unified diff between the original and your changed version) so I can more clearly see exactly what changed and where?
Thanks.
···
On 1/6/10 3:58 AM, zamb wrote:
Hi
Well, the bitamp (actually PNG) issues were related to a separate
library issue on my side (two versions of the same library linked
against different packages), so no wxPython problems here. I did run
into problems with the FontFaceFromFont routine (which was breaking
demo/Cairo.py). The fix is similar to the previous one. The fixed code
now reads:
On Jan 6, 7:10 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 1/6/10 3:58 AM, zamb wrote:
> Hi
> Well, the bitamp (actually PNG) issues were related to a separate
> library issue on my side (two versions of the same library linked
> against different packages), so no wxPython problems here. I did run
> into problems with the FontFaceFromFont routine (which was breaking
> demo/Cairo.py). The fix is similar to the previous one. The fixed code
> now reads:
Could you please send this as a proper patch file (a unified diff
between the original and your changed version) so I can more clearly see
exactly what changed and where?
Thanks.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org