RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Fofix problems

    Scheduled Pinned Locked Moved Help and Support
    fofixxinit
    22 Posts 6 Posters 5.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mituM
      mitu Global Moderator @shift
      last edited by

      @shift If the desktop works, you can run Fofix from the desktop session - does that work ?

      S 1 Reply Last reply Reply Quote 0
      • F
        fofixuser
        last edited by

        I have the exact same problem and error message. Its a port included in retropie-extra pack. I`m not sure what to do.

        Parameters:
        Executing: LD_LIBRARY_PATH=/opt/retropie/supplementary/glshim LIBGL_FB=1 xinit fofix

        X.Org X Server 1.19.2
        Release Date: 2017-03-02
        X Protocol Version 11, Revision 0
        Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
        Current Operating System: Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
        Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=720 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=da63f069-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles plymouth.enable=0
        Build Date: 18 October 2017 04:55:30PM
        xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
        Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
        Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
        (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Tue May 29 19:56:28 2018
        (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        libEGL warning: DRI3: xcb_connect failed
        libEGL warning: DRI2: xcb_connect failed
        libEGL warning: DRI2: xcb_connect failed
        LIBGL: Error while gathering supported extension (eglInitialize: EGL_NOT_INITIALIZED), default to none
        (EE)
        Fatal server error:
        (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
        (EE)
        (EE)
        Please consult the The X.Org Foundation support
        at http://wiki.x.org
        for help.
        (EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
        (EE)
        (EE) Server terminated with error (1). Closing log file.
        LIBGL: Initialising gl4es
        LIBGL: v1.0.9 built on May 29 2018 19:44:35
        LIBGL: framebuffer output enabled
        LIBGL: Using GLES 1.1 backend
        LIBGL:loaded: libbcm_host.so
        LIBGL:loaded: libvcos.so
        LIBGL:loaded: libGLESv1_CM.so.1
        LIBGL:loaded: libEGL.so.1
        LIBGL: Using GLES 1.1 backend
        LIBGL: Targeting OpenGL 1.5
        LIBGL: glXMakeCurrent FBO workaround enabled
        LIBGL: Current folder is:/home/pi
        xinit: giving up
        xinit: unable to connect to X server: Connection refused
        xinit: server error

        I also have the desktop environment and it sill closes.

        1 Reply Last reply Reply Quote 0
        • S
          shift @mitu
          last edited by

          @mitu said in Fofix problems:

          @shift If the desktop works, you can run Fofix from the desktop session - does that work ?

          I tried to run fofix from the desktop but it does not work. A window opens, but then closes and returns everything as it was before it was launched.

          1 Reply Last reply Reply Quote 0
          • S
            shift
            last edited by shift

            I launched this command: sudo chmod 666 /dev/tty0 and runcommand.log changed like this:

            Parameters:
            Executing: LD_LIBRARY_PATH=/opt/retropie/supplementary/glshim LIBGL_FB=1 xinit fofix

            X.Org X Server 1.19.2
            Release Date: 2017-03-02
            X Protocol Version 11, Revision 0
            Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
            Current Operating System: Linux retropie 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
            Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.
            lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=f2d3cb4f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.e
            nable=0
            Build Date: 18 October 2017 04:55:30PM
            xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
            Current version of pixman: 0.34.0
            Before reporting problems, check http://wiki.x.org
            to make sure that you have the latest version.
            Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
            (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Sat Jun 9 14:42:22 2018
            (==) Using system config directory "/usr/share/X11/xorg.conf.d"
            libEGL warning: DRI3: xcb_connect failed
            libEGL warning: DRI2: xcb_connect failed
            libEGL warning: DRI2: xcb_connect failed
            LIBGL: Error while gathering supported extension (eglInitialize: EGL_NOT_INITIALIZED), default to none
            (EE)
            Fatal server error:
            (EE) xf86OpenConsole: Cannot open virtual console 3 (Permission denied)
            (EE)
            (EE)
            Please consult the The X.Org Foundation support
            at http://wiki.x.org
            for help.
            (EE) Please also check the log file at "/home/pi/.local/share/xorg/Xorg.0.log" for additional information.
            (EE)
            (EE) Server terminated with error (1). Closing log file.
            LIBGL: Initialising gl4es
            LIBGL: v1.0.9 built on Jun 9 2018 13:41:04
            LIBGL: framebuffer output enabled
            LIBGL: Using GLES 1.1 backend
            LIBGL:loaded: libbcm_host.so
            LIBGL:loaded: libvcos.so
            LIBGL:loaded: libGLESv1_CM.so.1
            LIBGL:loaded: libEGL.so.1
            LIBGL: Using GLES 1.1 backend
            LIBGL: Targeting OpenGL 1.5
            LIBGL: glXMakeCurrent FBO workaround enabled
            LIBGL: Current folder is:/home/pi
            xinit: giving up
            xinit: unable to connect to X server: Connection refused
            xinit: server error

            The error is:
            xf86OpenConsole: Cannot open virtual console 3 (Permission denied)

            1 Reply Last reply Reply Quote 1
            • S
              shift
              last edited by

              Has anyone solved the problem?

              1 Reply Last reply Reply Quote -1
              • Z
                zerojay
                last edited by zerojay

                @shift said in Fofix problems:

                libEGL warning: DRI3: xcb_connect failed
                libEGL warning: DRI2: xcb_connect failed
                libEGL warning: DRI2: xcb_connect failed
                LIBGL: Error while gathering supported extension (eglInitialize: EGL_NOT_INITIALIZED), default to none

                Every port that I've created that uses Xorg and the glshim to function (including this one) no longer works with RetroPie. Ever since whatever changed in the last major release to Stretch, something's broken. We used to have a package installed to allow users to set up who has the right to open up xorg (I think it was xorg-server-legacy) but that apparently isn't what we're supposed to do anymore so... I have several of these packages that are currently unusable and I need someone's help to figure this out.

                Sorry, package is xserver-xorg-legacy.

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @zerojay
                  last edited by

                  @zerojay OK, so I took a stab at this and the solution was right under our nose - https://retropie.org.uk/forum/topic/6304/desktop-from-ports-fails-to-load-4-1/25.
                  So, long story short - instead of a simple xinit program, running it with xinit program -- vt1 -keeptty will not yield any more Xorg permission errors and actually starts the program.
                  I tried with fofix and at least now it starts in X, but has some program errors after is started and it stops. I also installed crack-attack and it started with the selection screen, but unfortunately I don't have a keyboard and couldn't progress further. Supertuxkart looked like a good candidate, but downloading 0.5 Gb of game data was a bit much (and I tried crack-attack instead).
                  Maybe you can give it a test and see if it fixes some of the programs depending on X and the ones depending on OpenGL.

                  Z 1 Reply Last reply Reply Quote 2
                  • Z
                    zerojay
                    last edited by

                    I'll give it a shot tonight.

                    1 Reply Last reply Reply Quote 0
                    • S
                      shift
                      last edited by shift

                      @mitu could you tell me the correct procedure to start fofix? is it enough to modify the file /opt/retropie/configs/ports/fofix/emulators.cfg or do I have to do anything else?? Thank you

                      1 Reply Last reply Reply Quote 0
                      • S
                        shift
                        last edited by

                        with this change:

                        fofix = "LD_LIBRARY_PATH=/opt/retropie/supplementary/glshim LIBGL_FB=1 xinit fof
                        ix -- vt1 -keeptty"
                        default = "fofix"

                        to the file /opt/retropie/configs/ports/fofix/emulators.cfg the result of fofix.log is the following:

                        [ 0.002047] (D) Logging initialized: Sun Jul 22 11:22:36 2018
                        [ 3.589632] (W) Pitch bending is not supported; install john.stumpo's pitchbe
                        nd module (r7 or higher) if you want it.
                        [ 4.729544] (D) GameEngine class init (GameEngine.py)...
                        [ 4.729698] (D) FoFiX v3.121 Final starting up...
                        [ 4.729754] (D) pygame version: 1.9.3
                        [ 4.730825] (D) Initializing audio.
                        [ 4.747304] (D) Audio configuration: (44100, -16, 2)
                        [ 4.995297] (D) Initializing pygame.mixer & audio system at 44100 Hz.
                        [ 4.995458] (D) Initializing video.
                        [ 5.113912] (W) Video setup failed. Trying without antialiasing.
                        [ 5.147924] (W) OpenGL extension ARB_shader_objects not supported - shaders d
                        isabled
                        [ 5.240151] (D) 1 joysticks found.
                        [ 5.246356] (E) Terminating due to unhandled exception:
                        Traceback (most recent call last):
                        File "FoFiX.py", line 276, in <module>
                        main()
                        File "FoFiX.py", line 175, in main
                        engine = GameEngine(config)
                        File "/usr/share/fofix/src/GameEngine.py", line 578, in init
                        self.view = View(self, geometry)
                        File "/usr/share/fofix/src/View.py", line 65, in init
                        self.aspectRatio = float(w) / float(h)
                        ZeroDivisionError: float division by zero

                        Z 1 Reply Last reply Reply Quote 1
                        • Z
                          zacknawrocki @shift
                          last edited by

                          @shift Hi, were you able to figure out this problem? I am having the same issue.

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zacknawrocki @mitu
                            last edited by

                            @mitu Hi, were you able to fix the problem where the programs eventually stops after starting up? I can load the game, but selecting an option from the main menu causes it to stop with the error "xinit: connection to X server lost"

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @zacknawrocki
                              last edited by

                              @zacknawrocki There's nothing new since the last message that I added to the topic - I'm not interested in Fofix so I didn't try to find a solution to the error.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                              Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.