You are not logged in.

#1 2016-01-30 03:04:00

burebista
Member
From: Scotland
Registered: 2015-11-12
Posts: 30

Segmentation fault while launching cinnamon apps

When starting cinnamon settings for example I get:

[xxx@mypc ~]$ cinnamon-settings
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 40, in <module>
    modules = map(__import__, mod_files)
  File "/usr/share/cinnamon/cinnamon-settings/modules/cs_applets.py", line 3, in <module>
    from ExtensionCore import ExtensionSidePage
  File "/usr/share/cinnamon/cinnamon-settings/bin/ExtensionCore.py", line 29, in <module>
    curr_ver = subprocess.check_output(["cinnamon", "--version"]).splitlines()[0].split(" ")[1]
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['cinnamon', '--version']' returned non-zero exit status -11
Segmentation fault (core dumped)

Trying only cinnamon --version:

[xxx@mypc ~]$ cinnamon --version
Cinnamon 2.8.6
Segmentation fault (core dumped)

Trying to obtain more info:

$ gdb python
(gdb) run /usr/bin/cinnamon --version
...
Starting program: /usr/bin/python /usr/bin/cinnamon --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
  File "/usr/bin/cinnamon", line 1
SyntaxError: Non-UTF-8 code starting with '\x8d' in file /usr/bin/cinnamon on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
[Inferior 1 (process 8667) exited with code 01]

Another post (https://bbs.archlinux.org/viewtopic.php … 3#p1600003) about this suggested that this is because not up-to-date microcode. I followed the steps in the https://wiki.archlinux.org/index.php/Microcode and I think that my microcode is up-to-date. Besides, my processor is so new (released in Q3 of 2015) that it would be very unlikely to need a microcode update to fix this problem. I have an Intel® Core™ i7 Quad Core Processor 6820HK  and my graphical card is NVIDIA® GeForce® GTX 970M.

Any help would be appreciated.

Thank you.

Offline

#2 2016-01-30 09:11:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Segmentation fault while launching cinnamon apps

burebista wrote:

Besides, my processor is so new (released in Q3 of 2015) that it would be very unlikely to need a microcode update to fix this problem.

You have this the wrong way round, the newer the processor the more likely it is to need a microcode update.

The last couple of Intel releases have had bugs which can only be fixed by microcode updates that haven't even made it into the Arch intel-ucode package yet.
The Arch package in [extra] uses the 2015-01-21 microcode, while the latest Intel release was on 2015-11-06. This can either be installed from [testing] or manually from the Intel website.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-01-30 09:38:06

burebista
Member
From: Scotland
Registered: 2015-11-12
Posts: 30

Re: Segmentation fault while launching cinnamon apps

An update:

I switched from nvidia driver to nouveau and now I do not get the error anymore. I think with nvidia I was using the version 358 or so of the driver. But with nouveau cinnamon says that is running in software rendering mode despite me having installed mesa-libgl and despite:

$ glxinfo | grep rendering
direct rendering: Yes

And actually rendering in chromium feels slower with nouveau.

So I would very much want to make it work with the nvidia driver.

Any suggestions?

Offline

#4 2016-01-30 20:13:57

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Segmentation fault while launching cinnamon apps

$ gdb python
(gdb) run /usr/bin/cinnamon --version
...
Starting program: /usr/bin/python /usr/bin/cinnamon --version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
  File "/usr/bin/cinnamon", line 1
SyntaxError: Non-UTF-8 code starting with '\x8d' in file /usr/bin/cinnamon on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
[Inferior 1 (process 8667) exited with code 01]

From post 12 in the original thread

ewaller wrote:

I somehow don't believe that is a python file, but I've been wrong before.

From post 10 in the original thread

loqs wrote:

https://bugs.archlinux.org/task/46064 is possible as you are using a skylake based cpu with nvidia its fix has not moved from testing to extra yet.

You seem to have ignored both the suggestions already offered to you.
If you want to keep using the nvidia driver then have you tried verifying if it is task 46064 there are at least two solutions offered in the referenced bug report that I can see.
If you do not believe that it is task 46064 and you still want to keep using nvidia please post the output of the following from after attempting to run cinnamon with the nvidia driver installed and loaded:
dmesg
Xorg.log
any sections from the journal from that boot that appear relevant apart from dmesg

Offline

#5 2016-01-30 20:52:16

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Segmentation fault while launching cinnamon apps

Something seems strange in your first post. If cinammon-settings refers to "/usr/lib/python2.7", it would make more sense to pass "python2" to gdb right? Also, "direct rendering" always says yes now. The real test is

$ glxinfo | grep softpipe

6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB