-
Notifications
You must be signed in to change notification settings - Fork 106
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
Generate resources fail in M1: Segmentation fault #443
Comments
I'm not able to reproduce but will leave this open in case others have a similar issue and have more to add, thanks |
I encountered this issue with capacitor-assets 3.0.5. After updating sharp to 0.33.4 and use Node.js v18.17.0, the segmentation fault disappeared. |
[UPDATE]: I botched the copy of the new sharp into the directory I have the same issue, except it only crashes on Android, not iOS, e.g. npx capacitor-assets generate --android @knaito-asial how did you upgrade sharp? I did My Ionic: Ionic CLI : 7.2.0 (/Users/markwatkins/.nvm/versions/node/v20.14.0/lib/node_modules/@ionic/cli) Capacitor: Capacitor CLI : 6.0.0 Utility: cordova-res : not installed globally System: NodeJS : v20.14.0 (/Users/markwatkins/.nvm/versions/node/v20.14.0/bin/node) |
This is still an issue, sharp dependency needs updated |
Updating sharp to latests fixes this issue |
Same problem here. When running |
hi I installed version 2.0.4 and it solved my problem |
Hi @hardcorelite version |
For ios, I used version 2.0.4 for Android 3.0.5, which helped me with icon generation as well as splash (capacitor-assets) |
Hello! I have a problem with capacitor/assets (and also with cordova-res) that I can't generate the resources for iOS on an apple M1 chip. Always the error: segmentation fault
flowww@MacBook-Air-de-FLOWww FLOWww.Apps_FLOWwwMe % npm list -g
/opt/homebrew/lib
├── @angular/[email protected]
├── @capacitor/[email protected]
├── @ionic/[email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npx capacitor-assets generate --ios
Generating assets for ios
zsh: segmentation fault npx capacitor-assets generate --ios
cordova-res ios
WARN: No config.xml file in directory. Skipping config.
zsh: segmentation fault cordova-res ios
I have installed vips with brew (in arm64 arch) even sharp, but it still doesn't work...
flowww@MacBook-Air-de-FLOWww FLOWww.Apps_FLOWwwMe % brew info vips
==> vips: stable 8.13.3
Image processing library
https://github.com/libvips/libvips
/opt/homebrew/Cellar/vips/8.13.3 (96 files, 5.6MB) *
Poured from bottle on 2022-11-22 at 19:39:53
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/vips.rb
License: LGPL-2.1-or-later
==> Dependencies
Build: gobject-introspection ✔, meson ✘, ninja ✔, pkg-config ✔
Required: cairo ✔, cfitsio ✔, cgif ✔, fftw ✔, fontconfig ✔, gettext ✔, glib ✔, imagemagick ✔, jpeg-xl ✔, libexif ✔, libgsf ✔, libheif ✔, libimagequant ✔, libmatio ✔, librsvg ✔, libspng ✔, libtiff ✔, little-cms2 ✔, mozjpeg ✔, openexr ✔, openjpeg ✔, openslide ✔, orc ✔, pango ✔, poppler ✔, webp ✔
==> Analytics
install: 13,339 (30 days), 40,128 (90 days), 120,216 (365 days)
install-on-request: 13,000 (30 days), 39,042 (90 days), 116,922 (365 days)
build-error: 0 (30 days)
Any ideas?
The text was updated successfully, but these errors were encountered: