New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nicotine+ doesn't open: Value: 'int' object has no attribute 'split' error #1917
Comments
Did this issue start occurring recently? If so, do you remember what you did? There seems to be an invalid file path value at the second index of one of the downloads, in |
It's been a while since I first started having this error. I never really made the connection that a download could have caused the error, so I stopped using Nicotine for a while in case an update came around that fixed this error.
Here's my |
In the very first record...
For you @lachlantula you can fix the error by deleting this record from the file (or deleting the entire file). For us we should put the three missing sanity checks into add_stored_transfers for nicotine-plus/pynicotine/transfers.py Line 250 in 701cc30 nicotine-plus/pynicotine/transfers.py Line 297 in 701cc30
|
That's the bitrate, the size is missing entirely. It's possible that an old build extracted the incorrect values when queuing a download from a certain part of the program, at least I have vague memories of this. I've checked all parts of the code that provide a file path to Transfer objects, and everything seemed fine. Since nobody else has reported this issue, it probably happened a long time ago, and started causing issues after the critical error dialog was added.
str(i[0]), str(i[1]) and str(i[2]) should do. We should also skip transfers that don't include these properties. |
No, this is insufficient, because
Indeed, |
It depends on the situation, but yes, we should probably discard the download entirely here, since these strings are sent to other peers. I find |
We could use Or we could do some string operation, like split() or somesuch, to invoke the except handler that is in-place. |
Nicotine+ version: 3.2.1
Operating System/Distribution: Arch (using kernel 5.6.10-arch1-1)
Describe the bug
Nicotine+ crashes when I open it with the following error:
Expected behavior
Nicotine+ will open successfully.
Steps to reproduce the bug
Open Nicotine+ on my system.
Additional context
I don't really have any good explanation for this error, but it also occurs when using the nicotine-plus-git package. If anyone has any pointers I'd be happy to provide some more information than I have.
The text was updated successfully, but these errors were encountered: