LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-21-2013, 07:43 PM   #1
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
KDE unable to detect non-text filetypes


Well this is random. I boot my system today and it suddenly doesn't know how to make head or tails of PNG files. (Slackware32 14.0.) I noticed this when trying to run Chrome:

Click image for larger version

Name:	desktop.jpg
Views:	44
Size:	168.6 KB
ID:	13787

I did #slackpkg reinstall libpng, to no effect. Yes I did recently update libtiff from Slackware-security, but I don't know why that would be related.

Last edited by slimkid; 10-21-2013 at 08:49 PM. Reason: change topic title
 
Old 10-21-2013, 07:58 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
Quote:
I noticed this when trying to run Chrome:
so this is a chrome web browser issue and NOT a system issue
reinstalling tiff will not help with png
libpng uses zlib
libtiff uses libjpg

So this is a google chrome web browser problem .


now is this "chromium" or "Chrome"
 
Old 10-21-2013, 08:29 PM   #3
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
It's Chrome, and it's not just Chrome. Like when I navigate in a file browser to a PNG file, it doesn't know what icon to give it (normally it has one), and when I hover over the icon, it says "Unknown" where it would normally say "PNG image" or whatever.

...and it's not just PNG images, apparently. I just figured out my system doesn't know what to do with archives (inc. docx and odt)! Or video files! It's calling them all "unknown". Yet in System Settings > File Associations, everything looks normal....
 
Old 10-21-2013, 08:38 PM   #4
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Also, attempting to manually open any image in Gwenview returns this error: "Gwenview cannot display documents of type application/octet-stream".
 
Old 10-21-2013, 10:08 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
as an experiment and help nail things down
make a new temporary user
and see if that user can see thumbnails of images
and knows the metadata for non text files
 
Old 10-21-2013, 10:15 PM   #6
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Already tried -- nope.
 
Old 10-21-2013, 10:29 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,825

Rep: Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897Reputation: 1897
try reinstalling oxygen-gtk2, oxygen-gtk3, and oxygen-icons
 
Old 10-21-2013, 10:31 PM   #8
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
How would that enable system to begin recognizing non-text filetypes again?
 
Old 10-22-2013, 01:37 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
i am not very familiar with Slack
the normal fix for missing meta data for KDE is to rename ~/.kde4 to ~/.kde4.backup and relogin

however the NEW user ALSO had the same problem , so that will not fix it .

so some software chain is busted

re go over the last updates and the error logs
/var/log/????
something errored with the update you did
 
Old 10-22-2013, 05:47 PM   #10
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
The most recent changes on my system are the installation of SDL2, and the upgrade of orc, pysetuptools, hplip, xorg-server (+ graphics driver reinstall), and libtiff. I don't know which log files you would want to see.

Here's my ls -l:
Code:
-rw------- 1 root root        0 Oct 18 04:40 btmp
-rw------- 1 root root        0 Sep 21 04:40 btmp.1
drwxr-xr-x 2 root root     4096 May 30 02:04 ConsoleKit
-rw-r--r-- 1 root root      972 Oct 21 20:43 cron
-rw-r--r-- 1 root root     5832 Oct 17 19:07 cron.1
-rw-r--r-- 1 root root     4212 Sep 21 03:31 cron.2
-rw-r--r-- 1 root root      432 Aug 19 18:05 cron.3
-rw-r--r-- 1 root root     1589 Aug  8 04:06 cron.4
drwxr-xr-x 2 root root     4096 Jun 26 01:53 cups
-rw-r--r-- 1 root root   277899 Oct 21 20:43 debug
-rw-r--r-- 1 root root  1704664 Oct 17 19:07 debug.1
-rw-r--r-- 1 root root  1270797 Sep 21 03:31 debug.2
-rw-r--r-- 1 root root   132127 Aug 20 01:33 debug.3
-rw-r--r-- 1 root root   456246 Aug  8 04:06 debug.4
-rw-r----- 1 root root    62687 Oct 21 20:43 dmesg
-rw-r--r-- 1 root root    24048 Oct 21 19:12 faillog
-rw-r--r-- 1 root root      463 Jun  2 05:53 gufw_log_server.txt
-rw-r--r-- 1 root root      988 Jun  2 05:53 gufw_log.txt
drwxrwxr-- 3 root lp       4096 Oct 18 22:43 hp
drwxr-xr-x 2 root root     4096 May 28 21:57 httpd
drwxr-xr-x 2 root root     4096 Mar 12  2011 iptraf
-rw-r--r-- 1 root root   799508 Oct 21 21:01 kdm.log
-rw-r--r-- 1 root root   292584 Oct 21 20:44 lastlog
-rw-r--r-- 1 root root      402 Oct 18 04:41 maillog
-rw-r--r-- 1 root root      400 Sep 21 04:42 maillog.1
-rw-r--r-- 1 root root      400 Aug 20 04:42 maillog.2
-rw-r--r-- 1 root root        0 Aug  8 04:40 maillog.3
-rw-r--r-- 1 root root      402 Aug  2 04:42 maillog.4
-rw-r--r-- 1 root root  4816484 Oct 21 21:02 messages
-rw-r--r-- 1 root root  5967808 Oct 18 04:40 messages.1
-rw-r--r-- 1 root root  2753500 Sep 21 04:31 messages.2
-rw-r--r-- 1 root root   287072 Aug 20 04:25 messages.3
-rw-r--r-- 1 root root  1002532 Aug  8 04:26 messages.4
drwxr-xr-x 2 root root     4096 May 15  2001 nfsd
drwxr-xr-x 2 root root    69632 Oct 21 20:45 packages
drwxr-xr-x 2 root root     4096 Oct 18 04:40 pgl
-rw-r--r-- 1 root root     2428 Oct 21 20:44 pm-powersave.log
-rw-r--r-- 1 root root     6007 Oct  6 19:06 pm-suspend.log
drwxr-xr-x 2 root root    49152 Oct 21 20:42 removed_packages
drwxr-xr-x 2 root root    45056 Oct 21 20:42 removed_scripts
drwxr-xr-x 2 root root     4096 Apr 25  2010 sa
drwxr-xr-x 2 root root     4096 Aug 30 00:37 samba
drwxr-xr-x 2 root root     4096 May 30 14:56 sbopkg
drwxr-xr-x 2 root root    45056 Oct 21 20:45 scripts
-rw-r--r-- 1 root root    11214 Oct 21 21:01 secure
-rw-r--r-- 1 root root    41618 Oct 17 19:08 secure.1
-rw-r--r-- 1 root root    34827 Sep 21 03:47 secure.2
-rw-r--r-- 1 root root     2270 Aug 19 18:15 secure.3
-rw-r--r-- 1 root root    16550 Aug  8 04:16 secure.4
drwxr-xr-x 3 root root     4096 Sep 30 17:48 setup
-rw-r--r-- 1 root root        0 Oct 18 04:40 spooler
-rw-r--r-- 1 root root        0 Sep 21 04:40 spooler.1
-rw-r--r-- 1 root root        0 Aug 20 04:40 spooler.2
-rw-r--r-- 1 root root        0 Aug  8 04:40 spooler.3
-rw-r--r-- 1 root root        0 Aug  2 04:40 spooler.4
-rw-r--r-- 1 root root  1016557 Oct 21 21:01 syslog
-rw-r--r-- 1 root root  6648826 Oct 18 04:39 syslog.1
-rw-r--r-- 1 root root  5152926 Sep 21 04:39 syslog.2
-rw-r--r-- 1 root root   733291 Aug 20 04:39 syslog.3
-rw-r--r-- 1 root root  2357841 Aug  8 04:39 syslog.4
drwxr-xr-x 2 root root     4096 Jun  9 00:40 teamviewer
drwxr-xr-x 2 uucp root     4096 May 28 21:58 uucp
-rw-r--r-- 1 root root   217119 Aug  8 01:48 vbox-install.log
-rw-r--r-- 1 root root      179 Aug 21 15:00 vbox-uninstall.log
-rw-rw-r-- 1 root voice 1073280 Oct 21 21:02 wtmp
-rw-rw-r-- 1 root voice 1345536 Sep 21 04:39 wtmp.1
-rw-r--r-- 1 root root    62097 Oct 21 21:01 Xorg.0.log
-rw-r--r-- 1 root root    67545 Oct 21 20:42 Xorg.0.log.old
-rw-r--r-- 1 root root    52505 Jul  9 06:10 Xorg.1.log
-rw-r--r-- 1 root root    52629 Jun  4 21:39 Xorg.1.log.old
 
Old 10-22-2013, 06:22 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,673

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
I would start with " messages"

Code:
su -
kate /var/log/messages
 
Old 10-22-2013, 07:27 PM   #12
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Not seeing anything strange-looking in there. Anything in particular I should be looking for?
 
Old 10-22-2013, 07:45 PM   #13
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Here is something new. When I open Dolphin via terminal to view error messages, navigate to a file ~/desktop.png, right click > Properties > Create new filetype, I've gotten this stuff:
Code:
could not reset stream of /home/rkido/desktop.png from pos 65536 to 0 after reading with PngEndAnalyzer: 
keditfiletype(3093)/kdecore (trader) mimeTypeSycocaServiceOffers: KMimeTypeTrader: mimeType "application/x-kdeuser1" not found 
keditfiletype(3093)/kdecore (trader) mimeTypeSycocaServiceOffers: KMimeTypeTrader: mimeType "application/x-kdeuser1" not found
Not having much luck googling this error though.
 
Old 10-22-2013, 08:32 PM   #14
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
I did some more careful and tedious googling/web-crawling and came upon some answers that were vague, but helpful enough to point me in the right direction.

So with that octet-stream thing, I ran
Code:
find / -name 'octet*'
Which led me to /usr/share/mime/application/octet-stream.xml

I renamed that to octet-stream.xml.bak, refreshed the mime database, and voila -- my system is functional again.

But weirdness remains: now that I've refreshed the mime-database... another octet-stream.xml has popped up. I still don't know how this is being created, or where it's coming from. Yet, my system is functional again, nonetheless....
 
Old 10-22-2013, 09:34 PM   #15
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
Well, octet-stream.xml is a definition for the mime type octet-stream, which is basically any file that is not made of text - a series of bytes. By default, programs don't know what to do with octet-stream files because they are so vague - on my machine, they are .bin files, which should just be executed and nothing else.

It could have been that the definition for octet-stream in your octet-stream.xml was incorrect (the "*.bin" changed to "*" or similar), or that all the mime type definitions were corrupted and octet-stream was a fallback, though I'm not certain how a mime database would be corrupted. In any case, updating your mime database was the correct thing to do.

A good overview of MIME is here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable To Read Certain Files On My Harddisk hitmen Linux - Newbie 4 07-09-2011 08:07 AM
unable to read chm files in firefox 3.0 nkd Fedora 5 02-11-2009 05:11 AM
What software can read png file ? naihe2010 Linux - Software 2 10-12-2005 08:09 PM
Unable to read certain files from CD, but works on Windows DoubleLetter Linux - General 10 04-22-2003 02:56 AM
Read only files system and starting up martin_fortmann Linux - General 9 06-05-2001 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration