Bochs PANIC, cannot connect to X server.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kindyroot
Posts: 12
Joined: Sun Oct 19, 2008 3:57 am

Bochs PANIC, cannot connect to X server.

Post by kindyroot »

i am extremely sorry to bug you again with these stories, but i think tried EVERYTHING, i should mention this is not a fresh install, i used bochs everyday for a while and now suddenly it says it no more can connect to x server, this is the output message:

Event type: PANIC
Device: [XGUI ]
Message: bochs: cannot connect to X server :0.0

I had already ran to this problem before, I think i had solved it by installing bochs-x, this time bochs-x is already there (newsest version).

PS: QEMU stopped working today too! here are its errors:

(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
--> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system' core!
--> Initialization error!
Could not initialize SDL - exiting

thanks in advance.
User avatar
gzaloprgm
Member
Member
Posts: 141
Joined: Sun Sep 23, 2007 4:53 pm
Location: Buenos Aires, Argentina
Contact:

Re: Bochs PANIC, cannot connect to X server.

Post by gzaloprgm »

You might try installing bochs-sdl and setting in bochsrc.txt to use sdl instead of x extension.

Did you try running qemu as root?

Cheers,
Gonzalo
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
kindyroot
Posts: 12
Joined: Sun Oct 19, 2008 3:57 am

Re: Bochs PANIC, cannot connect to X server.

Post by kindyroot »

I have now installed the bochs-sdl package but there doesn't seem to exist any documentation as to how to set bochs to use SDL instead of direct X connection.
For what concerns Qemu, i ran it several times as root before and now, no change, the problem persists,
I still believe the disfunctionning of the two programs (bochs and qemu) in the same day might have things to do with one another.
any ideas?
User avatar
gzaloprgm
Member
Member
Posts: 141
Joined: Sun Sep 23, 2007 4:53 pm
Location: Buenos Aires, Argentina
Contact:

Re: Bochs PANIC, cannot connect to X server.

Post by gzaloprgm »

I have now installed the bochs-sdl package but there doesn't seem to exist any documentation as to how to set bochs to use SDL instead of direct X connection.
http://bochs.sourceforge.net/doc/docboo ... chsrc.html
4.2.13. display_library

The display library is the code that displays the Bochs VGA screen. Bochs has a selection of about 10 different display library implementations for different platforms. If you run configure with multiple --with-* options, the display_library option lets you choose which one you want to run with. If you do not use a display_library line, Bochs will choose a default for you.

Examples:
display_library: sdl
Cheers,
Gonzalo
Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
kindyroot
Posts: 12
Joined: Sun Oct 19, 2008 3:57 am

Re: Bochs PANIC, cannot connect to X server.

Post by kindyroot »

Thank you Gonzalo so much, it works perfectly now :)
kindyroot
Posts: 12
Joined: Sun Oct 19, 2008 3:57 am

Re: Bochs PANIC, cannot connect to X server.

Post by kindyroot »

I am sorry for the double post but a few weeks later, i am still having the same conf but both bochs and qemu broke again, same érror, complains about non existent framebuffer device and impossible sdl initialisation, i am clueless and all my work has stopped because of this, .. :s
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Bochs PANIC, cannot connect to X server.

Post by Combuster »

I have the idea an update broke something. If its DirectFB that got updated then you need to update *all* dependencies as well. My distro has tools to check for that kind of breakage, but I don't know how your package manager does those things :(
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: Bochs PANIC, cannot connect to X server.

Post by eddyb »

he solved it. the problem was running x as non-root and bochs/qemu as root.
johntortugo
Posts: 6
Joined: Wed Jun 01, 2011 1:35 pm

Re: Bochs PANIC, cannot connect to X server.

Post by johntortugo »

Many thanks gonzalo!

I'was with a similar problem and with you posts I managed to solve it changing the display_library to sdl!

=D>
Post Reply