Gtkmm-forge Digest, Vol 22, Issue 7



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 515135] glibmm needs the option not to abort	programs
      with different encodings (glibmm (bugzilla.gnome.org))
   2. [Bug 523910] New: Use Requires.private in	*.pc-file for
      pkg-config (glibmm (bugzilla.gnome.org))
   3. [Bug 523910] Use Requires.private in *.pc-file for	pkg-config
      (glibmm (bugzilla.gnome.org))
   4. [Bug 524126] New: giomm build failure.
      (glibmm (bugzilla.gnome.org))
   5. [Bug 524128] New: Gtk::TextView widget doesn't	like being
      updated from other threads (gtkmm (bugzilla.gnome.org))
   6. [Bug 524128] Gtk::TextView widget doesn't like	being updated
      from other threads (gtkmm (bugzilla.gnome.org))
   7. [Bug 524128] Gtk::TextView widget doesn't like	being updated
      from other threads (gtkmm (bugzilla.gnome.org))


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

Message: 1
Date: Sat, 22 Mar 2008 15:13:39 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 515135] glibmm needs the option not to
	abort	programs with different encodings
To: gtkmm-forge lists sourceforge net
Message-ID: <20080322151339 C59E523F5CE 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=515135

  glibmm | strings | Ver: unspecified

Takao Fujiwara changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |NOTABUG




------- Comment #11 from Takao Fujiwara  2008-03-22 15:13 UTC -------
Thanks very much for your time and explanation.

I couldn't understand what the debuger meant and which errors should be caught.
I'm closing this as "Not a Bug".


-- 
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=515135.



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

Message: 2
Date: Sat, 22 Mar 2008 22:08:22 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 523910] New: Use Requires.private in
	*.pc-file for pkg-config
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-523910-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=523910

  glibmm | general | Ver: 2.16.x
           Summary: Use Requires.private in *.pc-file for pkg-config
           Product: glibmm
           Version: 2.16.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: bugzilla gnome org e-tobi net
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
At the moment `pkg-config glibmm-2.4.pc --libs` returns:

   -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0 

...but there is usually no need to link against the extra libs when not linking
statically.

Using Requires.private in the *.pc-File helps here:

    - Requires: gobject-2.0 sigc++-2.0
    + Requires.private: gobject-2.0 sigc++-2.0

This way, `pkg-config glibmm-2.4.pc --libs` returns:

    -lglibmm-2.4 

and `pkg-config glibmm-2.4.pc --libs --static` returns:

    -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0

Tobias

Steps to reproduce:
Compile something with "pkg-config glibmm-2.4.pc --libs"

Actual results:
The resulting executable will be linked against libgobject-2.0 and linsigc-2.0,
even if it doesn't use any symbols from these libs.

Expected results:


Does this happen every time?


Other information:


-- 
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=523910.



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

Message: 3
Date: Sun, 23 Mar 2008 17:07:00 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 523910] Use Requires.private in
	*.pc-file for	pkg-config
To: gtkmm-forge lists sourceforge net
Message-ID: <20080323170700 BF99223F5E8 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=523910

  glibmm | general | Ver: 2.16.x

dmacks netspace org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmacks netspace org




------- Comment #1 from dmacks netspace org  2008-03-23 17:07 UTC -------
Public headers of glibmm #include headers of glib and sigc++: those packages
are required even when compiling in a dynamic environment.


-- 
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=523910.



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

Message: 4
Date: Mon, 24 Mar 2008 13:56:37 +0000 (UTC)
From: "glibmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 524126] New: giomm build failure.
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-524126-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=524126

  glibmm | io | Ver: 2.16.x
           Summary: giomm build failure.
           Product: glibmm
           Version: 2.16.x
          Platform: Other
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Normal
         Component: io
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: skg fluent co in
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: 2.21/2.22
   GNOME milestone: Unspecified


I'm trying to build glibmm on windows using mingw (gcc-3.4.5)

glibmm build went fine. but giomm build failed showing undefined references to
the following.

