Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Seg fault on multiple calls to find_components() #63
Comments
ximion
added
the
bug
label
Aug 11, 2016
ximion
self-assigned this
Aug 11, 2016
|
This is a really weird issue... Apparently, the |
|
Oh crap! Apparently Python3 treats a |
ximion
closed this
in
6920910
Aug 11, 2016
|
The following code works now with Git master: #!/usr/bin/env python3
import gi
gi.require_version('AppStream', '1.0')
from gi.repository import AppStream
pool = AppStream.Pool()
pool.load()
pool.search("gedit")
res = pool.search("gedit") # No more crashes!
for cpt in res:
print(cpt.get_id())I will probably backport this patch to the AppStream version in Debian Unstable / Ubuntu Yakkety, but both should ship with AppStream 0.10 or higher anyway :) Thank you for reporting this issue! |
|
Fixed package is uploaded to Debian and will hopefully also land in Ubuntu soonish :-) |
larryprice commentedAug 11, 2016
After upgrading to newer versions of appstream (0.9.7-1 and now 0.9.8-1 on ubuntu 16.10), I am getting consistent crashes when calling find_components consecutively from python3. This script dumps for me every time:
The results:
Am I using this incorrectly? I've tried running
appstreamcli refresh --force --verboseand seen nothing interesting. I've reproduced this exact issue on another machine. I tested on a machine with ubuntu 16.04 and found that version0.9.4-1ubuntu1still works as expected.