Official eMule-Board: Bug When Importing Part Files? - Official eMule-Board

Jump to content


Page 1 of 1

Bug When Importing Part Files?

#1 User is offline   eagle2l84 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 06-July 06

Posted 04 August 2006 - 04:43 PM

I had multiple crashes with Morph 8.13 final. However, the database/configuration was in use for nearly a year and was used with numerous previous eMule and Morph versions including the late BETA versions. So I decided to recreate all data, I did:

a) rename my eMule installation dir

B) install MorphXT 8.13 final from bin-zip into a new fresh eMule dir.

c) copy only the preferences.ini File from my old config dir to the new config dir.

d) rename my eMule-Temp Dir and create a new empty one with the previous name

e) start eMule MorphXT 8.13

f) import *.part Files from old (renamed) Temp Dir with Option to delete successfully imported Files

After that all my currently scheduled Downloads were somewhat corrupted:

- the "remaining size" was off by the size of the File, e.g. a file of Size 300MB which had already downloaded 200MB would show after the import, that 400MB remained to be downloaded.

- the "Progress" percentage is now negative.

- the Details show a "completed size" of 16777216 TB.

However, everything works fine. The files have been imported correctly and become completed as time goes by.

Just wanted to let you know.


cu
0

#2 User is offline   Nil Einne 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 71
  • Joined: 26-December 02

Posted 09 August 2006 - 05:21 PM

Hmm so it actually imports for you? That's strange since for me it doesn't import and it seems to be a bug.

When I try to import, I always get the error "Part 1: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk)." and repeated for every part it tries to import. I have tried with several files and it always has this error. My hard disk and partition is fine (in any case I tried two different HDs and partitions). It does not appear to be a Windows security issue as I am running with an administrative account and the option for a restricted user is not set. Also, I tried it with a file that I had allowed all access to "users".

Perhaps most significantly, it works fine with an older version that I have. I replace the exe with the old version (just the exe everything else same), run it and it imports fine. When I go back to the latest version exe, same problem again and back to the old version works fine again!

The version with the problem is the current latest version eMule 0.47a MorphXT v8.13 (final). The version which works fine according to the changelog is "eMule 0.47a MorphXT v8.x". This is obviously wrong, I can try harder to identify if need be. The entry before this is "eMule 0.47a MorphXT v8.10". I haven't yet tried any different versions, if you want I can download older versions and try and identify the problem.

I am using Windows XP x64.

This post has been edited by Nil Einne: 09 August 2006 - 05:23 PM

0

#3 User is offline   Fduch 

  • Member
  • PipPip
  • Group: Members
  • Posts: 16
  • Joined: 23-February 05

Posted 01 September 2006 - 12:53 PM

This code is bad. Never write "catch (...)". Never.
			try {
				CSingleLock sLock1(&(theApp.hashing_mut), TRUE);	//SafeHash - wait a current hashing process end before read the chunk
				f.Seek((LONGLONG)PARTSIZE*partnumber,0);
				partSize=f.Read(partData, PARTSIZE);
			} catch (...) {
				LogWarning(LOG_STATUSBAR, _T("Part %i: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk)."), partnumber);
				delete[] partData;
				continue;
			}

0

#4 User is offline   SiRoB 

  • Retired Morph Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1691
  • Joined: 28-June 03

Posted 01 September 2006 - 01:15 PM

But still?
Instead of critisise provide proper way or give up. <_<
eMule 0.47c MorphXT v9.5 ::binary::source::
0

#5 User is offline   Fduch 

  • Member
  • PipPip
  • Group: Members
  • Posts: 16
  • Joined: 23-February 05

Posted 02 September 2006 - 01:25 PM

Sorry, I didn't mean to say anything bad.
I just think that in this case it's bad to catch all exceptions and not trying to investigate a bit.
BTW look at these funny results:

02.09.2006 17:17:36: Importing 5 parts to I:\__Stream\_eMule\Temp.eMule\005.part.
02.09.2006 17:17:39: Part 3: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:39: Part 5: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:39: Part 8: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:39: Part 17: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:39: Import finished. 1 parts imported to 005.part.
02.09.2006 17:17:57: Importing 4 parts to I:\__Stream\_eMule\Temp.eMule\005.part.
02.09.2006 17:17:58: Part 5: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:58: Part 8: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:58: Part 17: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:17:58: Import finished. 1 parts imported to 005.part.
02.09.2006 17:18:06: Importing 3 parts to I:\__Stream\_eMule\Temp.eMule\005.part.
02.09.2006 17:18:07: Part 8: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:18:07: Part 17: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:18:07: Import finished. 1 parts imported to 005.part.
02.09.2006 17:18:17: Importing 2 parts to I:\__Stream\_eMule\Temp.eMule\005.part.
02.09.2006 17:18:17: Part 17: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk).
02.09.2006 17:18:17: Import finished. 1 parts imported to 005.part.
02.09.2006 17:18:25: Importing 1 parts to I:\__Stream\_eMule\Temp.eMule\005.part.
02.09.2006 17:18:26: Import finished. 1 parts imported to 005.part.
02.09.2006 17:18:26: Hashing file: XXX [h264][CDE60AC7].mkv" "I:\__Stream\_eMule\Temp.eMule\005.part"
02.09.2006 17:18:56: Completed hashing of file 'I:\__Stream\_eMule\Temp.eMule\005.part'.


