e0d0 Emacs hangs up X11 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old August 8th, 2012, 10:21
multix multix is offline
Junior Member
 
Join Date: Aug 2012
Location: Italy
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default Emacs hangs up X11

Hi,

after running portupgrade -ay, I find that emacs, which was updated, hangs up my X11 when I start it. It receives no more keyboard or mouse input (clicks, although the mouse moves) until I kill emacs by logging into another shell or having telnet open.

The installed version of emacs is:
Code:
emacs-24.1.50.109364,1 GNU editing macros
I am running:
Code:
FreeBSD tirith 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
If I start emacs -nw it works perfectly.

I get several output warnings, like:
Code:
(emacs:2537): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action.
But I got those before too and Emacs did work. I get no other output.

The only strange thing I note is that while emacs is launched but frozen, PS will show:
# ps -x | grep dbus
Code:
 2542  ??  Is   0:00.00 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print
 2567   0  RL+  0:00.01 grep dbus
 2541   1  I+   0:00.00 dbus-launch --autolaunch=65bfd4339d47e8593bd3b21a000062
 2548   1  I+   0:00.01 dbus-launch --autolaunch=65bfd4339d47e8593bd3b21a000062
after I kill emacs, I only have:
# ps -x | grep dbus
Code:
 2569   0  RL+  0:00.01 grep dbus
 2541   1  S    0:00.00 dbus-launch --autolaunch=65bfd4339d47e8593bd3b21a000062
Any suggestions? I suppose dbus is acting up? I rebuilt and reinstalled dbus, just to be sure.

Riccardo

Last edited by SirDice; August 8th, 2012 at 10:24. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
  #2  
Old August 8th, 2012, 11:16
MarcoB's Avatar
MarcoB MarcoB is offline
Junior Member
 
Join Date: Apr 2009
Location: The Hague, Netherlands
Posts: 92
Thanks: 0
Thanked 5 Times in 2 Posts
Default

Looks familiair. There is a tread on the freebsd-ports mailing list about this. Don't know what the exact cause of the problems are but solutions for me were:
- Build emacs with options DBUS, GCONF and GSETTINGS turned off. After that emacs didn't lock up X anymore, but the gtk file chooser crashed emacs;
- Upgrade the base system to 9.1-PRERELEASE (= 9-STABLE), and emacs works fine. After this I build emacs again with the DBUS options turned on, and it still works ok.

Regards,
Marco
__________________
http://specs.tweak.to/4653
Reply With Quote
  #3  
Old August 8th, 2012, 16:23
multix multix is offline
Junior Member
 
Join Date: Aug 2012
Location: Italy
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default

I hope upgrading is not a must... I suspect... I will try turning dbus support off too.
Reply With Quote
  #4  
Old August 8th, 2012, 16:51
jrm's Avatar
jrm jrm is offline
Member
 
Join Date: Nov 2008
Location: Tralfamadore
Posts: 528
Thanks: 63
Thanked 123 Times in 93 Posts
Default

Building emacs without dbus solved this problem for me. If you want dbus you have to launch it properly. For example, put the line below in ~/.xinitrc.

Code:
exec ck-launch-session dbus-launch --exit-with-session fluxbox
Reply With Quote
  #5  
Old August 8th, 2012, 17:02
jrm's Avatar
jrm jrm is offline
Member
 
Join Date: Nov 2008
Location: Tralfamadore
Posts: 528
Thanks: 63
Thanked 123 Times in 93 Posts
Default

This is a little off topic, but potentially helpful for those that want to reduce the port's dependencies. If you aren't running gnome and don't want GCONF and GSETTINGS and don't require ImageMagick support (MAGICK option) you might require many fewer dependencies. I think it was a difference of about 50 ports for me.
Reply With Quote
  #6  
Old August 9th, 2012, 08:55
multix multix is offline
Junior Member
 
Join Date: Aug 2012
Location: Italy
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default

Turning DBUS and GCONF off helped me. I dont' run GNOME so it is not a big deal.

However, since before the update Emacs was running properly with those options and it launched dbus automatically, I think there is a bug.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs Screencast Series: "Hack Emacs" purgatori Howtos & FAQs (Moderated) 0 July 18th, 2012 14:29
Can Emacs do everything C++ that Codeblocks can do? neilms Userland Programming & Scripting 22 July 15th, 2012 06:04
Backspace key and Emacs gwb Installation and Maintenance of FreeBSD Ports or Packages 1 November 20th, 2010 20:00
[Solved] emacs key binding kb6rxe Userland Programming & Scripting 2 November 9th, 2010 20:25
[Solved] Emacs works on GUI but not on CLI. tommy2 Installation and Maintenance of FreeBSD Ports or Packages 1 January 29th, 2010 17:44


All times are GMT +1. The time now is 13:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0