IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
489 stars 73 forks source link

segmentation fault on MIME warnings #671

Open r3lgar opened 8 years ago

r3lgar commented 8 years ago
(spacefm:7725): SpaceFM-WARNING **: mime-type application/octet-stream has no description (comment)

[...]

(spacefm:7725): SpaceFM-WARNING **: mime-type application/octet-stream has no description (comment)
zsh: segmentation fault  spacefm
Teklad commented 7 years ago

You wouldn't happen to have an example file I could use that causes these crashes would you? Its a lot easier to fix a crash if I can reproduce the conditions which cause it. :P

r3lgar commented 7 years ago

Oh, I don't know which file is. All files looks OK.

PierreR commented 7 years ago

FWIW I have the exact same problem trying to use spacefm with xmonad on nixos.

I am just trying to launch it with spacefm on the command line

pbogdan commented 7 years ago

@PierreR FWIW globally installing shared_mime_info via environment.systemPackages on nixos + xmonad setup fixed this issue for me (nixos bug report)

IgnorantGuru commented 6 years ago

I don't see any obvious cause for this in the source. SpaceFM does require shared-mime-info as a build dependency, so if that library is not correctly installed, it could certainly create breakage. From some comments it sounds like that may be the case here. Otherwise someone getting this crash may need to provide a backtrace per the instructions in README|BUILD DEBUG.

I do notice src/makefile.am misspells "MIMETYPE_SOURCES" as "MIMETYE_SOURCES", yet it appears to be the only file to use this, so I don't think that makes any difference. I would think pkgconfig would report if shared-mime-info isn't installed at build time.