neil-morrison44 / pocket-sync

A GUI tool (Mac, Windows, Linux) for doing stuff with the Analogue Pocket
GNU Affero General Public License v3.0
669 stars 25 forks source link

NES core install failed and reported an error #264

Closed chasemcardle closed 6 months ago

chasemcardle commented 7 months ago

Describe the bug Installing the NES core failed. This is my first ever core to try and install on a new SD card.

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'Cores'
  2. Click on 'NES'
  3. Follow on screen prompts
  4. See error

If the error only appeared after installing a certain core or image pack say which one.

Expected behaviour I expected the core to install correctly.

Screenshots If applicable, add screenshots to help explain your problem.

Logs Pocket Sync.log

Cores: agg23.NES Cores/agg23.NES/core.json Parse error in JSON input:

Unexpected EOF parse@[native code] P@tauri://localhost/assets/index-C6kz_0x2.js:63:364 @tauri://localhost/assets/index-C6kz_0x2.js:63:1116

Desktop (please complete the following information):

Additional context Using SD via USB mode on the analogue pocket Pocket FIrmware 2.2

chasemcardle commented 7 months ago

SNES Reports the same issue

Pocket Sync.log

Cores: agg23.SNES Cores/agg23.SNES/core.json Parse error in JSON input:

Unexpected EOF parse@[native code] P@tauri://localhost/assets/index-C6kz_0x2.js:63:364 @tauri://localhost/assets/index-C6kz_0x2.js:63:1116

chasemcardle commented 7 months ago

Clicking retry seems to actually install the Core but I have not tried to run a rom.

chasemcardle commented 7 months ago

I do not get the errors when connecting to the SD card using an SD Card slot

neil-morrison44 commented 7 months ago

Hmmm, yeah - from the log it looks like it tried to read the file about the core before it had finished writing it.

Unfortunately my Pocket's SD-over-USB drive functionality has never worked so I haven't seen these sorts of issues.

There's a fix I've been planning to get in to stop it re-scanning the game assets as it installs them that'd also potentially help with this, but using the SD card directly is always going to be the best experience

neil-morrison44 commented 6 months ago

I think the problem you ran into here where it tried to read the files for the core before they were written should be resolved by v4.9.0, though it seems to be very rare