aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Crash when importing a part file from emule  (Read 5429 times)

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Crash when importing a part file from emule
« on: December 16, 2008, 04:41:22 AM »

I don't know why my amule crash while it is importing a part file from emule. My eMule version is 49b. the file is nearly downloaded in eMule, about 99% but aMule can not import it.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash when importing a part file from emule
« Reply #1 on: December 16, 2008, 02:58:39 PM »

aMule version?
Logged
concordia cum veritate

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Crash when importing a part file from emule
« Reply #2 on: December 17, 2008, 01:12:34 AM »

aMule2.2.2 on Macbook pro  10.5.5
It is bizarre because I had two files, one of them has imported perfectly but aMule on the other one file crashes.
« Last Edit: December 17, 2008, 01:15:31 AM by Moha »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crash when importing a part file from emule
« Reply #3 on: December 17, 2008, 02:56:20 AM »

Interesting. It would be nice if you could provide the .part.met file that is causing aMule to crash, so we can try to reproduce it. Please keep it so we can investigate further, and if possible either provide it here as an attachment (probably as a .zip file to bypass forum restrictions) or mail it to one of the developers.

Thanks
Logged

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Crash when importing a part file from emule
« Reply #4 on: December 17, 2008, 03:53:19 AM »

Voila, This is the part file.
I glimpsed on the crash information which has been provided by Apple, since my aMule binary dosn't have any attached debug information I couldn't find any useful information.
« Last Edit: December 17, 2008, 03:57:05 AM by Moha »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash when importing a part file from emule
« Reply #5 on: December 17, 2008, 07:39:01 PM »

I couldn't reproduce the crash. The .met file you posted seems to be valid and working. At which point in the importing process did it crash? It would be good if you could reproduce the crash with a debug-enabled build.
Logged
concordia cum veritate

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Crash when importing a part file from emule
« Reply #6 on: December 17, 2008, 08:15:37 PM »

First of all thank you for your measures. I have some problems in compiling a debug enabled version of aMule in mac. But i am currently working on it.

PS: Maybe it is easier to download a debug enabled version?!?!
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash when importing a part file from emule
« Reply #7 on: December 17, 2008, 09:12:05 PM »

PS: Maybe it is easier to download a debug enabled version?!?!

You may want to try this package built by gtoso.
Logged
concordia cum veritate

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Crash when importing a part file from emule
« Reply #8 on: December 17, 2008, 11:53:19 PM »

Ok,  I copied one more time the eMule files and I have attached them here.

Also I have included the apple crash report
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crash when importing a part file from emule
« Reply #9 on: December 18, 2008, 12:13:47 AM »

The apple crash report is actually quite useful, thanks. Gonosz, you can take a look at it, it seems a crash inside wx but when updating the GUI in the thread. Threads must never use GUI functions.
Logged

Moha

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Crash when importing a part file from emule
« Reply #10 on: December 18, 2008, 12:44:43 AM »

Thank you,
Nevertheless, I have imported the file into aMule. It seems that the debugged version is more stable than the ordinary version(due to lacks of optimizations?) because it dosn't crash each time I tried to import the file. It is a little weird. After 3 times effort, I manged to import it without crash! but aMule had shown the size of available parts zero, but after restarting the aMule It found the downloaded parts completely. 
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Crash when importing a part file from emule
« Reply #11 on: December 18, 2008, 12:54:12 AM »

The apple crash report is actually quite useful, thanks. Gonosz, you can take a look at it, it seems a crash inside wx but when updating the GUI in the thread. Threads must never use GUI functions.

Seems like the partfile importer needs a rewrite.
Logged
concordia cum veritate

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crash when importing a part file from emule
« Reply #12 on: December 18, 2008, 01:27:37 AM »

The proper way is events posted to the main thread with the progress data.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Crash when importing a part file from emule
« Reply #13 on: December 26, 2008, 08:36:02 PM »

I made a tracker entry (1461).
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon