Gtkmm-forge Digest, Vol 38, Issue 8



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 588988] OptionGroup::on_post_parse()	overrides must call
      the base class's implementation (glibmm (bugzilla.gnome.org))
   2. [Bug 548022] Gtk::Builder::get_widget():	Incomplete
      documentation about exceptions thrown (gtkmm (bugzilla.gnome.org))
   3. [Bug 548022] Gtk::Builder::get_widget():	Incomplete
      documentation about exceptions thrown (gtkmm (bugzilla.gnome.org))
   4. [Bug 589267] New: Crash when	Gtk::Builder::get_widget()
      doesn't find the specified widget (gtkmm (bugzilla.gnome.org))
   5. [Bug 589267] Crash when Gtk::Builder::get_widget()	doesn't
      find the specified widget (gtkmm (bugzilla.gnome.org))
   6. [Bug 548022] Gtk::Builder::get_widget():	Incomplete
      documentation about exceptions thrown (gtkmm (bugzilla.gnome.org))
   7. [Bug 548022] Gtk::Builder::get_widget():	Incomplete
      documentation about exceptions thrown (gtkmm (bugzilla.gnome.org))


----------------------------------------------------------------------

Message: 1
Date: Tue, 21 Jul 2009 01:31:44 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 588988] OptionGroup::on_post_parse()
	overrides must call the base class's implementation
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721013144 535B923F591 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=588988

  glibmm | general | Ver: 2.20.x




------- Comment #2 from Hubert Figuiere  2009-07-21 01:31 UTC -------
Requiring to call the inherited implementation is prone to errors.

One way would be to have the current implementation not being this virtual
method but a another private method that will call the virtual method.

I'm sure we can do it in an ABI compatible way, but I don't think it is
important enough. However for Gtkmm 3, that would be nice.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=588988.



------------------------------

Message: 2
Date: Tue, 21 Jul 2009 10:08:13 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 548022] Gtk::Builder::get_widget():
	Incomplete documentation about exceptions thrown
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721100813 7471023F590 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=548022

  gtkmm | general | Ver: 2.12.x




------- Comment #2 from Alexander Shaduri  2009-07-21 10:08 UTC -------
It seems that we have a "two issues in one bug" situation - a segfault (more
important), and a documentation issue (less important). The title reflects the
less important issue.
Should I file one of them separately (which one)?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=548022.



------------------------------

Message: 3
Date: Tue, 21 Jul 2009 13:41:07 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 548022] Gtk::Builder::get_widget():
	Incomplete documentation about exceptions thrown
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721134108 4DA6423F518 label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=548022

  gtkmm | general | Ver: 2.12.x




------- Comment #3 from Murray Cumming  2009-07-21 13:40 UTC -------
Doesn't it just fix the crash if you catch that exception? If there are two
separate bugs then please do file two bug reports.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=548022.



------------------------------

Message: 4
Date: Tue, 21 Jul 2009 16:00:51 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 589267] New: Crash when
	Gtk::Builder::get_widget() doesn't find the specified widget
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-589267-5595 http bugzilla gnome org/>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=589267

  gtkmm | general | Ver: 2.16.x
           Summary: Crash when Gtk::Builder::get_widget() doesn't find the
                    specified widget
           Product: gtkmm
           Version: 2.16.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: ashaduri gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Steps to reproduce:
