Anjuta crashes when opening .ui files

Bug #1506344 reported by shemgp
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
anjuta (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I create an Anjuta PyGTK (automake) project named pygtk-testing. When I double click on the pygtk_testing.ui under src/ui it crashes Anjuta. I expect that it would not crash but load the file in glade.

Here's the output in the screen:

user@box:~$ lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04
user@box:~$ dpkg -s anjuta
Package: anjuta
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 4612
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 2:3.14.0-1
Depends: libanjuta-3-0 (>= 2:3.2.0), libapr1 (>= 1.2.7), libc6 (>= 2.15), libdevhelp-3-2 (>= 3.12.0-2~), libgcc1 (>= 1:4.1.1), libgda-5.0-4 (>= 5.0.2), libgdk-pixbuf2.0-0 (>= 2.22.0), libgdl-3-5 (>= 3.8.1), libgladeui-2-6 (>= 3.16.1), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.9.12), libgtksourceview-3.0-1 (>= 3.0.0), libpango-1.0-0 (>= 1.14.0), libpython2.7 (>= 2.7), libstdc++6 (>= 4.9), libsvn1 (>= 1.5.0), libvala-0.26-0 (>= 0.17.1), libvte-2.91-0, libwebkit2gtk-3.0-25 (>= 2.0.2), libxml2 (>= 2.7.4), anjuta-common (= 2:3.14.0-1)
Recommends: gcc | g++, make, yelp, automake, autoconf, autogen, intltool, gdb, libtool, liblocale-gettext-perl, valac (>= 0.25)
Suggests: libgtk-3-dev, libgtkmm-3.0-dev, glade, gjs, python-distutils-extra, python-rope
Description: GNOME development IDE, for C/C++
 This IDE for C/C++ and GNOME/Gtk+ applications has features that enable easy
 debugging, management of code and GUI design by providing a simple and
 usable user interface. It also integrates with version control systems
 like CVS, Git or Subversion.
Original-Maintainer: Debian GNOME Maintainers <email address hidden>
Homepage: http://www.anjuta.org/
user@box:~$ anjuta
GladeUI-Message: 15 missing displayable value for GtkWidget::AtkObject::accessible-role
GladeUI-Message: 1 missing displayable value for GtkButtonBox::layout-style
GladeUI-Message: 1 missing displayable value for GtkCellRendererAccel::accel-mode
GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes:
 GtkApplicationWindow needs an icon named 'widget-gtk-applicationwindow'

(anjuta:23805): Gdk-WARNING **: /build/buildd/gtk+3.0-3.14.12/./gdk/x11/gdkwindow-x11.c:5584 drawable is not a native X11 window

(anjuta:23805): Gdk-ERROR **: The program 'anjuta' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 4417 error_code 3 request_code 20 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
user@box:~$ dpkg -s glade
Package: glade
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 3441
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 3.18.3-1
Depends: libc6 (>= 2.7), libcairo2 (>= 1.2.4), libgdk-pixbuf2.0-0 (>= 2.22.0), libgladeui-2-6 (>= 3.16.1), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.12), libpango-1.0-0 (>= 1.18.0)
Recommends: libgtk-3-dev, devhelp
Description: GTK+ User Interface Builder
 Glade is a RAD tool to enable quick and easy development of user
 interfaces for the GTK+ toolkit.
 .
 The user interfaces designed in Glade are stored in the well-known
 XML format, enabling easy integration with external tools. You will
 probably want to use it with tools such as libglade, which can load
 the XML files and create the interfaces at runtime.
 .
 This version is more modular than previous ones, so you can install
 modules to add additional widgets for Glade to use.
Original-Maintainer: Debian GNOME Maintainers <email address hidden>
Homepage: http://glade.gnome.org/
user@box:~$

Thanks for your help.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: anjuta 2:3.14.0-1
ProcVersionSignature: Ubuntu 3.19.0-30.34-generic 3.19.8-ckt6
Uname: Linux 3.19.0-30-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Oct 15 14:57:11 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-09-28 (16 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: anjuta
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
shemgp (shemgp) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in anjuta (Ubuntu):
status: New → Confirmed
Revision history for this message
James Padel (izehouze) wrote :

Same error when creating new GTKmm simple C++ project. Double click ui file and ajunta crashes with

anjuta:32229): Gdk-ERROR **: The program 'anjuta' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 159250 error_code 3 request_code 20 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)

Revision history for this message
Nuno Gonçalves (ntmg-22) wrote :

The same error affect me, on Ubuntu 15.10

Revision history for this message
DanglingPointer (ferncasado) wrote :

I'm getting the same crash to desktop! When I double click on the UI, Anjuta crashes to desktop.

Any ETA on the fix?

running sudo Anjuta sorts the problem but I don't want to run Anjuta as root!

tags: added: xenial
Changed in anjuta (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Tony Arnold (tony-arnold) wrote :

This bug is still there in Ubuntu 16.04. Any progress on a fix or sensible workaround?

Revision history for this message
Jere Kupari (jemaku) wrote :
Revision history for this message
Grizzly(Francis Smit) (grizzly-smit) wrote :

this bug has returned in ubuntu 18.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.