Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Crashes every time... am I doing something wrong? iPhone 11 Pro.


Does it crash upon downloading models, or generating? I haven't tested on all the devices, but 11 Pro seems have 4GiB RAM, and should run with 384x384 resolution (check if that is the selected resolution at top right).

There are reports that iOS is not happy with how I computing SHA256 for downloaded model file by loading them all in memory for Xr (3GiB RAM). If this is happening for other devices, I may need to do streaming hash computing and put up a bugfix.


It _might_ be easier just to use mmio and save any futzing around rewriting the actual code.


Yeah, I thought Data(contentsOf:) already do that, but it appears not (tested, indeed allocated all the memory to load the data). Adding `mapIfSafe` in the reading options solved this.


I have an iPhone 11 and it works for me. Had to keep the app in focus until all the downloading completed.


I can also confirm it works (for me) on iPhone 11 Pro.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: