Closed alexvlockwood-bes closed 2 years ago
Oh that looks like a bug, thanks for reporting!
Can you be more specific on what lead to this?
How did you upload the PDF into the root? Using the drag&drop? (It should totally work, if it doesn't it's a bug)
Can you find out the type of the skipped index[parent]
?
I actually used right click -> import, on master
before upgrading to devel
(sorry, should have been more specific about that - master created the bad state, but both master and devel choke on it).
I'll get back to you on the type - I've already cleared the error out by deleting the file manually from the tablet's UI, I'll try to reproduce it.
Ah it could be a bug of master (will try to find time to merge devel, master is just obsolete at this point but I have to document the changes).
Yet I have no idea how index[parent].files
can become None
...
I'm kicking myself for deleting the file now, because I can't replicate this at all anymore.
However, I do find that master locks up a lot for me (not just while file operations are happening, it just locks up hard) so it's possible that I killed it while it was in some incomplete state? I don't remember killing it at a time when it appeared to be "working" but could be wrong.
Welp. I guess if can't replicate the error state there's not much you can do here, other than maybe make loading less sensitive to individual objects with unexpected characteristics
By "locks up" you mean it spins? Or crashes? Does devel also "lock up"? Hopefully devel is better behaved 😅
Totally frozen UI and unresponsive to everything including a ctrl-C on the command line, have to kill -9
yes, I have not had that on devel :) devel is very well behaved
Running
devel
branch. I imported a PDF directly into the root (maybe I wasn't supposed to, but I was just clicking around trying to figure out how this works). The upload was successful, but after doing this, I could no longer connect to the reMarkable 2:I hacked around to get it to print an actual backtrace, and the error was here:
I was able to make it "work" by doing this, but I have no idea what I'm doing lol so take this more as a hint to where the problem lies than a suggestion on how to fix it
With this in place, everything appears to still be functional. Looks like it's created a PDFDoc entry with no parent and is trying to access its parent.