The cause appears to be multiple threads accessing the same SnapdClient object at the same time. This causes multiple requests to be sent at the same time and snapd-glib has a bug that doesn't handle the replies correctly. The solution in bug 1718170 is to make a SnapdClient for each thread, and avoids this issue.
The cause appears to be multiple threads accessing the same SnapdClient object at the same time. This causes multiple requests to be sent at the same time and snapd-glib has a bug that doesn't handle the replies correctly. The solution in bug 1718170 is to make a SnapdClient for each thread, and avoids this issue.