Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306211 - app-office/openoffice-3.2.0 and 3.1.1, with KDE integration, fail to start with X-Error: BadDrawable
Summary: app-office/openoffice-3.2.0 and 3.1.1, with KDE integration, fail to start wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 306913 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-21 16:47 UTC by Antanas Uršulis
Modified: 2010-02-26 18:15 UTC (History)
4 users (show)

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


Attachments
patch to hardcode "native" Qt graphics backend (qt-use-native-backend.diff,391 bytes, patch)
2010-02-22 00:18 UTC, Antanas Uršulis
Details | Diff
ebuild with new patch enabled (openoffice-3.2.0.ebuild,12.49 KB, text/plain)
2010-02-22 00:19 UTC, Antanas Uršulis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antanas Uršulis 2010-02-21 16:47:36 UTC
Openoffice 3.1.1 and 3.2.0 do not start with kde USE-flag enabled. The splash screen shows up, the progress bar goes full, then the main windows appears and immediately closes (I can get a glimpse of the menu, toolbar, etc. before it disappears) with the following messages in the terminal:

[ 18:40:13 ][ uranium@diamond ~ ]$
oowriter
[ 18:41:20 ][ uranium@diamond ~ ]$
X-Error: BadDrawable (invalid Pixmap or Window parameter)
        Major opcode: 62 (X_CopyArea)
        Resource ID:  0x0
        Serial No:    461 (461)
These errors are reported asynchronously,
set environment variable SAL_SYNCHRONIZE to 1 to help debugging

and

[ 18:42:15 ][ uranium@diamond ~ ]$
SAL_SYNCHRONIZE=1 oowriter
[ 18:42:22 ][ uranium@diamond ~ ]$
X-Error: BadDrawable (invalid Pixmap or Window parameter)
        Major opcode: 62 (X_CopyArea)
        Resource ID:  0x0
        Serial No:    597 (597)

Reproducible: Always

Steps to Reproduce:
Comment 1 Antanas Uršulis 2010-02-21 16:50:27 UTC
emerge -pqv openoffice
[ebuild   R   ] app-office/openoffice-3.2.0  USE="bash-completion cups dbus gtk kde opengl pam (-aqua) -binfilter -debug -eds -gnome -gstreamer -java (-kdeenablefinal) -ldap -mono -nsplugin -odk" LINGUAS="en lt -af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu"

emerge --info
Portage 2.2_rc63 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-rc8-0220 x86_64)
=================================================================                            
System uname: Linux-2.6.33-rc8-0220-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9600_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 21 Feb 2010 13:45:02 +0000                                                     
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.1_p2                                                                            
dev-java/java-config: 2.1.10                                                                           
dev-lang/python:     2.6.4-r1, 3.1.1-r1                                                                
dev-python/pycrypto: 2.1.0                                                                             
dev-util/ccache:     2.4-r8                                                                            
dev-util/cmake:      2.8.0-r2                                                                          
sys-apps/baselayout: 2.0.1                                                                             
sys-apps/openrc:     0.6.0-r1                                                                          
sys-apps/sandbox:    2.2                                                                               
sys-devel/autoconf:  2.13, 2.65                                                                        
sys-devel/automake:  1.10.3, 1.11.1                                                                    
sys-devel/binutils:  2.20                                                                              
sys-devel/gcc:       4.4.3                                                                             
sys-devel/gcc-config: 1.4.1                                                                            
sys-devel/libtool:   2.2.6b                                                                            
virtual/os-headers:  2.6.32                                                                            
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                         
ACCEPT_LICENSE="*"                                                                                     
CBUILD="x86_64-pc-linux-gnu"                                                                           
CFLAGS="-march=core2 -O2 -pipe"                                                                        
CHOST="x86_64-pc-linux-gnu"                                                                            
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                                                                        
CXXFLAGS="-march=core2 -O2 -pipe"                                                                                            
DISTDIR="/usr/portage/distfiles"                                                                                             
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.elen.ktu.lt/gentoo/ http://de-mirror.org/distro/gentoo/"
LANG="lt_LT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="lt en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /usr/local/portage/local"
SYNC="rsync://rsync.lt.gentoo.org/gentoo-portage"
USE="X aac acl acpi akonadi alsa amd64 asf avilive bash-completion berkdb bzip2 bzlib cdda cli clucene consolekit cracklib crypt css cups cxx dbus dell dri dv dvd dvdr dvdread encode exif fbcondecor ffmpeg flac fortran freetype gdbm gif gnutls gpm hal iconv ieee1394 imagemagick imlib jpeg kde lame laptop lcms lzma mad mjpeg mmx modules mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcre pdf perl png policykit pppd python qt3support qt4 quicktime rar readline realmedia reflection rss semantic-desktop session smp spell spl sse sse2 ssl ssse3 svg sysfs tcpd theora threads tiff truetype unicode usb vcd vim-syntax vorbis wav wavpack webkit wicd wmp x264 xcb xcomposite xinerama xml xorg xscreensaver xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon directory ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="lt en" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="niash" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Franz Trischberger 2010-02-21 17:41:01 UTC
which kde-style/windeko do you use? Probably changing to oxygen (works here with 3.1.1) or something like Plastique or QtCurve fixes your issue?
Comment 3 Antanas Uršulis 2010-02-21 17:47:54 UTC
Well, no, I was using oxygen the whole time. I've just had a hunch this might have to do something with Qt's raster rendering engine (qt-gui[raster]). Do you have it turned on?
Comment 4 Antanas Uršulis 2010-02-21 18:18:58 UTC
My thoughts were correct. I have just reemerged qt-gui without raster USE flag and it works. Now, after a little googling, I found out that you can choose the native backend by running a Qt application with "-graphicssystem native" as command-line parameters. Is there any way to pass this to Openoffice?
Comment 5 Bartosz Brachaczek 2010-02-21 23:34:31 UTC
Confirming that x11-libs/qt-gui built with USE=raster breaks OOo. Maybe openoffice ebuild should block raster USE flag for qt-gui?
Comment 6 Antanas Uršulis 2010-02-22 00:18:08 UTC
Created attachment 220657 [details, diff]
patch to hardcode "native" Qt graphics backend

I don't think so, really. As a workaround, here's a quick one-line patch that hardcodes OO.o to use the "native" backend which is always available. The build went OK and it works for me. Of course, it would be best to somehow pass the "-graphicssystem native" option to the application, but I couldn't find a way. You'll need an updated ebuild (next post).
Comment 7 Antanas Uršulis 2010-02-22 00:19:06 UTC
Created attachment 220659 [details]
ebuild with new patch enabled
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2010-02-22 10:12:09 UTC
I've added the patch to the OOo 3.2.0 ebuild now, thanks for providing it! Closing
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2010-02-22 16:51:21 UTC
*** Bug 306223 has been marked as a duplicate of this bug. ***
Comment 10 Dror Levin (RETIRED) gentoo-dev 2010-02-26 18:15:21 UTC
*** Bug 306913 has been marked as a duplicate of this bug. ***