Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Trap signal by compiling gnome-pie with Vala 0.18.1 in FreeBSD #66

Closed
nivit opened this issue Mar 16, 2013 · 4 comments
Closed

Trap signal by compiling gnome-pie with Vala 0.18.1 in FreeBSD #66

nivit opened this issue Mar 16, 2013 · 4 comments

Comments

@nivit
Copy link

nivit commented Mar 16, 2013

Hi Simon,

I'm the maintainer of the FreeBSD port (http://www.freshports.org/x11/gnome-pie/). Recently we have update the library GLib to 2.34.3, and Vala from 0.12.1 to 0.18.1, and now gnome-pie (v. 0.5.4) receives a trace trap signal on startup. Here is the error message:

(gnome-pie:47279): GLib-ERROR **: gmem.c:166: failed to allocate 4294967295 bytes [1]+ Trace/BPT trap: 5 gnome-pie

I don't know Vale, and Gtk, but after a little investigation it seems that the problem is in the function: Image.to_pixbuf(). I have already tried your recent commit (http://goo.gl/pW5dy), without success .Infact, in this case, the variable surface is not null, but the trap is generated by the call surface.get_data() inside

var pixbuf = new Gdk.Pixbuf.from_data(surface.get_data(), Gdk.Colorspace.RGB, true, 8, width(), height(), surface.get_stride(), null);

Any idea/solution?

Thanks.

P.S. I temporarily solved the issue with this patch http://pastebin.com/ChtxwaDH , but I don't know if it is correct, even if the program runs fine.

@Schneegans
Copy link
Owner

Hey there! Thanks for the report! I finally fixed this issue by installing a distribution of Linux where this issue appears as well happening o.O

The current upstream version should fix this issue!

@nivit
Copy link
Author

nivit commented Mar 17, 2013

Excellent! Thank you very much!

By the way, is it possible for you to create a tag (0.5.5 ?) of the repository? It's not tightly necessary, but it would be very usefull to get the right snapshot of the source code for my port.

Thanks again.

@Schneegans
Copy link
Owner

Good idea! I did not know about tags... Done: https://github.com/Simmesimme/Gnome-Pie/tags

@nivit
Copy link
Author

nivit commented Mar 17, 2013

Thank you very much! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants