Tmp folder filling up

I’ll admit right up front that, at the time I was working on this, I didn’t really know what I was doing or the difference between a PATA and a SATA drive. My computer had a 500GB PATA Western Digital HD. I purchased a 1000GB SATA HD which I wanted to make my primary boot drive. I was going to mount the 500GB drive as a secondary/backup drive and copy all my files from my Home folder to the 1000GB drive after installing Ubuntu on it.

The problem was that even though my motherboard would accept a SATA drive, it would only boot from the PATA interface. During the process of figuring all this out, the MBR of both drives was scrambled. I used testdisk to try to recover the MBR and the files on the drives. Testdisk is supposed to be able to rewrite the MBR, but the “smartdrive” technology would not allow that.

Although neither drive was recoverable, testdisk did allow me to copy all my files from the Western Digital drive to another drive. Since Western Digital does not provide support to anyone running Linux, I’m forced to come to my own conclusions about what happened to the drives.

Since I could get no support from Western Digital on how to recover the drives, my research led to to conclude that the smartdrive technology had interpreted my actions as trying to illegally copy copy-protected/copyright files.

The end result was that both drives were converted to paperweights. I still have the drives. If anyone has a suggestion on how to get testdisk to write a new MBR to make the drives usable, I’d certainly be interested in hearing it.

After transferring the files to my new Seagate harddrive I was unable to open anything because of the files permissions. I did some research on the Ubuntu forum on how to do a bulk file permission reset. Over the past couple of years, I’ve had no problems opening any of my document files. If that permission reset did anything to the epub files to drive Atril bananas I have no way of knowing. Jim

Boot into a live session after connecting the drives (I’d suggest you to see in the BIOS if they’re recognized, also you can take off the ones you have now to not screw anything and remember the port they was connected to 1, 2, etc. this shouldn’t matter but…). Open gparted and select the rive. Go to Drive->Create Partition table-> Select ms-dos (MBR) or GPT depending on what you’re looking for. After that you should have the drive with a partition table (or 2 with GPT) so you can create the partitions you want and the format you want for each one.

It would be recommended to check the S.M.A.R.T. status before or after this, you can get that thru disks.

Thanks. I’ll give that a try. At the time I was going through this, I had 20+ years of photos, financial records, documents and the book I was working on with no other backup. The thought of using gparted before recovering my files terrified me (and still does).

At this point, I’ve recovered all my files so if I do something that wipes the drive clean (or even blows it up) I will not have lost anything. And being able to convert my paperweight back into a usable drive will save me a few bucks. :grinning:

My only point in saying all this was that the damage to the drives was software related (like a virus or malware), not hardware related (like a power surge or static discharge). As I understand it, the OS keeps two copies of the MBR - the second copy to be used as a backup in case the first is damaged. The only files (on both drives) which were not recoverable were both copies of the MBR.

In conclusion: Since the only apparent damage to both drives was software related, specifically, that two files (both copies of the MBR on each drive) were rendered unrecoverable, I came to the conclusion that this could have only happened purposely and had been done by the so-called “smart-drive” technology.

If you can give me any other scenario where simply hooking the drives up incorrectly would damage, and render unrecoverable, two specific files on both drives then I’ll take back everything I’ve ever said under my breath about Western Digital. :grimacing:

Anyway, the ?reason? I got off into this stroll down nightmare lane was that Bill asked if I had any “strange permissions or owners on any files involved?” In trying to answer his question, I got sidetracked into why that could very well be possible.

JIm, you didn’t get it clear. MBR (or the way gparted calls it “ms-dos”) and GPT are partition tables. A drive can only have one at a time and are independent from the OS. MBR has only 1 partition table while GPT has 2 (actually it has one and the other one is accessed if something went wrong).
The way ITs works is like modules and ladders on this regard. The BIOS (UEFI or not) looks for the boot devices and calls the first on its list. Then this device has the partition table that indicates how many partitions there are and at which address they are. Then its called the bootloader marked there and this bootloader boots the OS.
iT’S HARD TO SAY WHAT EXACTLY HAPPENED BACK THERE!!! :zipper_mouth:But today is today, and from my post you can get any drive to work if it is not damaged, that’s why you should check the S.M.A.R.T. data thru DISKS utility and post it here so I could tell you is the drives are OK to use.

