aMule Forum

English => en_Bugs => Topic started by: Moha on December 16, 2008, 04:41:22 AM

Title: Crash when importing a part file from emule
Post by: Moha 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.
Title: Re: Crash when importing a part file from emule
Post by: GonoszTopi on December 16, 2008, 02:58:39 PM
aMule version?
Title: Re: Crash when importing a part file from emule
Post by: Moha 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.
Title: Re: Crash when importing a part file from emule
Post by: Kry 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
Title: Re: Crash when importing a part file from emule
Post by: Moha 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.
Title: Re: Crash when importing a part file from emule
Post by: GonoszTopi 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.
Title: Re: Crash when importing a part file from emule
Post by: Moha 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?!?!
Title: Re: Crash when importing a part file from emule
Post by: GonoszTopi 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 (http://gtoso.tor.it/pub/amule/osx/2.2.2/aMule-2.2.2-Debug-GeoIP-OSX10.4+-GToso_2.dmg) package built by gtoso.
Title: Re: Crash when importing a part file from emule
Post by: Moha 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
Title: Re: Crash when importing a part file from emule
Post by: Kry 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.
Title: Re: Crash when importing a part file from emule
Post by: Moha 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. 
Title: Re: Crash when importing a part file from emule
Post by: GonoszTopi 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.
Title: Re: Crash when importing a part file from emule
Post by: Kry on December 18, 2008, 01:27:37 AM
The proper way is events posted to the main thread with the progress data.
Title: Re: Crash when importing a part file from emule
Post by: Stu Redman on December 26, 2008, 08:36:02 PM
I made a tracker entry (1461).