aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule (again?) fails to save total upload / download  (Read 2067 times)

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
amule (again?) fails to save total upload / download
« on: January 17, 2005, 05:03:24 PM »

This is from the changelog of rc8:
Quote
When aMule crashes, it not longer fails saving:
* Preferences (Saved on 'OK')
* Categories (Saved on changes)
* Total upload / download bytes (saved while running).

This worked on rc8 for me. But now I had amule-cvs-20050111 runnning until it crashed on me just now and again he "forgot" the upload / download of this session. Another setting that was lost were some deactivated categories and the width of the categories in the shared files tab.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

lfroen

  • Guest
Re: amule (again?) fails to save total upload / download
« Reply #1 on: January 17, 2005, 05:21:16 PM »

When amule crashes, it means it doesn't work like it should - so whatever happens to it's internal data it's undefined. It will, however, attempt to save as match as it can, but no promises here - memory is already corrupted (otherwize it wouldn't crash on a first place).
Now, we don't want to have another SIGSEG while saving data - so exception handler must be brief as possible: NO closing files/sockets/windows, NO freeing memory, NO calling destructors etc. Becouse all those make access to internal datastructure which is corrupted somewhere.

Conclusion: when it crashes - come here to complain, post backtrace, curse developers. There's good chance that one of them will actually understand a problem and fix it :)
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: amule (again?) fails to save total upload / download
« Reply #2 on: January 17, 2005, 06:18:42 PM »

About the backtrace: mea culpa, I just read the wiki post about gdb yesterday, now my amule runs inside gdb and I will start posting useful backtraces.  :))

I get your point, but rc8 seemed to save the total upload / download every hour or so, so if it crashes only the data since the last save was lost. But on todays crash amule just forgot everything about the 3 days it was running...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Skuromis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
Re: amule (again?) fails to save total upload / download
« Reply #3 on: January 30, 2005, 03:46:45 PM »

Moin!
My muli crashed (CVS version). And it didn't save the uploadcounter.
After the crash it was set back to a value thats nearly 24 hours old. I can't imagine why this value, I didn't anything to amule since this time.

Skuro

BTW: the crah was caused by amuleweb again..
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amule (again?) fails to save total upload / download
« Reply #4 on: January 31, 2005, 05:30:25 PM »

humpf, mumble mumble, ok, I'll fix it AGAIN.
Logged