That is so true!!! :grinning: I used to drive nothing but General Motors products. Then I went through a period where every new GM vehicle I bought developed an oil leak around 30,000 miles. I now drive nothing but Fords. I used to believe that Western Digital was the best drive made. Now I just use them for paperweights.

But, as you said “today is today,” and today my problem is not trying to make a paperweight into a usable drive…it’s why Atril fills my tmp folder with 50GB of thumbnailer files whenever I use Caja to open a folder with an epub file.:slight_smile:

Try with okular. If it does not repeat its an atrill problem but if insist, then is caja or other software that makes the mess.

Can you provide one of the epubs so we can attempt to reproduce?
Ideal would be:

  • The epub
  • The absolute path to the epub in your file hierarchy
  • The filesystem type where the file is stored
  • The file ownership and permissions as shown by ls -alh file

I’ve also experienced a thumbnail problem recently, though I suspect it was EOM failing to clean up after preview in an icon-view folder.

Cheers

Where would I upload the epub file to?

The path is: /home/jim/ebooks

The filesystem type is ext4

File ownership and permissions is:
jim@jim-pc:~/ebooks$ ls -alh
total 10M
drwxrwxr-x 2 jim jim 4.0K Oct 12 11:56 .
drwxr-xr-x 42 jim jim 4.0K Oct 12 11:56 …
-rw-r–r-- 1 jim jim 8.4M Jan 24 2015 gnucash-guide.epub
-rw-r–r-- 1 jim jim 1.3M Jan 24 2015 gnucash-help.epub
-rw-r–r-- 1 jim jim 311K Jan 24 2015 Letter_on_Corpulence.epub
jim@jim-pc:~/ebooks$

Hi Bill,
I’m still having the same problem. I went to [Caja][Edit][Preferences] and then clicked the [Extensions] tab. I unchecked the box next to [Atril Properties] hoping this would keep Atril from trying to build a thumbnail for the epub files. I then rebooted. No luck. Anytime I go to a folder (in Icon View) containing an epub file, Atril goes crazy trying to make a thumbnail, and if I keep that folder open long enough my whole / partition will fill up with Atril-Thumbnailer files.

I figure this will be addressed at some point, and switching to another file manager like Nemo, Dolphin or Nautilus is not going to address the problem if they use Atril to create their thumbnails.

The only work-around I have found is to keep any folder, containing an epub file, in either List View or Compact View. In either of these views, Atril does not try to create a thumbnail which solves my problem of the file explosion.

Of course, disabling Atril might work if there is something else that might do its job. Unchecking its box in preferences did not disable it, so I’m not quite sure if disabling it is an option, or if it’s best to just leave it alone and wait.

Thanks,

Jim

[Later] I’ve just discovered a new wrinkle. Even with a folder in Compact View, if I click on an epub file (I don’t have to double-click to open the file) the file explosion begins. Not sure why this is happening since I don’t think Atril builds a thumbnail for a file in Compact View. It just seems that Atril has a definite dislike for epub files.

Hey Jim,

I think you’re missing some key facts I tried to get to in my last post.

  1. Does it explode with one and only one epub file in a directory? 2? 10?

  2. Does the presence of a particular file cause it to explode?
    It turns out /tmp/atril-thumbnailer-xxxx/ are directories containing another directory with the file name. Is there any pattern with these file names?

I only have 2 epub files to try which could be a big factor. I keep getting a single /tmp entry for each thumbnail.