If I use the Gtk::Builder::get_widget() function to get a widget that doesn't
exist in the .ui file, I get the following:
(example:15351): gtkmm-CRITICAL **: gtkmm: object `DialogBasic_' not found in
GtkBuilder file.
Segmentation fault

Note that this happens even if I try to catch the exceptions. The following
example (modified from
gtkmm-documentation-2.16.0/examples/book/builder/basic/main.cc) demonstrates
the issue.


#include <gtkmm.h>
#include <iostream>

int main (int argc, char **argv)
{
  Gtk::Main kit(argc, argv);

  //Load the GtkBuilder file and instantiate its widgets:
  Glib::RefPtr<Gtk::Builder> refBuilder = Gtk::Builder::create();
  try {
    refBuilder->add_from_file("basic.ui");
  }
  catch(const Glib::Error& ex) {
    std::cerr << "Gtk::Builder::create() error: " << ex.what() << std::endl;
    return 1;
  }

  Gtk::Dialog* pDialog = 0;

  try {
    // Notice the invalid name!
    refBuilder->get_widget("DialogBasic_DOES_NOT_EXIST", pDialog);
  }
  catch(const Glib::Error& ex) {
    std::cerr << "get_widget() error: " << ex.what() << std::endl;
  }

  if(pDialog) {
    kit.run(*pDialog);
  }

  return 0;
}


Stack trace:
#0  Gtk::Builder::get_widget_checked (this=<value optimized out>, 
    name= 0x7fffffffda70, type=6592576) at builder.cc:265
#1  0x0000000000401627 in main (argc=1, argv=0x7fffffffdbb8)
    at /usr/include/gtkmm-2.4/gtkmm/builder.h:474


Other information:
Tested with gtkmm 2.16.0, gtk2-2.16.4 on openSUSE 11.1 x86_64.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=589267.



------------------------------

Message: 5
Date: Tue, 21 Jul 2009 16:03:45 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 589267] Crash when
	Gtk::Builder::get_widget()	doesn't find the specified widget
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721160345 E6AA123F52E label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=589267

  gtkmm | general | Ver: 2.16.x




------- Comment #1 from Alexander Shaduri  2009-07-21 16:03 UTC -------
Forgot to add, the "basic.ui" file comes from
gtkmm-documentation-2.16.0/examples/book/builder/basic/basic.ui . You can just
drop the above example as main.cc in there and it will compile. Also, this is
somewhat related to http://bugzilla.gnome.org/show_bug.cgi?id=548022


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=589267.



------------------------------

Message: 6
Date: Tue, 21 Jul 2009 16:06:44 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 548022] Gtk::Builder::get_widget():
	Incomplete documentation about exceptions thrown
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721160644 8A88F23F58F label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=548022

  gtkmm | general | Ver: 2.12.x




------- Comment #4 from Alexander Shaduri  2009-07-21 16:06 UTC -------
(In reply to comment #1)
> Yes. I have added that catch to the examples.

Sorry, but the master version at
http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/book/builder/basic/main.cc
doesn't have the try/catch block around the get_widget() call. Or am I looking
at the wrong version?

(In reply to comment #3)
> Doesn't it just fix the crash if you catch that exception? If there are two
> separate bugs then please do file two bug reports.
> 

No, it doesn't. No exception is thrown (at least in 2.16.0). I filed
http://bugzilla.gnome.org/show_bug.cgi?id=589267 about that.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=548022.



------------------------------

Message: 7
Date: Tue, 21 Jul 2009 16:16:50 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 548022] Gtk::Builder::get_widget():
	Incomplete documentation about exceptions thrown
To: gtkmm-forge lists sourceforge net
Message-ID: <20090721161650 E89EC23F58F label gnome org>
Content-Type: text/plain; charset=utf-8

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=548022

  gtkmm | general | Ver: 2.12.x




------- Comment #5 from Murray Cumming  2009-07-21 16:16 UTC -------
(In reply to comment #4)
> (In reply to comment #1)
> > Yes. I have added that catch to the examples.
> 
> Sorry, but the master version at
> http://git.gnome.org/cgit/gtkmm-documentation/tree/examples/book/builder/basic/main.cc
> doesn't have the try/catch block around the get_widget() call. Or am I looking
> at the wrong version?

I added the catch around the add_to_file() call:
http://git.gnome.org/cgit/gtkmm-documentation/commit/?id=500884ea10a3dfc1b18cf488b56e9fc0938b989f

I don't think get_widget() throws any exception. Or are you sure that it does?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=548022.



------------------------------

------------------------------------------------------------------------------


------------------------------

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 38, Issue 8
******************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]