• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Error creating SDL window

Scheduled Pinned Locked Moved Help and Support
failed to add ses not running
13 Posts 2 Posters 1.5k 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.
  • D
    Dja480
    last edited by Dja480 12 Jul 2024, 05:43

    Pi Model : 4
    Power Supply used: USB-C cable
    RetroPie Version Used V.4.7.19
    Built From: Pre made from RetroPie website pi4 image
    USB Devices connected: MSI keyboard, mouse.
    Controller used: N64 controller,
    Error messages received: Error creating SDL window
    Could not initialize EGL
    Render failed to initialize
    Window failed to initialize
    Guide used: (

    )
    Attachment of config files: https://pastebin.com/9SEZiw0G

    Tried connecting a 3.5 inch LCD screen to my raspberry pi via GPIO pins but now I cant go back to emulation station. Stuck at the terminal with the message : Error creating SDL window,
    Could not initialize EGL, Render failed to initialize, Window failed to initialize
    and when I try to type in emulation station it brings me the message: Failed to add service already in use?

    M 1 Reply Last reply 12 Jul 2024, 06:51 Reply Quote 0
    • M
      mitu Global Moderator @Dja480
      last edited by 12 Jul 2024, 06:51

      @Dja480 said in Emulation station not running. Failed to add service already in use?:

      When I looked up on how to solve this issue most people said to edit the config.txt file and delete dtoverlay=`.

      That's not correct, a Pi4 will not work withtout either the vc4-fkms-v3d (which is the default) or the vc4-kms-v3d overlays. Please add back the overlay in order for the GPU drivers to work.

      D 1 Reply Last reply 12 Jul 2024, 07:49 Reply Quote 0
      • D
        Dja480 @mitu
        last edited by 12 Jul 2024, 07:49

        @mitu I never had it to begin with so im a little confused on what I should be doing

        M 1 Reply Last reply 12 Jul 2024, 08:05 Reply Quote 0
        • M
          mitu Global Moderator @Dja480
          last edited by mitu 7 Dec 2024, 09:05 12 Jul 2024, 08:05

          @Dja480 said in Emulation station not running. Failed to add service already in use?:

          @mitu I never had it to begin with so im a little confused on what I should be doing

          RetroPie's Pi4 image from retropie.org.uk/download has it, so did the original Raspbian Lite image which is based on. Which RetroPie image are you using ?

          Please add the info requested in https://retropie.org.uk/forum/topic/3/read-this-first to your post.

          D 1 Reply Last reply 13 Jul 2024, 10:04 Reply Quote 0
          • D
            Dja480 @mitu
            last edited by 13 Jul 2024, 10:04

            @mitu Pre made from RetroPie website pi4 image

            M 1 Reply Last reply 13 Jul 2024, 12:56 Reply Quote 0
            • M
              mitu Global Moderator @Dja480
              last edited by 13 Jul 2024, 12:56

              The pre-made image (Pi4, 4.7.1) from RetroPie doesn't have the configuration file (config.txt) you posted. You either copy/pasted the wrong configuration in that file (/boot/config.txt) or you're not actually using the RetroPie pre-made image.

              Maybe the guide you've used replaces the config, but that just means the configuration produed is not compatible with the Pi4 and some other configuration is needed, one that's compatible with the Pi4.

              D 1 Reply Last reply 13 Jul 2024, 20:39 Reply Quote 0
              • D
                Dja480 @mitu
                last edited by 13 Jul 2024, 20:39

                @mitu ive reinstalled retropie 4.7.1 from the website and connected the LCD and this is the config.txt it had given me: https://pastebin.com/pM1Gx1RL

                M 1 Reply Last reply 14 Jul 2024, 03:06 Reply Quote 0
                • M
                  mitu Global Moderator @Dja480
                  last edited by mitu 14 Jul 2024, 03:06

                  @Dja480 This is the more or less the same configuration you posted before, and it's not the default that comes with the image.

                  As I said at the beginning, without the following line the Pi4's GPU drivers will not work:

                  # Enable DRM VC4 V3D driver
                  dtoverlay=vc4-fkms-v3d
                  

                  The instructions/script you are using for the LCD configuration are disabling the GPU drivers on the Pi4, making RetroPie (EmulationStation and emulators) unusable.

                  D 1 Reply Last reply 14 Jul 2024, 05:37 Reply Quote 0
                  • D
                    Dja480 @mitu
                    last edited by 14 Jul 2024, 05:37

                    @mitu I see, wait so whats the fix to this.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mitu Global Moderator
                      last edited by mitu 14 Jul 2024, 05:55

                      I don't know, have you tried asking the vendor for Pi4 compatible instructions ? I don't have one of these screens and there doesn't seem to be a 'one-size-fits-all' recipe to configure one.

                      If there's no such configuration possible, then maybe buying a LCD screen what's advertised as fully compatible with Pi4 and sending back the current one ?

                      D 1 Reply Last reply 14 Jul 2024, 07:45 Reply Quote 0
                      • D
                        Dja480 @mitu
                        last edited by 14 Jul 2024, 07:45

                        @mitu says its compatible with all versions of raspberry pi on the website: https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)

                        M 1 Reply Last reply 14 Jul 2024, 09:46 Reply Quote 0
                        • M
                          mitu Global Moderator @Dja480
                          last edited by mitu 14 Jul 2024, 09:46

                          When the installation instructions for the Pi4 are disabling the GPU drivers from the configuration file, I'd not call this screen 'compatible' with Pi4/Pi5.

                          Regardless, there's basically nothing that RetroPie can do to make it work - the configuration is up to the operating system (RaspiOS). You may ask in the Raspbrry Pi forums for instructions on how to make this work with the latest RaspiOS without disabling the GPU drives as it's 'advertised' by Waveshare.

                          D 1 Reply Last reply 15 Jul 2024, 02:03 Reply Quote 0
                          • D
                            Dja480 @mitu
                            last edited by 15 Jul 2024, 02:03

                            @mitu aight thanks for the suggestion and help man, sorry for my lack of knowledge of this stuff its my first time dealing with computers and such.

                            1 Reply Last reply Reply Quote 0
                            13 out of 13
                            • First post
                              13/13
                              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.

                              This community forum collects and processes your personal information.
                              consent.not_received