I couldn't import any parts to the file. But after a day or too I tried it again and managed to import one paert. Each time I tried to import eMule imorted 1 part, so after 5 tries I imported them all :-)
Every tim
0

#6 User is offline   Vahagn 

  • Morph Rider
  • PipPipPipPip
  • Group: Members
  • Posts: 216
  • Joined: 10-March 04

Posted 14 September 2006 - 04:41 PM

View Posteagle2l84, on Aug 4 2006, 09:43 PM, said:

...
- the Details show a "completed size" of 16777216 TB.

However, everything works fine. The files have been imported correctly and become completed as time goes by.
...

Same here with v8.14. Without any crashes, etc., etc., I just imported an old tempfile and... :D
eMule v0.50a [MorphXT v12.3] @ Windows 7 Ultimate x64
0

#7 User is offline   EvolutionCrazy 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1226
  • Joined: 05-May 04

Posted 14 September 2006 - 06:06 PM

i've exactly the same problem as Fduch... this since 8.13... and still here with 8.14 as far as i can see :(
There are three kinds of people in this world: people who watch things happen ... people who complain about things that happen ... and people who make things happen...
0

#8 User is offline   cmainc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 28-September 06

Posted 28 September 2006 - 08:00 PM

Unfortunately import parts to file still doesn't work, last working version is 8.12 I didn't check beta 8.13
It imports one part & crash, one & crash until find wrong part then crash completely:)
0

#9 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 28 September 2006 - 08:10 PM

SiRoB Aireoreion recently asked me to investigate and fix that for the iONiX mod.
If you want you can contact him (I don't have the files anymore) for the changes.
The main point was pretty easy to spot:
you delete the buffer after you read 1 chunk so it can't be used again and will throw an exception for the next one; you may not delete it inside the loop or have to allocate a global buffer or allocate it for every chunk you want to import (don't even remember which method I finally used :lol:)
GreetZ,
WiZ
0

#10 User is offline   cmainc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 28-September 06

Posted 28 September 2006 - 08:13 PM

When i need import a part i just run 8.12 :thumbup:
0

#11 User is offline   Vahagn 

  • Morph Rider
  • PipPipPipPip
  • Group: Members
  • Posts: 216
  • Joined: 10-March 04

Posted 29 September 2006 - 05:36 AM

View Postcmainc, on Sep 29 2006, 01:13 AM, said:

When i need import a part i just run 8.12 :thumbup:

:D
P.S. Checked the official 0.47c right now. It works fine :)

This post has been edited by Vahagn: 29 September 2006 - 05:39 AM

eMule v0.50a [MorphXT v12.3] @ Windows 7 Ultimate x64
0

#12 User is offline   JoeJ99 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 25-August 06

Posted 29 September 2006 - 05:52 PM

With 8.13 I get the "Part 1: Not accessible (You may have to run scandisk to correct a bad cluster on your harddisk)" error. It's worth pointing out that even though you get the error every time you try the import of the file, each time it does actually import one more chunk. So if there are 50 chunks worth of data in your import file, you need to import 50 times (until it says 0 chunks imported).

While this is a pain, it is usually quicker and less painful then downloading that data all over again or going out and setting up another non-Morph client where the import function works.
0

#13 User is offline   lordpake 

  • Hiding in the wall
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2163
  • Joined: 22-March 03

Posted 30 September 2006 - 11:39 PM

May I inquire will this be fixed in the upcoming version(s)? This feature is one of the reasons I like MorphXT so much and frankly would hate to see it lost. Or as complex to use as mentioned by the previous poster.

And before someone cracks any jokes about me doing something to fix it myself, believe me I'd should I know anything about programming (besides coding "Hello World!" in Java..)


:flowers: from someone still using 8.9

Edit: I assume we are talking about Import parts to file functionality, if not feel free to ignore me :P

This post has been edited by lordpake: 30 September 2006 - 11:45 PM

#eMule-Finland @ irc.mindforge.org ~ both English and Finnish will do ^^


My system specs are --> here <-- | Netizen's guide to Flame Warriors | Spyware problems? Try LandzDown Forum
0

#14 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 01 October 2006 - 08:06 AM

I saw they applied the mentioned fix in CVS already so consider that done :thumbup:
0

#15 User is offline   lordpake 

  • Hiding in the wall
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2163
  • Joined: 22-March 03

Posted 01 October 2006 - 08:46 AM

Cool enough :) Maybe I get to update after all once new version is out
#eMule-Finland @ irc.mindforge.org ~ both English and Finnish will do ^^


My system specs are --> here <-- | Netizen's guide to Flame Warriors | Spyware problems? Try LandzDown Forum
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users