Hi Bill,

  1. The number of files in a folder does not seem to be a factor. In one folder I have only one epub file (7173_KindleFormatting.epub). The file explosion occurs if I open that folder in Icon View or if I click on that file in Compact or List View. All the Atril-thumbnailer-xxxx folders contain a folder beginning with 7173-KindleFormatting.epubxxxx.

In another folder I have six epub files. The file explosion occurs under the same circumstances, but most of the folders in the Atril-thumbnailer-xxxx folders are named either gnucash-guide.epubxxxx or gnucash-help.epubxxxx. A few of the other book titles are mixed in, but Atril seems to focus on these two.

  1. There does not seem to be a particular file that causes the explosion other than it being an epub.

From what you’re saying it would seem that this problem is specific to my computer. Synaptic tells me that all dependencies are satisfied and that there are no broken packages. Is there anything I might try reinstalling that might address this problem?

This is completely out-of-the-blue, but I recently tried to install google-webdesigner. I could never get it to work because of webdesigner’s issues with nvidia graphics adapters. I tried upgrading to the nvidia driver, but that completely crashed my system and I had to go back to the nouveau driver.

Is it possible that there could be some conflict between Atril and the nouveau driver (or the nvidia card)? Like I said, it’s just a wild, wild guess.

Thanks,

Jim

I located those two gnucash epubs and placed them in ~/ebooks
It did trigger an atril crash when I went to icon view in caja, but no file explosion: only two dirs and a few files were created:

