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

    Scraper gets stuck when UI dims

    Scheduled Pinned Locked Moved Help and Support
    scraperdimx86
    9 Posts 6 Posters 4.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.
    • vbsV
      vbs
      last edited by vbs

      I always had the problem that the scraper got stock after some time (like after ~10min). It keeps saying "Working" but nothing happens anymore. Then when I press a button it either continues right away or it says "Network error: Failure when receiving data from the peer". I can hit "Retry" and then it continues until it gets stuck again.

      I think it is related to the UI dim feature The scraper immediately stops as soon as the screen dims. Then when I directly press a button the screen lits again and the scraper continues. When I wait longer before pressing a button then the network error message appears (seems to be some network timeout that occurs when the process gets stuck for too long).

      Workaround seems to be to set the dim timeout to "0" which seems to mean "disabled".

      Does this happen for you guys too? Then this is probably more a bug report.

      Oh, I am on x86 Ubuntu 16.04!

      Thanks!

      Potential Fix:
      I tried to fix this bug in Emulationstation. The problem was that ES just stops processing anything after entering dim mode. I tried to fix it by stopping ES going to sleep mode as long as scraping takes place. Seems to work so far.
      Would be great if you guys would give it a try and report back if it fixed the issue for you and if you experienced any unexpected side effects. The fix can be found here:
      https://github.com/verybadsoldier/EmulationStation/tree/no_sleep_when_processing

      To use it:

      1. Edit file RetroPie-Setup/scriptmodules/supplementary/emulationstation.sh

      2. Go to line 37 and make replace this

         [[ -z "$repo" ]] && repo="https://github.com/retropie/EmulationStation"
         [[ -z "$branch" ]] && branch="master"
        

        by this

        [[ -z "$repo" ]] && repo="https://github.com/verybadsoldier/EmulationStation.git"
        [[ -z "$branch" ]] && branch="no_sleep_when_processing"
        
      3. Start retropie_setup.sh

      4. Choose Manage Packages -> core -> emulationstation

      5. Choose Update from source

      Emulationstation should not be recompiled using the patched sources. Restart ES/Retropie afterwards. While ES is scraping it should not enter sleep mode no more.

      herb_fargusH 1 Reply Last reply Reply Quote 0
      • herb_fargusH
        herb_fargus administrators @vbs
        last edited by

        @vbs use sselphs scraper.

        https://github.com/retropie/retropie-setup/wiki/scraper

        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

        vbsV S 2 Replies Last reply Reply Quote 0
        • vbsV
          vbs @herb_fargus
          last edited by

          @herb_fargus
          Thanks, I tried that and that is a great scraper! Sadly some (for me important) systems like Amiga and C64 are not supported:

          An auto-scraper for EmulationStation written in Go using hashes. This currently works with NES, SNES, N64, GB, GBC, GBA, MD, SMS,     32X, GG, PCE, A2600, LNX, MAME/FBA(see below), Dreamcast(bin/gdi), PSX(bin/cue), ScummVM, SegaCD ROMs.
          

          So I guess for those systems I am stuck with the ES built-in scraper. But I really think that its instability is just a bug related to screen dimming (at least in my case). After I disabled screen dimming I was able to scrape >22000 roms in one session without problems. Would be awesome if someone could look into it.

          Thank you!

          DrMaxwellD 1 Reply Last reply Reply Quote 1
          • DrMaxwellD
            DrMaxwell
            last edited by

            @vbs this is a great find!

            1 Reply Last reply Reply Quote 0
            • T
              tehswiftone
              last edited by

              Yes this happens to me as well. I found shutting the screen saver off fixes the problem. I am not sure but I think the system goes into a hybernate type state when the screen saver kicks on.

              1 Reply Last reply Reply Quote 0
              • vbsV
                vbs
                last edited by

                I tried to implement a fix. You can find it in the first post. Would be great if you would give it a try. If its good then I would try to get it merged upstream. Thanks!

                G 1 Reply Last reply Reply Quote 0
                • G
                  g0nz0uk @vbs
                  last edited by

                  @vbs Aphex Twin, yes my favourite!

                  1 Reply Last reply Reply Quote 0
                  • DrMaxwellD
                    DrMaxwell @vbs
                    last edited by

                    @vbs The systems that aren't represented need hash values and the corresponding media resources hosted. Sselphs scraper is great, but the database that he pulls media and metadata from isn't as efficient, nor complete, as his scraper is unfortunately. Also, I believe the database that the scraper pulls from is down right now.

                    1 Reply Last reply Reply Quote 0
                    • S
                      SirSoulBrother @herb_fargus
                      last edited by

                      @herb_fargus Retropie Newb here. Was having the same issue with scraper stopping when screensaver came on. Tried the scraper you recommended and got a quick error about installation not being valid. Now when I run the Retropie scraper, one database, TheArchive, races through yielding no matches and TheGamesDB now moves 2-3 per minute and finds nothing. How do I restore my scraper without scraping my Retropie?

                      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.