g_desktop_app_info_get_type
g_unix_input_stream_get_type
g_unix_output_stream_get_type
Glib::wrap_register(g_desktop_app_info_get_type(),
&Gio::DesktopAppInfo_Class::wrap_new);
Glib::wrap_register(g_unix_input_stream_get_type(),
&Gio::UnixInputStream_Class::wrap_new);
Glib::wrap_register(g_unix_output_stream_get_type(),
&Gio::UnixOutputStream_Class::wrap_new);

So I've commented out appropriate lines in giomm/wrap_init.cc file and the
build went fine.

Surya


-- 
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=524126.



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

Message: 5
Date: Mon, 24 Mar 2008 14:04:51 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 524128] New: Gtk::TextView widget
	doesn't	like being updated from other threads
To: gtkmm-forge lists sourceforge net
Message-ID: <bug-524128-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=524128

  gtkmm | build | Ver: 2.10.x
           Summary: Gtk::TextView widget doesn't like being updated from
                    other threads
           Product: gtkmm
           Version: 2.10.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Normal
         Component: build
        AssignedTo: gtkmm-forge lists sourceforge net
        ReportedBy: VAnhTu1987 gmail com
         QAContact: gtkmm-forge lists sourceforge net
     GNOME version: 2.21/2.22
   GNOME milestone: Unspecified


As the title said, if I create a separate thread and update a TextBuffer, which
has been associated with a TextView. The program crashes sooner rather than
later. The TextView widget often got messed up when that happened.

It seems the stack or internal state of Gtk(mm) was corrupted. The behavior is
random: Some times it crashes right away, sometimes a few seconds later. Error
messages spitted out by Gtk+ also suggested this: I got entirely unrelated
messages in different runs. Here are two out of many:

====================
(whiteboard:11964): Gtk-WARNING **: Invalid text buffer iterator: either the
iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have
been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position
across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be
referred to by character offset)
will invalidate all outstanding iterators
=====================

=====================
**
**
Pango:ERROR:(/build/buildd/pango1.0-1.20.0/pango/pango-layout.c:5910):pango_layout_iter_next_line:
assertion failed: (iter->line_extents_link != NULL)
=====================

I am the developer of Linux Whiteboard. The behavior was observed when I ran my
program. But I tested it on several test apps and they exposed the same
behavior.

*********************
Steps to reproduce:
 - Build a simple GUI using Glade with a TextView and a Button.
 - Associate a TextBuffer with the TextView and update the TextBuffer using
Gtk::TextBuffer::insert_at_cursor() .
 - Write code to spawn a thread when the Button is clicked, the thread function
just updates the TextBuffer once per second.
 - Load and run the GUI in the app and watch it crash. User may have to select
the text inside or otherwise move the mouse around the TextView.


-- 
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=524128.



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

Message: 6
Date: Mon, 24 Mar 2008 14:07:04 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 524128] Gtk::TextView widget doesn't
	like	being updated from other threads
To: gtkmm-forge lists sourceforge net
Message-ID: <20080324140704 828CF23F510 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=524128

  gtkmm | build | Ver: 2.10.x




------- Comment #1 from VAnhTu1987 gmail com  2008-03-24 14:07 UTC -------
I can provide a minimal test case when needed. It is quite easy to reproduce
though.


-- 
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=524128.



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

Message: 7
Date: Mon, 24 Mar 2008 14:13:19 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 524128] Gtk::TextView widget doesn't
	like	being updated from other threads
To: gtkmm-forge lists sourceforge net
Message-ID: <20080324141319 3AA4823F510 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=524128

  gtkmm | build | Ver: 2.10.x

Jonathon Jongsma (jonner) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathon quotidian org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |NOTABUG




------- Comment #2 from Jonathon Jongsma (jonner)  2008-03-24 14:13 UTC -------
It is true that gtk widgets don't like to be modified from other threads.  That
is because GTK+ is not threadsafe.  One option is to use a Glib::Dispatcher for
communication between different threads (see
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Dispatcher.html).
Alternately, use the gdk thread-related functions to protect *all* gtk function
calls made from other threads:
http://library.gnome.org/devel/gdk/stable/gdk-Threads.html 

If you already are doing one of these things and it still has problems, feel
free to re-open this bug and somebody can help investigate the issue further.


-- 
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=524128.



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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

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


End of Gtkmm-forge Digest, Vol 22, Issue 7
******************************************


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