Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3763

Troubleshooting • Stumbled upon a potential RPi4 hardware issue resulting in EFAULT error.

$
0
0
Hi all I've stumbled into a rather interesting unhandled JavaScript exception that is thrown when calling this function of Electron-Updater:
https://github.com/electron-userland/el ... ter.ts#L78

The resulting error is this:

Code:

Executing: /home/Dummy.AppImage with args:Uncaught Exception:Error: write EFAULTat afterWriteDispatched (node:internal/stream_base_commons:161:15)at writeGeneric (node:internal/stream_base_commons:152:3)at Socket._writeGeneric (node:net:958:11)at Socket._write (node:net:970:8)at writeOrBuffer (node:internal/streams/writable:572:12)at _write (node:internal/streams/writable:501:10)at Writable.write (node:internal/streams/writable:510:10)at execFileSync (node:child_process:938:20)at func (node:electron/js2c/node_init:2:2559)at AppImageUpdater.doInstall (/tmp/.mount-oGu7dWw/resources/app.asar/node_modules/electron-updater/out/AppImageUpdater.js:95:42) {errno: -14,code: 'EFAULT',syscall: 'write'}
Where things start to get really interesting is that this error only happens on RPi 4 hardware. The error does not exist when running the same kernel, os image, filesystem, and code on an RPi 5 device. I have tested this by imaging a single SD Card and then swapping between RPi 4 and 5 versions of the board. On both RPi 4 and RPi 4 CM the error is present. On RPi 5 boards the error is not present. Given that the SD card is not changed between boards it leads me to think that there may be a problem with how the RPi 4 hardware is handling this code.

I would love the community's thoughts into how I can confirm or dig further into what might be happening here.

Cheers!

Statistics: Posted by j4de_tmrw — Wed Apr 02, 2025 4:10 pm



Viewing all articles
Browse latest Browse all 3763

Trending Articles