# No handler id when exiting app

**URL:** <https://www.ruby-forum.com/t/no-handler-id-when-exiting-app/198130>\
**Category:** Ruby-Gnome 2\
**Created:** [October 26, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/no-handler-id-when-exiting-app/198130 "2010-10-26T21:49:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 26, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/no-handler-id-when-exiting-app/198130/1 "2010-10-26T21:49:25Z")

</div>

I get about 8-9 of these warnings if I switch between two source views a  
couple of times and then quit my app.

GLib-GObject-WARNING  
\*\*:/build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2390: instance  
`0x2c00060' has no handler with id`227’

I can’t seem to tally up the handler ids with the few I’m creating so  
I’m not quite sure where they are coming from.

Can anyone give me any pointers as to how I can find this problem?

I will try to localise it as best I can but as I only get the warnings  
once I quit it’s a bit tricky.

I’m not doing anything funny when exiting just calling the usual  
Gtk.main\_quit in the destroy handler.

Any pointers appreciated.

Phil

---

<div class="post-metadata">

**Author:** ![philthompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@philthompson](https://www.ruby-forum.com/u/philthompson)\
**Post date:** [October 26, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/no-handler-id-when-exiting-app/198130/2 "2010-10-26T22:46:25Z")

</div>

Okay I’ve narrowed it down to my subclass of SourceBuffer. Although I  
think it’s more to do with SourceBuffer. Weirdly if I create two  
SourceBuffers then it’s fine. If I instantiate 3 then I get the  
warnings.

BTW: I’m using gtksourceview2

---

<div class="post-metadata">

**Author:** ![philthompson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@philthompson](https://www.ruby-forum.com/u/philthompson)\
**Post date:** [October 26, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/no-handler-id-when-exiting-app/198130/3 "2010-10-26T22:50:59Z")

</div>

Oh dear. It appears to be a bit random too ☹
