Page 1 of 1
Snavely's Bundler Import error
Posted: Wed May 30, 2012 7:31 am
by dominoc
- Bundle import options
- bundle01.png (15.77 KiB) Viewed 7083 times
Hi
I am trying to import a bundle.out file into CloudCompare V2 04/25/2012 on Windows but am encountering an error saying
"BundleFilter:loadFile] Failed to load image xxxx.jpg'! (check your list file and be sure to put images alongside)
The files are actually there but the import isn't going through.
Does anybody know what is going on and how can I fix it?
thanks
Re: Snavely's Bundler Import error
Posted: Wed May 30, 2012 12:50 pm
by daniel
Hi,
if the image is in the folder 'C:/Temp/simactive/airport/source/Bundle'n then it must effectively be something else.
However, the only other reason would be that Qt fails to load the jpg file:
- you may check the version of the 'qjpeg4.dll' file (in the 'imageformats' subdirectory of CloudCompare) --> the date must be 08/12/2011 and its version 4.8.0.0
- try to open it and save it again with a very classical software such as Paint?
- otherwise you can send me one failing file and I'll try to reproduce the issue
Thanks for the feedback,
Re: Snavely's Bundler Import error
Posted: Thu May 31, 2012 3:18 am
by dominoc
Hi
I read through some of the source code and from what I understand, the function in question is loading all the images into memory, until all the Ram is used up. At which point, the import will fail.
That seems to be the problem. So the immediate solution to my problem seems to be to increase the amount of ram available.
So I tried on a Win7 64 bit with 8gb ram but it still couldn't go through.
The test files can be downloaded from
https://www.box.com/s/49f7c9dbe55cde0f1e63\
thanks
Re: Snavely's Bundler Import error
Posted: Thu May 31, 2012 6:22 am
by daniel
Ah this issue is currently in the pipe: we are going to let he user choose whether he wants to keep images in memory (for display) or not (to avoid this kind of problem).
I must also look if there's a (simple) way to know why Qt fails to load an image (to throw clearer error messages ;)
Re: Snavely's Bundler Import error
Posted: Thu May 31, 2012 7:11 am
by dominoc
Thanks for the reply.
Do you have any ballpark idea when this option will be released? Helps me to make a decision as to whether to dig through the code myself or not.
thanks
Re: Snavely's Bundler Import error
Posted: Thu May 31, 2012 2:19 pm
by daniel
I just pushed my local modifications on the trunk.
However you'll have to compile it yourself (we are about to make a major release with lots of new stuff, but the corresponding release won't be online before 2 weeks I think as several things are still unfinished).
Re: Snavely's Bundler Import error
Posted: Fri Jun 01, 2012 5:51 am
by dominoc
Hi Daniel
I ran the recompiled code.
Fyi it works but after a random number of images, there will be this error message (see screenshot). At which point, the process will seem to be looping forever and nothing else will work.
thanks
Re: Snavely's Bundler Import error
Posted: Fri Jun 01, 2012 7:27 am
by daniel
Hi,
I didn't reproduce your error (with the dataset your provided before) but I realized that the most important thing in this new framework was missing: releasing the memory after each image has been processed!
Sorry about that. It is now fixed on the trunk (and I hope this is the source of your problem as well).
Re: Snavely's Bundler Import error
Posted: Fri Jun 01, 2012 8:03 am
by dominoc
Hi
Thanks for the help. The latest trunk code has allowed me to run through the Bundler import process.