Snavely's Bundler Import error
Snavely's Bundler Import error
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
- bundle02.png (6.91 KiB) Viewed 7066 times
Re: Snavely's Bundler Import error
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,
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
Re: Snavely's Bundler Import error
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
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
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 ;)
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
Re: Snavely's Bundler Import error
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
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
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).
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
Re: Snavely's Bundler Import error
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
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.png (10.15 KiB) Viewed 7051 times
Re: Snavely's Bundler Import error
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).
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
Re: Snavely's Bundler Import error
Hi
Thanks for the help. The latest trunk code has allowed me to run through the Bundler import process.
Thanks for the help. The latest trunk code has allowed me to run through the Bundler import process.