Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533674 - media-gfx/hugin-2014.0.0-r1 - hugin: BadRequest (invalid request code or no such operation)'. Details: serial 679 error_code 1 request_code 155 minor_code 19
Summary: media-gfx/hugin-2014.0.0-r1 - hugin: BadRequest (invalid request code or no s...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-27 11:54 UTC by Cyril42e
Modified: 2017-07-26 09:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril42e 2014-12-27 11:54:18 UTC
Hugin crashes after splashscreen window is displayed briefly with message:

The program 'hugin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 679 error_code 1 request_code 155 minor_code 19)
  (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 --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

If I run "hugin --sync" I get the same message but with error code 1861 instead of 679. With hugin-2014.0.0 (which uses wxGTK 2.8 instead of 3.0) I get error codes 926 and 1946 (--sync). It was running fine until I did a revdep-rebuild.

I compiled it manually in debug mode, I could not break on gdk_x_error (not defined), but managed to get a backtrace by running it step by step:

(gdb) bt
#0  wxStringBase::wxStringBase (this=0x7fffffffc830, psz=0x8486a0 L"GLPreviewCanvas") at /usr/include/wx-2.8/wx/string.h:368
#1  0x00000000005f8bbf in wxString::wxString (this=0x7fffffffc830, psz=0x8486a0 L"GLPreviewCanvas") at /usr/include/wx-2.8/wx/string.h:699
#2  0x0000000000711308 in GLViewer::GLViewer (this=0x15fd5d0, parent=0x15f8000, pano=..., args=0x7fffffffccf0, frame_in=0x1511b90, shared_context=0x0) at /tmp/hugin-2014.0.0/src/hugin1/hugin/GLViewer.cpp:210
#3  0x000000000070a172 in GLPreview::GLPreview (this=0x15fd5d0, parent=0x15f8000, pano=..., args=0x7fffffffccf0, frame=0x1511b90, shared_context=0x0) at /tmp/hugin-2014.0.0/src/hugin1/hugin/GLViewer.h:129
#4  0x00000000006f342e in GLPreviewFrame::GLPreviewFrame (this=0x1511b90, frame=0xe8b4d0, pano=...) at /tmp/hugin-2014.0.0/src/hugin1/hugin/GLPreviewFrame.cpp:454
#5  0x000000000060c745 in MainFrame::MainFrame (this=0xe8b4d0, parent=0x0, pano=...) at /tmp/hugin-2014.0.0/src/hugin1/hugin/MainFrame.cpp:481
#6  0x00000000005f5d2f in huginApp::OnInit (this=0xbba610) at /tmp/hugin-2014.0.0/src/hugin1/hugin/huginApp.cpp:333
#7  0x00000000005f9031 in wxAppConsole::CallOnInit (this=0xbba610) at /usr/include/wx-2.8/wx/app.h:76
#8  0x00007ffff34398ec in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x00000000005f4817 in main (argc=2, argv=0x7fffffffda98) at /tmp/hugin-2014.0.0/src/hugin1/hugin/huginApp.cpp:125
Comment 1 Cyril42e 2014-12-27 11:55:21 UTC
# emerge --info
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.17.7-gentoo x86_64)
=================================================================
System uname: Linux-3.17.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8082220 total,   2698196 free
KiB Swap:    9433084 total,   8402428 free
Timestamp of tree: Sat, 27 Dec 2014 08:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: seeds perso gentoo
ACCEPT_KEYWORDS="amd64 x86"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="    http://mirror.ovh.net/gentoo-distfiles/     ftp://ftp.free.fr/mirrors/ftp.gentoo.org/     http://mirror.switch.ch/ftp/mirror/gentoo/     http://gentoo.intergenia.de     "
LANG="en_FR.UTF-8"
LC_ALL="en_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/seeds /usr/local/portage/perso /usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 apm atm audiofile berkdb bluetooth bz2 bzip2 cairo cdda cdr cli cracklib crypt cxx dbus dell divx dri dv dvb dvd dvdr dvdread esd exif fat ffmpeg firefox flac fortran fuse gdbm gif gimp glx gtk gtk2 h264 hardened iconv icu ieee1394 ipv6 jpeg jpeg2k kde kpathsea lame ldap libnotify lirc lm_sensors mbox mime mmx modules mp3 mp4 mpeg multilib musepack ncurses network nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp pam pcmcia pcre pdf png posix qt qt3support quicktime readline real reiserfs samba sdl semantic-desktop session spell sqlite sse sse2 sse4_1 ssl ssse3 svg tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vdr vorbis vpx wifi win32codecs wma wmf wmp x264 xcomposite xfs xinerama xml xosd xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="intel hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon casio_qv ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" LIRC_DEVICES="devinput pctv inputlirc" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx radeon intel vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Cyril42e 2015-01-04 11:47:00 UTC
I think I found out where the problem comes from: I was experiencing problems with ATI proprietary drivers, so I tried to switch to the opensource radeon driver, except it didn't work and actually switched to my Intel integrated graphic card. 

So this bug happens actually only when I'm using the Intel integrated graphic card ("Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)", that is integrated with "Intel(R) Core(TM) i7-4810MQ CPU", and uses i915 module). When I switch back to fglrx the bug disappears.

I found out this after noticing that aegisub was triggering the same error and glxgears was also failing.
Comment 3 Pacho Ramos gentoo-dev 2017-07-26 09:20:43 UTC
2016.2.0 looks to work ok