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 crashes when trying to share LAN network disk?  (Read 3587 times)

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
amule crashes when trying to share LAN network disk?
« on: January 07, 2006, 01:39:37 AM »

Hello, I migrated from windows to linux several months ago so I also switched from emule to amule. emule did not work well with network disks accessible via LAN but I hoped since linux handles those disks just like local disks, it would be different with amule. However, it does not seem so. I am using FAT32 formatting on my harddisk, could that be the problem?
When I run amule from command line and then try to add to shares my network disk, amule crushes and prints out following:

Quote
Terminated after throwing an instance of 'CSeekFailureException'         what(): SafeIO::IOFailure::SeekFailure:
Failed to retrieve length of file: Invalid argument        
backtrace:
[2] ?? in /usr/lib/libstdc++.so.6 [0xb7a9ded4]
[3] ?? in /usr/lib/libstdc++.so.6 [0xb7a9df11]
[4] ?? in /usr/lib/libstdc++.so.6 [0xb7a9e09c]
[5] wxSocketEvent::~wxSocketEvent() in amule [0x822464f]
[6] wxTopLevelWindowGTK::IsGrabbed() const in amule [0x8131bb2]
[7] wxTopLevelWindowGTK::IsGrabbed() const in amule [0x8132401]
[8] wxTopLevelWindowGTK::IsGrabbed() const in amule [0x8132633]
[9] wxGenericListCtrl::Update() in amule [0x819e433]
[10] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.6.so.0[0xb7b082c1]
[11] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b90edf]
[12] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b910b0]
[13] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b91261]
[14] wxWindowBase::TryParent(wxEvent&) in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7e0a024]
[15] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b91217] [16] ?? in /usr/lib/libwx_gtk2u_core-2.6.so.0 [0xb7d5fda4]
[17] g_cclosure_marshal_VOID__VOID in /usr/lib/libgobject-2.0.so.0[0xb7304ab3]
[18] g_closure_invoke in /usr/lib/libgobject-2.0.so.0[0xb72f93a8]
[19] ?? in /usr/lib/libgobject-2.0.so.0 [0xb7307e8d]
[20] g_signal_emit_valist in /usr/lib/libgobject-2.0.so.0[0xb7309150]
[21] g_signal_emit in /usr/lib/libgobject-2.0.so.0[0xb73094c3]
[22] gtk_button_clicked in /usr/lib/libgtk-x11-2.0.so.0[0xb761222c]
[23] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb7613a4c]
[24] g_cclosure_marshal_VOID__VOID in /usr/lib/libgobject-2.0.so.0[0xb7304ab3]
[25] ?? in /usr/lib/libgobject-2.0.so.0 [0xb72f8d75]
[26] g_closure_invoke in /usr/lib/libgobject-2.0.so.0[0xb72f93a8]
[27] ?? in /usr/lib/libgobject-2.0.so.0 [0xb7307769]
[28] g_signal_emit_valist in /usr/lib/libgobject-2.0.so.0[0xb7309150]
[29] g_signal_emit in /usr/lib/libgobject-2.0.so.0[0xb73094c3]
[30] gtk_button_released in /usr/lib/libgtk-x11-2.0.so.0[0xb76121a6]
[31] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb7613115]
[32] _gtk_marshal_BOOLEAN__BOXED in /usr/lib/libgtk-x11-2.0.so.0[0xb76d302c]
[33] ?? in /usr/lib/libgobject-2.0.so.0 [0xb72f8d75]
[34] g_closure_invoke in /usr/lib/libgobject-2.0.so.0[0xb72f93a8]
[35] ?? in /usr/lib/libgobject-2.0.so.0 [0xb7307c9f]
[36] g_signal_emit_valist in /usr/lib/libgobject-2.0.so.0[0xb7308ec3]
[37] g_signal_emit in /usr/lib/libgobject-2.0.so.0[0xb73094c3]
[38] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0xb77b516f]
[39] gtk_propagate_event in /usr/lib/libgtk-x11-2.0.so.0[0xb76d1767]
[40] gtk_main_do_event in /usr/lib/libgtk-x11-2.0.so.0[0xb76d1ba0]
[41] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0xb7575b2d]
[42] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb728c4ee]
[43] ?? in /usr/lib/libglib-2.0.so.0 [0xb728f4f6]
[44] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb728f7e3]
[45] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb76d0e65]
[46] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d0e2a7]
[47] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d9db6a]
[48] wxAppBase::OnRun() in /usr/lib/libwx_gtk2u_core-2.6.so.0[0xb7d9dc4f]
[49] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b3bad4]
[50] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.6.so.0[0xb7b3bb88]
[51] wxTopLevelWindowGTK::IsGrabbed() const in amule [0x8181339]
[52] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0xb789eea2]
[53] __gxx_personality_v0 in amule[0x80680f1]  
Aborted

not that it would worry me that much since it does not affect me downloading from the others ,but it would be nice to share as much as possible. Still most of my data lies on that disk.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule crashes when trying to share LAN network disk?
« Reply #1 on: January 08, 2006, 11:25:47 PM »

Sorry for the late reply, we've been discussing how to fix this properly. Could you possible test a patch for us, since none of us can reproduce this problem?
Logged

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: amule crashes when trying to share LAN network disk?
« Reply #2 on: January 10, 2006, 12:34:44 AM »

I surely could, at least I hope it will not be a problem. Just somehow hand the patch to me. I am using ubuntu package (http://www.ptlug.org/download/packages/amule_2.1.0-2_i386.deb) that some nice guy linked in the discussion under the realese anounncement, if this information is any good to you. Yet it has one major problem - I currently messed with my partition table and none of my operation systems is working (being on live CD right now], but I should somehow overcome it, so as soon I have my system back, I am all yours.
Logged

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: amule crashes when trying to share LAN network disk?
« Reply #3 on: January 28, 2006, 03:40:29 AM »

Well, my system is back and amule still crashes when trying to share network folders. I am eager to test a patch for you.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule crashes when trying to share LAN network disk?
« Reply #4 on: January 28, 2006, 02:38:43 PM »

Here you are. There are two parts to this patch. First off, it adds a missing exception-handler, so aMule wont crash if that error occurs. Secondly, it attempts to fix the error by using a different approch to getting file-lengths. Once you've compiled aMule ith the patch and run it, look in the log-window for bolded messages beginning with "KnownFileList: Failed to get filesize, skipping:". If you get no such messages, then both parts of the patch worked as intended.
Logged

sup

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: amule crashes when trying to share LAN network disk?
« Reply #5 on: January 28, 2006, 04:22:29 PM »

it seems to work, I added shares on my network disk and amule did not crashed nor printed anything in the log beside some info about starting of new hash thread, which is taking incredibly long, but it is fine and expected since lan speed is somewhere around 4mbits. Thanks guys!
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amule crashes when trying to share LAN network disk?
« Reply #6 on: January 28, 2006, 04:38:13 PM »

Thanks. I'll make sure those changes make it to 2.1.1.
Logged