Snavely's Bundler Import error

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
dominoc
Posts: 5
Joined: Wed May 30, 2012 7:09 am

Snavely's Bundler Import error

Post by dominoc »

Bundle import options
Bundle import options
bundle01.png (15.77 KiB) Viewed 7065 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
Attachments
Error message
Error message
bundle02.png (6.91 KiB) Viewed 7065 times
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Snavely's Bundler Import error

Post 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,
Daniel, CloudCompare admin
dominoc
Posts: 5
Joined: Wed May 30, 2012 7:09 am

Re: Snavely's Bundler Import error

Post 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
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Snavely's Bundler Import error

Post 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 ;)
Daniel, CloudCompare admin
dominoc
Posts: 5
Joined: Wed May 30, 2012 7:09 am

Re: Snavely's Bundler Import error

Post 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
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Snavely's Bundler Import error

Post 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).
Daniel, CloudCompare admin
dominoc
Posts: 5
Joined: Wed May 30, 2012 7:09 am

Re: Snavely's Bundler Import error

Post 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
Attachments
error message
error message
error.png (10.15 KiB) Viewed 7050 times
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Snavely's Bundler Import error

Post 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).
Daniel, CloudCompare admin
dominoc
Posts: 5
Joined: Wed May 30, 2012 7:09 am

Re: Snavely's Bundler Import error

Post by dominoc »

Hi

Thanks for the help. The latest trunk code has allowed me to run through the Bundler import process.
Post Reply