Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No space left on device (sparse files) #8223

Closed
chornns opened this issue May 20, 2024 · 2 comments
Closed

No space left on device (sparse files) #8223

chornns opened this issue May 20, 2024 · 2 comments
Labels

Comments

@chornns
Copy link

chornns commented May 20, 2024

  • Electron-Builder Version: 23.0.3
  • Node Version: v16.20.2
  • Electron Version: 22.3.4
  • Electron Type (current, beta, nightly):
  • Target: mac
Copying…
could not access /Volumes/thing/Contents/Resource/sparsefile - No space left on device
Finishing…

This is due to an upstream issue with hdiutil interaction with sparse files (apparently on macOS 14) that can be observed thus:

➜ mkdir sparse
➜ dd if=/dev/zero of=sparse/big bs=1 count=0 seek=10000000
0+0 records in
0+0 records out
0 bytes transferred in 0.000014 secs (0 bytes/sec)
➜  hdiutil create -srcFolder sparse sparse.dmg
....could not access /Volumes/sparse/big - No space left on device

hdiutil: create failed - No space left on device
➜  mkdir notsparse
➜  cp -S sparse/big notsparse
➜  hdiutil create -srcFolder notsparse notsparse.dmg
............................................................
created: /Users/camhorn/sparsetest/notsparse.dmg
➜  ls -ls sparse notsparse .
.:
total 56
 0 drwxr-xr-x  3 camhorn  staff     96 May 17 11:48 notsparse
56 -rw-r--r--@ 1 camhorn  staff  24914 May 17 11:48 notsparse.dmg
 0 drwxr-xr-x  3 camhorn  staff     96 May 17 11:47 sparse

notsparse:
total 19536
19536 -rw-r--r--  1 camhorn  staff  10000000 May 17 11:48 big

sparse:
total 0
0 -rw-r--r--  1 camhorn  staff  10000000 May 17 11:47 big

It would be nice if electron-builder could override with the correct -size for the initial hdiutil create:

const imageArgs = addLogLevel(["create", "-srcfolder", appPath, "-volname", volumeName, "-anyowners", "-nospotlight", "-format", "UDRW"])

Or at least allow -size to be manually set.

Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jul 20, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant