Evince segmentation fault [PARTIALLY SOLVED]

Questions about software.
lilgman
Posts: 40
Joined: 04 Oct 2013 13:53
Location: Lesotho, Africa

Evince segmentation fault [PARTIALLY SOLVED]

Postby lilgman » 23 Oct 2016 16:12

Hi. I've been using SolydX for several years and loving it.

This morning I found that Evince won't open. A window opens for a split second with something in it, but I can't see the contents. Terminal gives this output:

Code: Select all

(evince:11662): GLib-GIO-WARNING **: /home/glenn/.local/share/applications/defaults.list contains a [Added Associations] group, but it is not permitted here.  Only the non-desktop-specific mimeapps.list file may add or remove associations.
invalidaccess -7
Segmentation fault
I tried temporarily taking out the [Added Associations] section of the defaults.list, but still get the invalid access -7 Segmentation fault.

I am running:

Code: Select all

Linux acer-netbook 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux

Code: Select all

cat /etc/apt/sources.list
deb http://repository.solydxk.com/ solydxk main upstream import
deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
You can see I have backports enabled. The only backport packages I have (knowingly) installed is Libreoffice.

I would really appreciate help to get this working again!

Thanks!

User avatar
Arjen Balfoort
Site Admin
Posts: 9286
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Evince segmentation fault

Postby Arjen Balfoort » 23 Oct 2016 17:35

There shouldn't be a default.list in that directory anymore, only the mimeapps.list.
You can move default.list and logout/login to check if that helps.
If you still have problems you can move the mimeapps.list as well and copy the default mimeapps.list to the directory:

Code: Select all

cp /etc/skel/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeapps.list
Again, logout/login to check if that worked for you.


SolydXK needs you!
Development | Testing | Translations

lilgman
Posts: 40
Joined: 04 Oct 2013 13:53
Location: Lesotho, Africa

Re: Evince segmentation fault

Postby lilgman » 23 Oct 2016 19:03

Thank you for the VERY quick reply on a Sunday evening. I have moved both defaults.list and mimeapps.list, and copied the one from /etc/skel. This gets rid of the GLib-GIO-WARNING, but I still get:

Code: Select all

$ evince
invalidaccess -7
Segmentation fault

mhwelsh
Posts: 253
Joined: 15 Apr 2013 18:48

Re: Evince segmentation fault

Postby mhwelsh » 24 Oct 2016 09:55

I have been having trouble with evince trying to display .ps and .pdf files as you have clearly described.
The troubles started with a "ghostscript, imagemagic and enscript upgrade, probably for security.
The bodger's way to fix it is to down grade these packages as they are needed by evince.

Code: Select all

dpkg -i --force-downgrade ./ghostscript_9.05~dfsg-6.3+deb7u2_amd64.deb ./libgs9_9.05~dfsg-6.3+deb7u2_amd64.deb ./libtiff4_3.9.6-11+deb7u1_amd64.deb ./libjpeg8_8d-1+deb7u1_amd64.deb ./libgs9-common_9.05~dfsg-6.3+deb7u2_all.deb ./libgnutls26_2.12.20-8+deb7u5_amd64.deb ./libgcrypt11_1.5.0-5+deb7u5_amd64.deb ./libtasn1-3_2.13-2+deb7u3_amd64.deb ./enscript_1.6.5.90-2_amd64.deb ./graphicsmagick_1.3.16-1.1+deb7u4_amd64.deb ./imagemagick_6.7.7.10-5+deb7u7_amd64.deb ./imagemagick-common_6.7.7.10-5+deb7u7_all.deb ./libmagickwand5_6.7.7.10-5+deb7u7_amd64.deb ./libmagickcore5_6.7.7.10-5+deb7u7_amd64.deb ./liblcms1_1.19.dfsg2-1.2+deb7u1_amd64.deb ./libgraphicsmagick3_1.3.16-1.1+deb7u4_amd64.deb
This fixes it but you will need to pin some or all of these downgrades - please feel free to recommend best action boffins.
I initially put all of the required packages in a separate folder and rooted the console to this folder.
Not guaranteed but it cured my problems.

Good luck,

martin welsh

User avatar
Arjen Balfoort
Site Admin
Posts: 9286
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Evince segmentation fault

Postby Arjen Balfoort » 24 Oct 2016 10:51

In a clean install of the nightly build Evince works as expected with these package versions:

Code: Select all

solydxk@solydxk ~ $ apt policy ghostscript imagemagick enscript 
ghostscript:
  Installed: 9.06~dfsg-2+deb8u3
  Candidate: 9.06~dfsg-2+deb8u3
  Version table:
 *** 9.06~dfsg-2+deb8u3 0
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     9.06~dfsg-2+deb8u1 0
        500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
imagemagick:
  Installed: 8:6.8.9.9-5+deb8u5
  Candidate: 8:6.8.9.9-5+deb8u5
  Version table:
 *** 8:6.8.9.9-5+deb8u5 0
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     8:6.8.9.9-5+deb8u4 0
        500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
enscript:
  Installed: (none)
  Candidate: 1.6.5.90-2+b1
  Version table:
     1.6.5.90-2+b1 0
        500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
I see these files/directories are created:

Code: Select all

~/.local/share/gvfs-metadata
~/.local/share/recently-used.xbel
Perhaps you can move them to see if that solves it.


SolydXK needs you!
Development | Testing | Translations

mhwelsh
Posts: 253
Joined: 15 Apr 2013 18:48

Re: Evince segmentation fault

Postby mhwelsh » 24 Oct 2016 13:22

My original troubles stemmed from a 2005 programme that suddenly stopped producing .ps files.

At this time ghostscript, imagemagick and enscript were all updated to the various versions which you describe.
Some older .pdf files are still displayable with evince but no .ps files are and when I try .ps2pdf conversions the converted files do not work.

These are all very old programmes and the easiest solution was to load older versions of the programmes and substitute the new updated versions.
Indeed this solution works a lot better than me establishing what generates the .ps file and what needs fixing in the software(2005).
The quantity of programmes changed was determined by the need to clear dependency hiccups.

Should I find the time I may be able to isolate the actual offensive programme and report a bug but I think that if the programmes have been usable since 2005 it is easiest to downgrade.

You do not make clear what "Perhaps you can move them to see if that solves it." actually means.
The folders seem to be generated on a daily basis so would erasure be acceptable or shall I just change their names?

martin welsh

lilgman
Posts: 40
Joined: 04 Oct 2013 13:53
Location: Lesotho, Africa

Re: Evince segmentation fault

Postby lilgman » 24 Oct 2016 13:47

Thanks again for help.
@Schoelje: When I run

Code: Select all

$ apt policy ghostscript imagemagick enscript 
The output is the same as what you show.

If I do this:

Code: Select all

$ mv gvfs-metadata bak.gvfs-metadata
$ mv recently-used.xbel bak.recently-used.xbel
$ evince
Evince starts ok, but crashes immediately when I try to open a pdf file. I get this in the terminal:

Code: Select all

invalidaccess -7

(evince:27047): EvinceDocument-CRITICAL **: ev_document_misc_pixbuf_from_surface: assertion 'surface' failed
invalidaccess -7
Segmentation fault
I also see that it recreates gvfs-metadata and recently-used.xbel

Once evince has crashed, I get the Segmentation fault whenever I try to restart it until I move gvfs-metadata and recently-used.xbel again.

lilgman
Posts: 40
Joined: 04 Oct 2013 13:53
Location: Lesotho, Africa

Re: Evince segmentation fault [PARTIALLY SOLVED]

Postby lilgman » 24 Oct 2016 19:55

Ok, it seems I was "barking up the wrong tree."

After reading @mhwelsh's last post, I tried opening older pdf files. Presto! No problems. Evince works fine. It only chokes on files that I created after the last update, and not even all those files have a problem. Specifically it seems to be files that I made using a java program (Freeplane) by chosing "print to file" in the print dialog. As @mhwelsh says, the problem is with something that creates the files, not Evince and other programs that read the files.

Thanks again for your help this far. I'm going to mark this "partially solved" because it doesn't affect all pdf files, and @mhwelsh suggests a workaround. If anyone has further ideas to a permanent solution, I would be happen to give them a try.

mhwelsh
Posts: 253
Joined: 15 Apr 2013 18:48

Re: Evince segmentation fault [PARTIALLY SOLVED]

Postby mhwelsh » 25 Oct 2016 11:35

Bodge is a more accurate description!

I am surprised that the testing of the changes made to the three programmes, ghostscript, imagemagic and enscript were not tested sufficiently before release.

martin welsh

mhwelsh
Posts: 253
Joined: 15 Apr 2013 18:48

Re: Evince segmentation fault [PARTIALLY SOLVED]

Postby mhwelsh » 26 Oct 2016 15:10

Further rummaging suggests that

Code: Select all

dpkg -i --force-downgrade ./ghostscript_9.05~dfsg-6.3+deb7u2_amd64.deb ./libgs9_9.05~dfsg-6.3+deb7u2_amd64.deb ./libgs9-common_9.05~dfsg-6.3+deb7u2_all.deb
is sufficient to restore operation.

I have entered the bug reporting maze and I am advised that the current copies being used are stretch: 9.19~dfsg-3 and
unstable: 9.19~dfsg-3. Does this mean that stable is being overlooked?
My current stable is 9.06dfsg-2+deb8u3.


martin welsh

mhwelsh
Posts: 253
Joined: 15 Apr 2013 18:48

Re: Evince segmentation fault [PARTIALLY SOLVED]

Postby mhwelsh » 27 Oct 2016 14:22

Where the console is in the folder containing the software.

Code: Select all

dpkg -i --force-downgrade ./ghostscript_9.19~dfsg-3_amd64.deb ./libgs9_9.19~dfsg-3_amd64.deb ./libgs9-common_9.19~dfsg-3_all.deb ./libopenjp2-7_2.1.2-1_amd64.deb ./libpng16-16_1.6.26-1_amd64.deb

Produces a viable .ps file.
The two additional packages are for dependency problems.
I wonder why stable has not been fixed?

martin welsh

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Evince segmentation fault [PARTIALLY SOLVED]

Postby Zill » 05 Nov 2016 23:24

I have now opened the following new thread entitled "Ghostscript" for any further discussion on this topic of Ghostscript and Evince.


Return to “Software”

Who is online

Users browsing this forum: No registered users and 2 guests