emacs crasches when typing "emacs" on command line. "sudo emacs" works fine. .emacs.d in user home folder is owned by user

Bug #1362808 reported by Jonas Hallgren
This bug report is a duplicate of:  Bug #1355274: Emacs-24 crashes at startup [$5]. Edit Remove
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Terminal
New
Undecided
Unassigned

Bug Description

jonas@rhino:~$ emacs
X protocol error: BadMatch (invalid parameter attributes) on protocol request 139
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
For details, see etc/PROBLEMS.
X protocol error: RenderBadPicture (invalid Picture parameter) on protocol request 139
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
For details, see etc/PROBLEMS.
Fatal error 6: Aborted
Backtrace:
emacs[0x4f74cb]
emacs[0x4dcf3e]
emacs[0x4f7513]
emacs[0x4b219b]
emacs[0x4b420c]
emacs[0x4b426d]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XError+0x12b)[0x7f517eebf54b]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3b5e7)[0x7f517eebc5e7]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3b695)[0x7f517eebc695]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x55)[0x7f517eebcfc5]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XPending+0x4d)[0x7f517eeaf12d]
...
Aborted (core dumped)

SUDO works fine

jonas@rhino:~$ sudo emacs
jonas@rhino:~$

ProblemType: Bug
DistroRelease: elementary OS 0.3
Package: elementary-desktop 1.350+394~ubuntu0.3.1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CrashDB: elementary_meta
CurrentDesktop: Pantheon
Date: Thu Aug 28 22:26:15 2014
InstallationDate: Installed on 2014-08-25 (2 days ago)
InstallationMedia: elementary OS 0.3 "Freya" - Daily amd64 (20140810)
SourcePackage: elementary-meta
ThirdParty: True
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jonas Hallgren (hallgrenjonas) wrote :
Revision history for this message
Kasper (ubuntu-ole) wrote :

Has to do with XLIB_SKIP_ARGB_VISUALS ("internet is full of it")

The temporary fix for me:

Create /usr/local/bin/emacs-fix

export XLIB_SKIP_ARGB_VISUALS=1
emacs24-x

Open /usr/share/applications/emacs.desktop:
Change Exec=/usr/local/bin/emacs-fix %F

Perhaps somebody here can help finding a good fix for it.

Revision history for this message
Jonas Hallgren (hallgrenjonas) wrote : Re: [Bug 1362808] Re: emacs crasches when typing "emacs" on command line. "sudo emacs" works fine. .emacs.d in user home folder is owned by user

Thanks for taking your time sharing this fix with me!

All the best,
Jonas

fredag 29 augusti 2014 skrev Kasper <email address hidden>:

> Has to do with XLIB_SKIP_ARGB_VISUALS ("internet is full of it")
>
> The temporary fix for me:
>
> Create /usr/local/bin/emacs-fix
>
> export XLIB_SKIP_ARGB_VISUALS=1
> emacs24-x
>
>
> Open /usr/share/applications/emacs.desktop:
> Change Exec=/usr/local/bin/emacs-fix %F
>
>
> Perhaps somebody here can help finding a good fix for it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1362808
>
> Title:
> emacs crasches when typing "emacs" on command line. "sudo emacs" works
> fine. .emacs.d in user home folder is owned by user
>
> Status in elementary OS:
> New
>
> Bug description:
> jonas@rhino:~$ emacs
> X protocol error: BadMatch (invalid parameter attributes) on protocol
> request 139
> When compiled with GTK, Emacs cannot recover from X disconnects.
> This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
> For details, see etc/PROBLEMS.
> X protocol error: RenderBadPicture (invalid Picture parameter) on
> protocol request 139
> When compiled with GTK, Emacs cannot recover from X disconnects.
> This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
> For details, see etc/PROBLEMS.
> Fatal error 6: Aborted
> Backtrace:
> emacs[0x4f74cb]
> emacs[0x4dcf3e]
> emacs[0x4f7513]
> emacs[0x4b219b]
> emacs[0x4b420c]
> emacs[0x4b426d]
> /usr/lib/x86_64-linux-gnu/libX11.so.6(_XError+0x12b)[0x7f517eebf54b]
> /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3b5e7)[0x7f517eebc5e7]
> /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3b695)[0x7f517eebc695]
>
> /usr/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x55)[0x7f517eebcfc5]
> /usr/lib/x86_64-linux-gnu/libX11.so.6(XPending+0x4d)[0x7f517eeaf12d]
> ...
> Aborted (core dumped)
>
>
> SUDO works fine
>
> jonas@rhino:~$ sudo emacs
> jonas@rhino:~$
>
> ProblemType: Bug
> DistroRelease: elementary OS 0.3
> Package: elementary-desktop 1.350+394~ubuntu0.3.1 [origin:
> LP-PPA-elementary-os-daily]
> ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
> Uname: Linux 3.13.0-34-generic x86_64
> ApportVersion: 2.14.1-0ubuntu3.3
> Architecture: amd64
> CrashDB: elementary_meta
> CurrentDesktop: Pantheon
> Date: Thu Aug 28 22:26:15 2014
> InstallationDate: Installed on 2014-08-25 (2 days ago)
> InstallationMedia: elementary OS 0.3 "Freya" - Daily amd64 (20140810)
> SourcePackage: elementary-meta
> ThirdParty: True
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/elementaryos/+bug/1362808/+subscriptions
>

Cody Garver (codygarver)
affects: elementaryos → pantheon-terminal
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.