Error with ICM files [RESOLVED]

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
maximeseguin
Posts: 7
Joined: Thu Apr 28, 2011 4:05 pm
Location: Nimes, France

Error with ICM files [RESOLVED]

Post by maximeseguin »

When I'm trying to open ICM files, CC say :
"An error occured while loading 'test' : Wrong file type (check header)"

My test file (test.icm) is :

Code: Select all

#CC_ICM_FILE
FILENAME=porte.asc
FILETYPE=ASC
IMAGES_DESCRIPTOR=photos.wrl
The header seem's to be coorect.

Any idea?

--
Maxime SEGUIN
École Nationale des Sciences Géographiques
--
Maxime SEGUIN
Inrap
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Error with ICM files

Post by daniel »

Hello,

are you trying to do this on Linux? I checked the code and I saw that the comparison between the first line in the file and what is attended (#CC_ICM_FILE) is a bit harsh (it includes also the 'carriage return' character (which is never a good idea, as it is not the same for Unix and Windows systems).

I changed this (trunk version). Let's hope it's the source of this error (otherwise, don't hesitate to send me your example file).
Daniel, CloudCompare admin
maximeseguin
Posts: 7
Joined: Thu Apr 28, 2011 4:05 pm
Location: Nimes, France

Re: Error with ICM files

Post by maximeseguin »

No, I'm trying to do this under Windows system.
--
Maxime SEGUIN
Inrap
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Error with ICM files

Post by daniel »

Oh, it may also come from your text editor. Can you still test this with the new CC version on the trunk? (or do you need an executable?)
Daniel, CloudCompare admin
maximeseguin
Posts: 7
Joined: Thu Apr 28, 2011 4:05 pm
Location: Nimes, France

Re: Error with ICM files

Post by maximeseguin »

Ok, I'm using Notepad++ to force utf8 encoding.
I'll try the new version of the trunk in the afternoon.
I'll keep you in touch.
--
Maxime SEGUIN
Inrap
maximeseguin
Posts: 7
Joined: Thu Apr 28, 2011 4:05 pm
Location: Nimes, France

Re: Error with ICM files

Post by maximeseguin »

I've compiled the trunk, but I've still the same error message.
I don't know what happens.
Can I have a builded executable?
Do it works on your side?
--
Maxime SEGUIN
Inrap
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Error with ICM files

Post by daniel »

It works with my own ICM files, but please send me yours: daniel.girardeau@gmail.com (or add it as an attachment to your reply).
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Error with ICM files

Post by daniel »

Ok, so it appears that it was a 'unicode' encoded text file (UTF8 exactly) while CloudCompare doesn't handle such enconding styles. It needs pure 8bit ANSI (such as what the classical Notepad tool generates).

I'll try to figure out if Qt could help CloudCompare be more 'subtle'... meanwhile, don't use any other encoding than "ANSI" in Notepad++ (or any other text editor).
Daniel, CloudCompare admin
Post Reply