scanMessageReceived - EOFError: Ran out of input

Bug #1665879 reported by Matt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Status tracked in Pyqt
Pyqt
Fix Released
High
Damon Lynch

Bug Description

When I open rapid-photo-downloader I receive the following error on the command line and in a popup window. The application then doesn't function and I have to close the window. Log file attached.

Traceback (most recent call last):
  File "/home/matt/.local/lib/python3.5/site-packages/raphodo/excepthook.py", line 96, in excepthook
    errorbox.exec_()
SystemError: <built-in method exec_ of QMessageBox object at 0x7f60b46a4288> returned a result with an error set

Original exception was:
Traceback (most recent call last):
  File "/home/matt/.local/lib/python3.5/site-packages/raphodo/rapid.py", line 3701, in scanMessageReceived
    data = pickle.loads(pickled_data) # type: ScanResults
EOFError: Ran out of input

Thanks

Related branches

Revision history for this message
Matt (mattdavis90) wrote :
Revision history for this message
Damon Lynch (dlynch3) wrote :

Hi Matt, thanks for your bug report and for including the log file. I've only had a chance to look at the log file, but as yet I have not had a chance to compare the log output against the code. Unfortunately I won't be able to attend to the bug for a couple of days. Meanwhile, before it crashed, did the main window display the boxes for the 256 files where the thumbnails would normally be displayed?

Changed in rapid:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Damon Lynch (dlynch3)
Revision history for this message
Matt (mattdavis90) wrote :

Hi Damon,

Thanks for looking into this. The main window didn't manage to show the thumbnail boxes. The middle portion of the UI is completely empty. The small spinner in the top left of the SD card window eventually stops spinning and I can untick and retick the box to rescan either the SD card or another directory on my computer, at this point if there are any images in the directory then I get this error again; if the directory is empty I don't see anything.

I'm happy to post a screenshot, if that helps. I can also dump list of package versions for anything that is relevant?

Thanks

Revision history for this message
Damon Lynch (dlynch3) wrote :

Thanks for the additional information. The log file contains which versions of particular packages on your system so no need for additional info about that at this stage.

What happens if you restart the program and scan a directory of photos already on your computer? Does it likewise crash, or behave as expected? It's important to do that before the program has gotten into a state where it generates that exception, which is why I suggest restarting it.

Revision history for this message
Matt (mattdavis90) wrote :
Download full text (4.2 KiB)

I started the application from the command line as follows;

rapid-photo-downloader --debug ~/Pictures/

I get the following error

ERROR An unhandled exception occurred
ERROR Traceback (most recent call last):
  File "/home/matt/.local/lib/python3.5/site-packages/raphodo/rapid.py", line 3701, in scanMessageReceived
    data = pickle.loads(pickled_data) # type: ScanResults
EOFError: Ran out of input

I've also attached the log file.

I noticed that Python seg. faults. I ran Python in gdb and collected the output. Unfortunately it seems to be within Qt5. Please see the output below (I'm not sure how useful this is)

(gdb) r
Starting program: /usr/bin/python3 /home/matt/.local/bin/rapid-photo-downloader /home/matt/Pictures
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Detaching after fork from child process 24863.
Detaching after fork from child process 24864.
[New Thread 0x7fffd1a92700 (LWP 24866)]
[New Thread 0x7fffc9a0f700 (LWP 24867)]
[New Thread 0x7fffc920e700 (LWP 24868)]
[New Thread 0x7fffc8a0d700 (LWP 24869)]
[New Thread 0x7fffbbb90700 (LWP 24870)]
Detaching after fork from child process 24872.
Detaching after fork from child process 24874.
Detaching after fork from child process 24875.
[New Thread 0x7fffb88cf700 (LWP 24876)]
[New Thread 0x7fffb3fff700 (LWP 24877)]
[New Thread 0x7fffb37fe700 (LWP 24878)]
[New Thread 0x7fffb2ffd700 (LWP 24879)]
Detaching after fork from child process 24880.
[New Thread 0x7fffb27fc700 (LWP 24881)]
[New Thread 0x7fffb1ffb700 (LWP 24882)]
Detaching after fork from child process 24883.
Detaching after fork from child process 24900.
[New Thread 0x7fffb17fa700 (LWP 24926)]
[New Thread 0x7fffb0a81700 (LWP 24929)]
[New Thread 0x7fff9bfff700 (LWP 24930)]
[New Thread 0x7fff9b7fe700 (LWP 24931)]
Detaching after fork from child process 24932.
[New Thread 0x7fff9affd700 (LWP 24933)]
Detaching after fork from child process 24934.
[New Thread 0x7fff9a7fc700 (LWP 24935)]
[New Thread 0x7fff99ffb700 (LWP 24936)]
Detaching after fork from child process 24954.
Detaching after fork from child process 24956.
ERROR An unhandled exception occurred
ERROR Traceback (most recent call last):
  File "/home/matt/.local/lib/python3.5/site-packages/raphodo/rapid.py", line 3701, in scanMessageReceived
    data = pickle.loads(pickled_data) # type: ScanResults
EOFError: Ran out of input

[Thread 0x7fffb27fc700 (LWP 24881) exited]
[Thread 0x7fffb1ffb700 (LWP 24882) exited]
[Thread 0x7fff9bfff700 (LWP 24930) exited]
[Thread 0x7fff9b7fe700 (LWP 24931) exited]
[Thread 0x7fff9affd700 (LWP 24933) exited]
[Thread 0x7fff9a7fc700 (LWP 24935) exited]
[Thread 0x7fff99ffb700 (LWP 24936) exited]
[Thread 0x7fffb0a81700 (LWP 24929) exited]
[Thread 0x7fffb2ffd700 (LWP 24879) exited]
[Thread 0x7fffb37fe700 (LWP 24878) exited]
[Thread 0x7fffb3fff700 (LWP 24877) exited]
[Thread 0x7fffb88cf700 (LWP 24876) exited]

Thread 6 "QDBusConnection" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbbb90700 (LWP 24870)]
0x00007fffe477df8d in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /lib64/libQt5Core.so.5
(gdb)
(gdb) where
#0 ...

Read more...

Revision history for this message
Damon Lynch (dlynch3) wrote :

The fact that it also generates an exception while scanning a folder on the computer is useful, thanks. I have a VirtualBox instance of Fedora 25 in which early next week I'll see if I can replicate the problem. I've not seen that bug before, but that might be because my Fedora instance doesn't have the most recent updates.

Revision history for this message
Damon Lynch (dlynch3) wrote :

I'm able to replicate the problem when running Fedora 25 with the latest updates. The problem does not occur in Fedora 24 with the latest updates.

Revision history for this message
Matt (mattdavis90) wrote :

Thanks for fixing this. Everything is working great today.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.