Could not open file. Error details: Read error at line 92130

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

danielandrus
Posts: 21
Joined: Fri Feb 22, 2008 4:54 pm

Could not open file. Error details: Read error at line 92130

Post by danielandrus »

HELP!

i was working on a file. after saving and closing the file i tried opening it up again and got this message:

Could not open file.
Error details:
Read error at line 92130. In code file C:\Documents and Settings\Mike Clifton\My Documents\Develop\lm_tree\lib_moho\m_mesh.cpp, line 143.

does anyone know what happened? i've been working on this for a while and it would set me back a LOT if i lose the file.

any help is very appreciated.

Thank you
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Can you post the damaged file somewhere?

I could take a look at the source and see if I can fix it for you. The files are plain text and often you can fix "simple" problems.

In the future I strongly recommend that you save incremental versions of your projects just to protect yourself from things like this. Nearly every application file can get corrupted by all kinds of things, system hiccups, crashes... whatever.

-vern
danielandrus
Posts: 21
Joined: Fri Feb 22, 2008 4:54 pm

Post by danielandrus »

i sent you a pm. thanks man
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

For those interested I was able to fix the file. I had to delete a layer at the end that was missing a big part. I think the file got "squashed" during a save and a big chunk was left out at the end.

The number 92130 was actually the line number in the text of the file! Big file. ;)

So, just an FYI for others. If the file won't open... you should panic of course... but don't give up hope. ;)

-vern
danielandrus
Posts: 21
Joined: Fri Feb 22, 2008 4:54 pm

Post by danielandrus »

thanks a million!
User avatar
Tashi
Posts: 3
Joined: Mon Dec 10, 2007 8:56 am

Post by Tashi »

I'm having the same problem, different line of course. I sent a PM.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Sorry I couldn't help you out Tashi. Good luck with redoing the work.

I plan to include a tutorial for editing the file format on my new site. It won't have "complete" documentation on the file format but it will give you enough info to get around in it.

I suggest anyone wanting to do that kind of thing should get a good text editor like the free open source program jEdit.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Tashi,

I just sent you the "fixed" file. I went back and looked through it in AS. It looks like a ton of the actual animation is still there. All the layer animation anyway. It only "seemed" to have lost layers in that one switch layer I mentioned but you will have to say for sure.

AS is so weird. The layer order in the file is not the same as the text file format. In the file format layer order is determined by when it was created. If you start moving layers around in the layer palette the layer stays right where it is in the text file. This can throw you off a bit if you think you are looking for the last layer or the third layer.

Make sure you put the new file in the same place as the old one or the image layer links won't work. I gave it a new name.

-vern
Coolburger
Posts: 2
Joined: Fri Aug 08, 2008 6:57 pm
Location: Texas

Post by Coolburger »

Heyvern,
I read these posts that you were able to help out these guys with a read error problem and would like to know if you could try fixing a file for me?
I'll PM you the file.
Thanks
CB
Coolburger
Posts: 2
Joined: Fri Aug 08, 2008 6:57 pm
Location: Texas

Post by Coolburger »

Vern you're AWESOME! Thanks for fixing my file!
CB
User avatar
bahar_z
Posts: 1
Joined: Mon Feb 02, 2009 1:17 pm
Location: Iran

Post by bahar_z »

Heyvern,
I read these posts that you were able to help out these guys with a read error problem and would like to know if you could try fixing a file for me?

i was working on a file. after saving and closing the file i tried opening it up again and got this message:

Could not open file.
Error details:
Read error at line 56288. In code file C:\Documents and Settings\Mike Clifton\My Documents\Develop\lm_tree\lib_moho\m_mesh.cpp, line 51.

Please help
Thank you
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

If Vern's busy, I can help fix this file for you.
Javiera
Posts: 1
Joined: Mon Mar 30, 2009 9:18 pm
Location: Chile

corrupted file

Post by Javiera »

hi everybody, I'm new here
I have the same problem...
could you teach me how to fix it?
o can somebody fix it for me?
I'ts really urgent, please
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

If you want to PM me a link to the file, or post it in this thread, I'd be happy to see how much can be saved. Unless you are familiar with the file format, it'd be very difficult to explain how to fix it. It really depends on where the corruption is and where it cut off the data.
User avatar
Rhoel
Posts: 844
Joined: Fri Feb 25, 2005 8:09 am
Location: Phnom Penh, Cambodia
Contact:

Post by Rhoel »

heyvern wrote:... I suggest anyone wanting to do that kind of thing should get a good text editor like the free open source program jEdit.
The SciTE.exe text editor is also brilliant for programming and text file editing. In Lua mode fir instance, it colour codes the key instructions, making readability a cinch.

It has switchable line numbering, end of line visualizations and a host of other features.

And its free.

R
Post Reply