Giter VIP home page Giter VIP logo

ruby-libnotify's People

Contributors

vargolo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ruby-libnotify's Issues

core dump at exit with ruby 1.9.3

Everything works fine until exit time where it core dumps (despite me calling Notify.uninit)

Simple test case:

#!/usr/bin/env ruby
require 'RNotify'

Notify.init "blah"
n = Notify::Notification.new "summary", "text", nil
n.show
Kernel.sleep 5
n.close
Notify.uninit
puts "end"

Result from running:

notification displays for about 5 seconds as expected but then core dumps after "end" is logged.. full output:

end
[BUG] gc_sweep(): unknown data type 0x1e(0x2064878)
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

[BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

zsh: segmentation fault (core dumped) ./test.rb

The core dump isn't very useful I'll have to work out how to rebuild the gem with -g2.

Gem installation fails on fedora 13 64bit

Setting up Install Process
Package libnotify-devel-0.5.0-1.fc13.x86_64 already installed and latest version
Package libnotify-0.5.0-1.fc13.x86_64 already installed and latest version
Nothing to do

~# ruby -v
ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]

~# gem search --remote ruby-libnotify

*** REMOTE GEMS ***

ruby-libnotify (0.4.1 ruby)
~# gem install --remote ruby-libnotify
Building native extensions. This could take a while...
ERROR: Error installing ruby-libnotify:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for notify_init() in -lnotify... yes
with GtkStatusIcon.. yes
with geometry hints.. yes
with closed reason.. yes
creating Makefile

make
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -Wall -I/usr/lib64/ruby/site_ruby/1.8/x86_64-linux -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_STATUS_ICON -DHAVE_GEOMETRY_HINTS -DHAVE_CLOSED_REASON -c rnotify.c
rnotify.c:10:23: error: rbgobject.h: No such file or directory
rnotify.c: In function ‘_wrap_alloc_free’:
rnotify.c:45: warning: implicit declaration of function ‘RVAL2GOBJ’
rnotify.c:45: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_init’:
rnotify.c:216: warning: cast to pointer from integer of different size
rnotify.c:244: warning: implicit declaration of function ‘G_INITIALIZE’
rnotify.c: In function ‘_wrap_notification_update’:
rnotify.c:271: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_attach_to’:
rnotify.c:303: warning: cast to pointer from integer of different size
rnotify.c:304: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_show’:
rnotify.c:335: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_timeout’:
rnotify.c:359: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_category’:
rnotify.c:385: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_urgency’:
rnotify.c:410: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_pixbuf_icon’:
rnotify.c:448: warning: cast to pointer from integer of different size
rnotify.c:449: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_hint32’:
rnotify.c:477: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_hint_double’:
rnotify.c:505: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_hint_string’:
rnotify.c:534: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_hint_byte’:
rnotify.c:562: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_clear_hints’:
rnotify.c:585: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_set_geometry_hints’:
rnotify.c:617: warning: cast to pointer from integer of different size
rnotify.c:618: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_add_action’:
rnotify.c:663: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_clear_actions’:
rnotify.c:702: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_close’:
rnotify.c:725: warning: cast to pointer from integer of different size
rnotify.c: In function ‘_wrap_notification_get_closed_reason’:
rnotify.c:752: warning: cast to pointer from integer of different size
rnotify.c: In function ‘Init_rnotify’:
rnotify.c:776: warning: implicit declaration of function ‘G_DEF_CLASS2’
make: *** [rnotify.o] Error 1

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-libnotify-0.4.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-libnotify-0.4.1/ext/gem_make.out

Build-Problem

Gem doesn't build, either with gem-install nor yaourt (Arch Linux AUR Package)

I think this is the relevant message:

make: *** [rnotify.o] Fehler 1

(Fehler=Error)

Error when calling Notify.uninit

I'm getting
(null)-CRITICAL **:dbus_g_proxy_disconnect_signal: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
when I try to call Notify.uninit. My code looks like this:

http://gist.github.com/578757

I've looked through the lib code and played with it but everything seems fine there. I wonder if you could give me some pointers on how to fix this. I'm running on Ubuntu 10.10.

Bundle as Gem

It would be useful if this were to be released as a gem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.