Cubix-Dev / SNext

An open source Gaming Console.
MIT License
8 stars 2 forks source link

Non-fatal error thrown when booting SNext #18

Closed TeleKiwi closed 1 year ago

TeleKiwi commented 1 year ago

Describe the problem

An uncaught type error is thrown upon booting SNext. This is not fatal however, as you can simply ignore it and the console will boot successfully. My exact error & stack trace is below;

  App threw an error during load
  TypeError: Cannot read properties of undefined (reading 'webContents')
      at Object.<anonymous> (/Users/telekiwi/Desktop/Code/SNext/src/main.js:56:24)
      at Module._compile (node:internal/modules/cjs/loader:1116:14)
      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
      at Module.load (node:internal/modules/cjs/loader:988:32)
      at Module._load (node:internal/modules/cjs/loader:829:12)
      at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
      at loadApplicationPackage (/Users/telekiwi/Desktop/Code/SNext/src/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:110:16)
      at Object.<anonymous> (/Users/telekiwi/Desktop/Code/SNext/src/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:222:9)
      at Module._compile (node:internal/modules/cjs/loader:1116:14)
      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)

To Reproduce

  1. Boot SNext from the command line (npm start).

Expected behavior

SNext boots with no errors.

Screenshots

Error in the console

Screenshot 2022-08-22 at 19 40 04

Error window from Electron

Screenshot 2022-08-22 at 19 42 24

Specs:

Additional context This error happens on every boot, without fail.

TeleKiwi commented 1 year ago

I know the devs are aware of this already, I just made the issue so it goes public

ShipmasterKyle commented 1 year ago

Although this is listed as a macOS issue it is a global issue with how a good portion of the console actually renders data.

ShipmasterKyle commented 1 year ago

Patched