zlatinb / muwire

MuWire file sharing client for I2P
GNU General Public License v3.0
191 stars 27 forks source link

Problem loading shared files in latest build #173

Open Searinox opened 1 year ago

Searinox commented 1 year ago

It may be late to mention now but in the latest build after "nearly" all the shared files are loaded, the last chunk hangs. Everytime. The result of this is the indexing never finishes, share search is never activated etc.. It's always done this since it was committed and I've been using the previous build since. Network search, downloads etc. work but the sharing never finishes. I couldn't find any exceptions in the logs and the application otherwise runs and exits gracefully enough that it doesn't make it look like a thread outright crashes. There's no CPU or disk activity, and the files that remain unshared aren't big anyway.

zlatinb commented 1 year ago

Ok, this is going to be a bit difficult to debug. Please add the following two lines to logging.properties:

com.muwire.core.files.level=FINE
com.muwire.core.EventBus.level=FINE

You will see many entries for each shared file that is being loaded. At the end, you should also see entries about files being hashed. The reason for that is that MuWire will re-hash any shared files which have been modified after they have been shared. That is the step whre the hang occurs.

Look for log entries that contain FileHashedEvent with some error.