Snapcraft prime not finishing stuck internally

I just did a clean checkout and just that is enough for me to reproduce it on my virtual machine, I added extra memory. When I check htop, it uses 3.61gb of 5.75gb with 193mb swap, one of the cpu cores is pretty much always running at 100%.

git clone https://github.com/phr34k/test --recurse-submodules
cd test
snapcraft clean
snapcraft prime
snapcraft prime

If you want to give the flutter build a shot, try this:

snap install flutter --classic
git clone https://github.com/phr34k/test --recurse-submodules
cd test
snapcraft clean
snapcraft prime
cd packages/example
flutter build linux
snapcraft prime

Let me know if there’s anything else I can lookup on my side.

Thanks for the additional information. I’ve followed the steps and packages/example doesn’t seem to exist. There’s packages/calc and packages/hello, but trying to run flutter build linux in any of them fails with Target file "lib/main.dart" not found. Is there something missing in the repositories?

Sorry, that should have been packages/calc/example

The bug in craft-parts that was causing the slowdown has been identified and fixed. New versions of craft-parts will be released to be integrated in Snapcraft and other craft tools.

The fix should be available in the edge channel, and it’s also scheduled to appear in version 7.2.11 (it’s depending on other bugs to be fixed).

Just got around checking it out, seems to be working great. I can prime consecutively and it seems to be skipping the steps that are executed that have already ran. Thanks!

2 Likes

Thanks for reporting this corner case problem! This is not very easy to reproduce but your real-life case was perfect to trigger the issue.