Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24239 - [sk1] not starting (segfault)

Attached to Project: Community Packages
Opened by Fabio Zanini (iosonofabio) - Thursday, 12 May 2011, 08:52 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 12 July 2011, 09:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I start sk1 from the command line, I get a segfault error in the main program line, and no window opens at all.
See the attached traceback ("errore di segmentazione" is the italian translation of "segmentation fault").

Additional info:
* package version: sk1 0.9.1-6
* config and/or log files etc.: see traceback in attach.
* system info: Linux X200 2.6.38-ARCH #1 SMP PREEMPT Tue May 10 08:05:04 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz GenuineIntel GNU/Linux
* graphic card: intel
* python2 version: 2.7.1-9

Steps to reproduce:
* Install sk1: pacman -S sk1
* Start it: sk1
   tb.txt (1.7 KiB)
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 12 July 2011, 09:25 GMT
Reason for closing:  Upstream
Comment by Jelle van der Waa (jelly) - Saturday, 28 May 2011, 16:39 GMT
It doesn't happen here, please update your system pacman -Syu and run LANG=C sk1
Comment by Fabio Zanini (iosonofabio) - Sunday, 29 May 2011, 21:29 GMT
does not work yet, see bt2.txt

Maybe a missing dependency?
   tb2.txt (1.8 KiB)
Comment by Jelle van der Waa (jelly) - Tuesday, 31 May 2011, 11:01 GMT
So when does this happen, at startup?
Comment by Fabio Zanini (iosonofabio) - Tuesday, 31 May 2011, 11:13 GMT
As you see - yes.
Comment by Jelle van der Waa (jelly) - Friday, 17 June 2011, 21:26 GMT
please execute 'where sk1'
Comment by Fabio Zanini (iosonofabio) - Saturday, 18 June 2011, 12:43 GMT
Do you mean 'whereis'? In that case,

[fabio@X200 ~]$ whereis sk1
sk1: /usr/bin/sk1
[fabio@X200 ~]$

as it should be.
Comment by Sergej Pupykin (sergej) - Tuesday, 12 July 2011, 08:31 GMT
problem is in your system color settings

add
print "D"+dark+" L"+light+"\n";
into /usr/lib/python2.7/site-packages/sk1/app/managers/uimanager.py 102th line:

def recalc(self, dark, light, factor):
print "D"+dark+" L"+light+"\n";
r=int(string.atoi(dark[1:3], 0x10)+string.atoi(light[1:3], 0x10))*factor
g=int(string.atoi(dark[3:5], 0x10)+string.atoi(light[3:5], 0x10))*factor
b=int(string.atoi(dark[5:], 0x10)+string.atoi(light[5:], 0x10))*factor
return '#%02X%02X%02X'%(r,g,b)

it should print hex values like:
D#000000 L#ffffff
Comment by Fabio Zanini (iosonofabio) - Tuesday, 12 July 2011, 09:21 GMT
As root it works as you said, it prints the correct string, but as a normal user it prints:

Drgb:ef/ef/ef Lrgb:00/00/00

and the usual error message. Evidently, my 'dark' and 'light' are RGB values.

edit: I had a look at my .Xdefaults. There I set indeed:

*background: rgb:00/00/00
*foreground: rgb:ef/ef/ef

However, I do not see why sk1 is not compatible with these settings. All other programs work normally.
Comment by Sergej Pupykin (sergej) - Tuesday, 12 July 2011, 09:24 GMT
It looks like sk1 can parse only #?????? format, but not rgb:??/??/??,
please report upstream.

Loading...