Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#2850 closed defect (fixed)

Paint crash on Fedora 14

Reported by: Alvar Owned by: godiard
Priority: Unspecified by Maintainer Milestone:
Component: Paint Version: 0.92.x
Severity: Unspecified Keywords: paint, fedora14, 12.1.0
Cc: Distribution/OS: Fedora
Bug Status: Unconfirmed

Description

Hi to all,
I'm keep testing sugar on Fedora 14. I have a problem with paint activity. it crash wen load. this is the log


Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.7/site-packages/sugar/activity/main.py", line 121, in main

module = import(module_name)

File "/home/fedora/Activities/Paint.activity/OficinaActivity.py", line 70, in <module>

from Area import Area

File "/home/fedora/Activities/Paint.activity/Area.py", line 72, in <module>

from fill import fill

File "/usr/lib64/python2.7/site-packages/fill/init.py", line 21, in <module>

raise('cannot find proper binary blobs')

TypeError: exceptions must be old-style classes or derived from BaseException, not str
Exited with status 1, pid 10914 data (None, <open file '<fdopen>', mode 'w' at 0x37aced0>, '91dee36f3b55e3c30731d868a7b5664191a4ae63')

Change History (14)

comment:1 Changed 8 years ago by godiard

Can you tell me what version of Paint have you packaged?

Can you test with the last Paint from ASLO?

comment:2 Changed 8 years ago by Alvar

Sorry, I forget that details. I Install the one that come in the Fedora repositories (Fedora 14)and updated from the sugar updater (yesterday).
when I update an activity from sugar takes the update from ASLO?
this is the activity.info:

name = Paint
activity_version = 33
service_name = org.laptop.Oficina
exec = sugar-activity OficinaActivity.OficinaActivity
icon = activity-paint
mime_types = image/svg+xml; image/svg; image/svg-xml; image/vnd.adobe.svg+xml; text/xml-svg; image/png; image/jpeg; image/gif; image/x-icon; image/x-ico; application/x-navi-animation; image/x-cmu-r
aster; image/x-sun-raster; image/x-xpixmap; image/tiff; image/x-portable-anymap; image/x-portable-bitmap; image/x-portable-graymap; image/x-portable-pixmap; image/bmp; image/x-bmp; image/x-MS-bmp;
image/vnd.wap.wbmp; image/x-xbitmap; image/x-tga; image/x-pcx; image/x-wmf
license = GPLv2

comment:3 Changed 8 years ago by Alvar

One more thing I have an 64B procesor (AMD)

comment:4 Changed 8 years ago by Alvar

I try again in a Fedora 14 32B and have the same problem

comment:6 Changed 8 years ago by godiard

If this does not work, attach the log file please

comment:7 in reply to: ↑ 5 Changed 8 years ago by Alvar

Replying to godiard:

Can you test with this patch?

http://git.sugarlabs.org/paint/mainline/commit/200e2d208e8bd61181762b00020934159c813ee7

I made the change in the 59 line on widget.py (from 24 to -1) but crashes any way
this is the log

Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.7/site-packages/sugar/activity/main.py", line 121, in main

module = import(module_name)

File "/home/techi/Activities/Paint.activity/OficinaActivity.py", line 70, in <module>

from Area import Area

File "/home/techi/Activities/Paint.activity/Area.py", line 72, in <module>

from fill import fill

File "/usr/lib/python2.7/site-packages/fill/init.py", line 21, in <module>

raise('cannot find proper binary blobs')

TypeError: exceptions must be old-style classes or derived from BaseException, not str
Exited with status 1, pid 3259 data (None, <open file '<fdopen>', mode 'w' at 0xa2086a8>, '7838840e14dd3c9da1b67eaa75d37bd6c932b4eb')

comment:8 follow-up: Changed 8 years ago by godiard

What version of python do you have in the system? (You can know know doing "python --version" in the command line)

Can you copy the result of "uname -a" too?

comment:9 in reply to: ↑ 8 Changed 8 years ago by Alvar

Replying to godiard:

What version of python do you have in the system? (You can know know doing "python --version" in the command line)

Can you copy the result of "uname -a" too?

Python: Python 2.7
Uname -a: Linux informatica 2.6.35.13-91.fc14.i686 #1 SMP Tue May 3 13:36:36 UTC 2011 i686 i686 i386 GNU/Linux

comment:10 follow-ups: Changed 8 years ago by godiard

Another test:

Go to the Paint directory and compile in the fill directory:

cd ~/Activities/Paint.activity/fill/
make

Test again the activity. If works, send my the content of the fill directory ziped.

comment:11 in reply to: ↑ 10 Changed 8 years ago by Alvar

Replying to godiard:

Another test:

Go to the Paint directory and compile in the fill directory:

cd ~/Activities/Paint.activity/fill/
make

Didn't work. Send you the output, apears to be a dependencies problem, I`m installing now pygtk2-devel (and all the dependencies) when finish the installation I will run make again
[fedora@nido ~]$ cd Activities/Paint.activity/
[fedora@nido Paint.activity]$ cd fill/
[fedora@nido fill]$ make
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package pygtk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygtk-2.0' found
make: python-config: No se encontró el programa
ld -shared fill.o eggfill.o fillmodule.o -o _fill.so
rm -rf linux64_27
mkdir linux64_27
strip -s _fill.so
mv _fill.so linux64_27/
touch linux64_27/init.py

Test again the activity. If works, send my the content of the fill directory ziped.

comment:12 in reply to: ↑ 10 Changed 8 years ago by Alvar

Replying to godiard:

Another test:

Go to the Paint directory and compile in the fill directory:

cd ~/Activities/Paint.activity/fill/
make

Test again the activity. If works, send my the content of the fill directory ziped.

Ok, I solve the dependencies, but didn't work, I remove the .sugar directory to but the activity crash. Sen to you the output of the make and the org.lapto.oficina-1.log


Make output
[fedora@nido fill]$ make
ld -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lpthread -ldl -lutil -lm -lpython2.7 -shared fill.o eggfill.o fillmodule.o -o _fill.so
rm -rf linux64_27
mkdir linux64_27
strip -s _fill.so
mv _fill.so linux64_27/
touch linux64_27/init.py


org.laptop.Oficina-1.log output
Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.7/site-packages/sugar/activity/main.py", line 121, in main

module = import(module_name)

File "/home/fedora/Activities/Paint.activity/OficinaActivity.py", line 70, in <module>

from Area import Area

File "/home/fedora/Activities/Paint.activity/Area.py", line 72, in <module>

from fill import fill

File "/usr/lib64/python2.7/site-packages/fill/init.py", line 21, in <module>

raise('cannot find proper binary blobs')

TypeError: exceptions must be old-style classes or derived from BaseException, not str
Exited with status 1, pid 27321 data (None, <open file '<fdopen>', mode 'w' at 0x315ac00>, 'f0e8487de2f62fa3cf8faaa861b53c2b43afebae')

comment:13 Changed 7 years ago by godiard

  • Keywords 12.1.0 added
  • Resolution set to fixed
  • Status changed from new to closed

Paint 42 can work with a python implementation of the fill tool if don't found a binary available. Please test it, and reopen if needed.

comment:14 Changed 6 years ago by dnarvaez

  • Milestone 0.92 deleted

Milestone 0.92 deleted

Note: See TracTickets for help on using tickets.