watch -td ls -alh /tmp/atril*/*

Also, while atril is supposed to provide the preview, I don't get an actual preview in caja

I get the same output as you on those two files, except atril will keep producing atril-thumbnailer-xxxx folders for them as long as the folder containing the files is open in Icon View.

I’ve also had a crash notice from atril, but I’m not sure what I was doing at the time. It just popped up.

Also, I don’t get an preview for an epub file either. I had thought this was what was throwing atril into a loop.

I ran a little test. I set my timer for 30 sec and went to the folder containing the six epub files. I switched from List View to Icon View and started the timer. When the timer went off I switched back to List View. In 30 sec., Atril created 105 Atril-thumbnailer-xxxx folders containing approx. 20,000 files totaling approx. 700 MB. Probably not very scientific, but should give an idea of what’s happening.

Jim

Jim, do you have a thumb drive handy? Or external or network drive of some kind? I want to see if getting out of your home directory changes things or continues that explosion.

Like @ouroumov, I did get that Atril crash a few times but it tended to be when I was moving or copying epub files. These crashes could be different symptoms of the same instability causing your explosion.

I’m thinking out loud here… Why would Caja / Atril repeatedly scan a directory for icons? Does it constantly think there are new files? Does it constantly think it just entered a new directory? Is Atril almost crashing so it starts over repeatedly? I wonder if a live boot would do same? Could it be a file corruption a reinstall would solve? Some unique setting in Caja or Atril trigger this? My head is spinning…

I do have a thumb drive onto which I’ve backed up my home folder using Unison. I just inserted it and went to a folder with the epub files. Had the same file explosion.

I used Synaptic to reinstall the four packages associated with Atril. Still got the same results so I haven’t mentioned it.

I don’t think that Atril is repeatedly scanning the directory. I think it is trying to build a thumbnail for the epub file. Something in the code is causing it to fail before it completes the task. Since it did not complete the task of building the thumbnail, it starts over again, and again, and again,…

I’m going to try a live boot session and see what happens. I’ll let you know.

LATER: I booted to a live session, went to a folder with an epub file. No file explosion!!! There was only one Atril-thumbnailer-xxxx folder created, which, I guess, is normal. Atril did however crash. I saved the crash report to my home folder and can include that if it might be helpful. Does this mean the problem might be with my install?

I have a Gigabyte motherboard, so if I have to reinstall I would like to get some suggestions/recommendations on BIOS settings beforehand.

STILL LATER: Here is an excerpt from the crash report. The entire report is 732 KB and almost 2000 lines, so probably to large to paste into here. The following lines are repeated over and over.

(caja:2061): MateDesktop-WARNING **: Unable to create loader for mime type application/epub+zip: Unrecognized image file format
(caja:2061): MateDesktop-WARNING **: Error creating thumbnail for file:///home/jim/Documents/My%20Publications/NotPeace/7173_KindleFormatting.epub: Unrecognized image file format

(deja-dup-monitor:2088): GLib-CRITICAL **: Source ID 177 was not found when attempting to remove it
(mate-power-manager:2114): GLib-CRITICAL **: Source ID 128 was not found when attempting to remove it

Jim, Half the battle of fixing a bug is reliably creating it and I’m striking out.

I’m not sure how far you want to go for a solution. Reinstalling may or may not help but live boot indicates it might.

Another option, short of reinstalling but not a trivial change, is install the Mate 1.14 PPA:


Again, this is a complete overhaul of Mate and takes a while to install. While this PPA is maintained by Ubuntu-Mate’s Project Leader, it’s also arguably unofficial. I run it, BTW. :grin:

@Jim007, can you reproduce the file explosion with a folder containing only those two gnucash epubs I previously mentioned?
I think it might be time to consider filing a bug report.
How though, I’m not sure. Maybe @monsta can advise us on what information is needed.
I’m fairly certain the root cause comes from atril-thumbnailer crashing.

Here’s a snippet of the crash report:

 oct. 29 15:15:44 Box org.mate.atril.Daemon[1725]: RegisterDocument registered owner ':1.17176' for URI 'file:///home/ouroumov/ebooks/gnucash-guide.epub'
 oct. 29 15:15:44 Box org.mate.atril.Daemon[1725]: Watch name':1.17176' appeared with owner ':1.17176'
 oct. 29 15:15:48 Box org.mate.atril.Daemon[1725]: RegisterDocument process pending invocations for URI file:///home/ouroumov/ebooks/gnucash-guide.epub
 oct. 29 15:16:01 Box org.mate.atril.Daemon[1725]: UnregisterDocument URI 'file:///home/ouroumov/ebooks/gnucash-guide.epub'
 oct. 29 15:16:30 Box org.mate.atril.Daemon[1725]: Timeout; exiting daemon.
Package: atril 1.12.2-1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.4.0-45.66-generic 4.4.21
Registers:
 rax            0x2f2f2f3a656c6966    3399988171544226150
 rbx            0x0    0
 rcx            0x0    0
 rdx            0xad    173
 rsi            0x80    128
 rdi            0x15d8aa0    22907552
 rbp            0x15a7d70    0x15a7d70
 rsp            0x7ffc3df8fc30    0x7ffc3df8fc30
 r8             0x1595f08    22634248
 r9             0x15b5648    22763080
 r10            0x226    550
 r11            0x7f1ee7ae7b20    139770712718112
 r12            0x15d8aa0    22907552
 r13            0x80    128
 r14            0xad    173
 r15            0x158a170    22585712
 rip            0x7f1ee7ae7b2c    0x7f1ee7ae7b2c <cairo_image_surface_get_width+12>
 eflags         0x10206    [ PF IF RF ]
 cs             0x33    51
 ss             0x2b    43
 ds             0x0    0
 es             0x0    0
 fs             0x0    0
 gs             0x0    0
SegvAnalysis:
 Segfault happened at: 0x7f1ee7ae7b2c <cairo_image_surface_get_width+12>:    mov    (%rax),%eax
 PC (0x7f1ee7ae7b2c) ok
 source "(%rax)" (0x2f2f2f3a656c6966) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading unknown VMA
SourcePackage: atril
Stacktrace:
 #0  0x00007f1ee7ae7b2c in cairo_image_surface_get_width () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 No symbol table info available.
 #1  0x00007f1ee97d200e in ev_document_misc_surface_rotate_and_scale () from /usr/lib/x86_64-linux-gnu/libatrildocument.so.3
 No symbol table info available.
 #2  0x00007f1ee1380b05 in ?? () from /usr/lib/x86_64-linux-gnu/atril/3/backends/libepubdocument.so
 No symbol table info available.
 #3  0x0000000000401b2a in ?? ()
 No symbol table info available.
 #4  0x000000000040177c in ?? ()
 No symbol table info available.
 #5  0x00007f1ee8099830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 #6  0x0000000000401939 in ?? ()
 No symbol table info available.
StacktraceAddressSignature: /usr/bin/atril-thumbnailer:11:/usr/lib/x86_64-linux-gnu/libcairo.so.2.11400.6+37b2c:/usr/lib/x86_64-linux-gnu/libatrildocument.so.3.0.0+1a00e:/usr/lib/x86_64-linux-gnu/atril/3/backends/libepubdocument.so+2b05:/usr/bin/atril-thumbnailer+1b2a:/usr/bin/atril-thumbnailer+177c:/lib/x86_64-linux-gnu/libc-2.23.so+20830:/usr/bin/atril-thumbnailer+1939
StacktraceTop:
 cairo_image_surface_get_width () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 ev_document_misc_surface_rotate_and_scale () from /usr/lib/x86_64-linux-gnu/libatrildocument.so.3
 ?? () from /usr/lib/x86_64-linux-gnu/atril/3/backends/libepubdocument.so
 ?? ()
 ?? ()
Tags:  xenial
ThreadStacktrace:
 .
 Thread 4 (Thread 0x7f1eda548700 (LWP 8419)):
 #0  0x00007f1ee8452c6d in nanosleep () from /lib/x86_64-linux-gnu/libpthread.so.0
 No symbol table info available.
 #1  0x00007f1ee86d1238 in g_usleep () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #2  0x0000000000401a6e in ?? ()
 No symbol table info available.
 #3  0x00007f1ee86cfbc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #4  0x00007f1ee844970a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
 No symbol table info available.
 #5  0x00007f1ee817f82d in clone () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 .
 Thread 3 (Thread 0x7f1ee1d89700 (LWP 8418)):
 #0  0x00007f1ee8173b5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 #1  0x00007f1ee86a939c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #2  0x00007f1ee86a9722 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #3  0x00007f1ee8ca7916 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 No symbol table info available.
 #4  0x00007f1ee86cfbc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #5  0x00007f1ee844970a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
 No symbol table info available.
 #6  0x00007f1ee817f82d in clone () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 .
 Thread 2 (Thread 0x7f1ee258a700 (LWP 8417)):
 #0  0x00007f1ee8173b5d in poll () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 #1  0x00007f1ee86a939c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #2  0x00007f1ee86a94ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #3  0x00007f1ee86a94e9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #4  0x00007f1ee86cfbc5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 No symbol table info available.
 #5  0x00007f1ee844970a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
 No symbol table info available.
 #6  0x00007f1ee817f82d in clone () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 .
 Thread 1 (Thread 0x7f1ee9bda980 (LWP 8416)):
 #0  0x00007f1ee7ae7b2c in cairo_image_surface_get_width () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 No symbol table info available.
 #1  0x00007f1ee97d200e in ev_document_misc_surface_rotate_and_scale () from /usr/lib/x86_64-linux-gnu/libatrildocument.so.3
 No symbol table info available.
 #2  0x00007f1ee1380b05 in ?? () from /usr/lib/x86_64-linux-gnu/atril/3/backends/libepubdocument.so
 No symbol table info available.
 #3  0x0000000000401b2a in ?? ()
 No symbol table info available.
 #4  0x000000000040177c in ?? ()
 No symbol table info available.
 #5  0x00007f1ee8099830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
 No symbol table info available.
 #6  0x0000000000401939 in ?? ()
 No symbol table info available.
Title: atril-thumbnailer crashed with SIGSEGV in cairo_image_surface_get_width()
UnreportableReason:
 You have some obsolete package versions installed. Please upgrade the following packages and check if the problem still occurs:
 
 libapparmor1
UpgradeStatus: No upgrade log present (probably fresh install)
XsessionErrors:
 mate-session[1663]: WARNING: Unable to find provider '' of required component 'dock'
 (mate-panel:1763): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
 (nm-applet:1792): nm-applet-CRITICAL **: get_menu_item_for_ap: assertion 'dup_data.hash != NULL' failed
 (nm-applet:1792): nm-applet-CRITICAL **: get_menu_item_for_ap: assertion 'dup_data.hash != NULL' failed
 The program 'mate-maximus' received an X Window System error.
 The error was 'BadWindow (invalid Window parameter)'.
   (Details: serial 3511 error_code 3 request_code 20 minor_code 0)
 (firefox:2431): Gtk-CRITICAL **: gtk_clipboard_set_with_data: assertion 'targets != NULL' failed
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 130 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 130 was not found when attempting to remove it
 (mate-panel:1763): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 253 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 253 was not found when attempting to remove it
 (mate-screensaver:1818): GLib-CRITICAL **: Source ID 80 was not found when attempting to remove it
 (mate-screensaver:1818): GLib-CRITICAL **: Source ID 136 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 438 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 438 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 580 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 580 was not found when attempting to remove it
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/linuxactionshowep440.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/Desktop/lup-0168-432p.mp4: Unrecognized image file format
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 632 was not found when attempting to remove it
 (deja-dup-monitor:1824): GLib-CRITICAL **: Source ID 632 was not found when attempting to remove it
 (mate-panel:1763): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
 (mate-panel:1763): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
 (mate-screensaver:1818): GLib-CRITICAL **: Source ID 138 was not found when attempting to remove it
 (nm-applet:1792): GLib-CRITICAL **: g_hash_table_remove_all: assertion 'hash_table != NULL' failed
 (nm-applet:1792): nm-applet-CRITICAL **: nma_icons_free: assertion 'NM_IS_APPLET (applet)' failed
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type application/epub+zip: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/ebooks/gnucash-guide.epub: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Unable to create loader for mime type application/epub+zip: Unrecognized image file format
 (caja:1786): MateDesktop-WARNING **: Error creating thumbnail for file:///home/ouroumov/ebooks/gnucash-help.epub: Unrecognized image file format
 (atril:8471): Gdk-WARNING **: /build/gtk+2.0-KsZKkB/gtk+2.0-2.24.30/gdk/x11/gdkdrawable-x11.c:942 drawable is not a native X11 window
 (atril:8471): Gdk-WARNING **: /build/gtk+2.0-KsZKkB/gtk+2.0-2.24.30/gdk/x11/gdkdrawable-x11.c:942 drawable is not a native X11 window
 (atril:8471): Gdk-WARNING **: /build/gtk+2.0-KsZKkB/gtk+2.0-2.24.30/gdk/x11/gdkdrawable-x11.c:942 drawable is not a native X11 window

Note that I have the same unrecognized file format warnings near the end.

Quick workaround (at least it works for me):

Edit /usr/share/thumbnailers/atril.thumbnailer as root, move to the last line (which starts with MimeType=) and remove the last part of it - application/epub+zip;.
The line should end with application/vnd.ms-xpsdocument; after that.

Log out and log in back. Now atril-thumbnailer should not be invoked on epub files.

Bug report on that already exists:
https://bugs.launchpad.net/ubuntu/+source/atril/+bug/1540018

I don’t know why atril-thumbnailer tries to process the same files over and over again though… I never experienced that.

Anyway, thumbnail creation code in Atril’s epub backend was doing the wrong thing from the start. Unfortunately, the original epub backend author doesn’t seem to have any desire to continue his work, and the rest of us need to figure out how to (re)write this code to do the right thing.

2 Likes

Thanks monsta!! That took care of it!