libretro / libretro/RetroArch

nVidia Shield TV Pro 2019 - RetroArch crashes when accessing folders with large number of files inside

Open
#16,131 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

The android version of RetroArch 1.16.0 crashes when trying to access folders with more than 32,500 files inside on my nVidia Shield TV Pro 2019. This issue occurs on both usb flash drives as well as usb hard drives that are plugged into either of the USB ports on the Shield TV Pro. Presumably all models of Shield TV with USB ports are affected by this.

Expected behavior
  1. RA's built in file manager to display contents of folders that contain more than 32,500 files
  2. import scan of a folder containing more than 32,500 files completes successfully
Actual behavior
  1. accessing the folder using RA's built in file manager causes a short freeze immediately followed by a crash
  2. import scan of the folder also causes an immediate short freeze and crash - happens with both manual and automatic scans
  3. Logs do not provide any indication of an error occuring
Steps to reproduce the bug
  1. Try to access a folder containing a full Mame Romset using RA's built in file manager
  2. Try to import the same folder using either manual or automatic scan
Bisect Results

I did not start using a Shield TV Pro until 12/2023, but I have replicated the issue starting with the official 1.16.0 release in September 2023 all the way up to the nightly build of 01/15/2024.

Environment information
  • OS: Android 11, nVidia Software 9.1.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash in RetroArch's built-in file manager and import scan with a folder containing more than 32,500 files on Android 11. Trace the file-manager and scan entry points from that reproduction; done means the folder contents display and both manual and automatic imports complete without crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.