Bug 451440 - Crash when use giomm file enumerator
Crash when use giomm file enumerator
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: glibmm24 (Show other bugs)
9
x86_64 Linux
low Severity low
: ---
: ---
Assigned To: Denis Leroy
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-14 11:44 EDT by Kamil Pawlowski
Modified: 2008-06-24 04:25 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-06-24 04:25:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kamil Pawlowski 2008-06-14 11:44:37 EDT
Description of problem:
Something is wrong with glib/glibmm

Version-Release number of selected component (if applicable):
glibmm24-devel-2.16.0-1.fc9.x86_64
glib2-devel-2.16.3-5.fc9.x86_64

How reproducible:
Compile and run this:
RefPtr<Cancellable> cancellable = Cancellable::create();
RefPtr<File> pluginsDir = File::create_for_path(PACKAGE_PLUGINS_DIR);
RefPtr<FileEnumerator> fileEnumerator =
pluginsDir->enumerate_children(cancellable, "*.so");
RefPtr<FileInfo> fileInfo;
while ((fileInfo = fileEnumerator->next_file()) != NULL) {
	std::cout << "check: " << fileInfo->get_name() << std::endl;
}

Actual results:
glibmm-WARNING **: failed to wrap type of 'GLocalFileEnumerator'
after this, crush when use file enumerator

Expected results:
read contents of directory

Additional info:
Comment 1 Denis Leroy 2008-06-18 03:45:59 EDT
Could you reproduce with glibmm24 2.16.2 ? (currently available as a F-9 stable
update).
Comment 2 Kamil Pawlowski 2008-06-23 19:05:58 EDT
With 2.16.2 I have the same error as 2.16.0
Comment 3 Denis Leroy 2008-06-24 03:16:17 EDT
Looks like you forgot to call "Gio::init()".
Comment 4 Kamil Pawlowski 2008-06-24 04:18:17 EDT
Thats it, sorry I forgot, now giomm wrap correctly

Note You need to log in before you can comment on or make changes to this bug.