Reply
Thread Tools
Posts: 176 | Thanked: 262 times | Joined on Nov 2009 @ Texas, USA
#21
Originally Posted by marmistrz View Post
mooninite: why didn't you include libglib2.0-data?
This may be the cause of some problems with 2.26.
The data package is not installed by default so I find it hard to believe it would cause problems.

I have attached them to the original post. You're free to try them.
 

The Following 3 Users Say Thank You to mooninite For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#22
I'm dreaming utilizing libglib2.26. Maybe via extras-devel or via CSSU.

Seems so far only failing application is leafpad.
(I have package libglib2.0-data installed, but seems it has only localization data)

Here is backtrace:

Code:
#0  0x40718734 in g_type_check_instance_is_a (type_instance=<value optimized out>, iface_type=462080)
    at /home/michael/Projects/glib-226/gobject/gtype.c:3941
#1  0x402b2f9c in IA__gtk_item_factory_get_widget (ifactory=0xbebb16b4, path=0x22888 "/Edit/Undo") at gtkitemfactory.c:659
#2  0x0000fad4 in main (argc=1, argv=0xbebb16c4) at main.c:385
And indeed main.c:385 is calling gtk_item_factory_get_widget(ifactory, "/Edit/Undo"), which then causes seg fault. Uncommenting it and recompiling leafpad -> works. Does anybody understand why this happens? Is there way to fix it? How we know if another applications are failing with same or slightly different way? (just push update and take bug reports?)

There are 1334 packages (directly) using libglib
List of all packages on repositories compiled against libglib2.0-0:
Code:
apt-cache showpkg libglib2.0-0 | grep "," | sed 's/,.*//' | sed 's/  //' | sort | uniq
-> http://pastebin.com/fkyRJKBu
 

The Following 2 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#23
Originally Posted by AapoRantalainen View Post
I'm dreaming utilizing libglib2.26. Maybe via extras-devel or via CSSU.

Seems so far only failing application is leafpad.
(I have package libglib2.0-data installed, but seems it has only localization data)

Here is backtrace:

Code:
#0  0x40718734 in g_type_check_instance_is_a (type_instance=<value optimized out>, iface_type=462080)
    at /home/michael/Projects/glib-226/gobject/gtype.c:3941
#1  0x402b2f9c in IA__gtk_item_factory_get_widget (ifactory=0xbebb16b4, path=0x22888 "/Edit/Undo") at gtkitemfactory.c:659
#2  0x0000fad4 in main (argc=1, argv=0xbebb16c4) at main.c:385
And indeed main.c:385 is calling gtk_item_factory_get_widget(ifactory, "/Edit/Undo"), which then causes seg fault. Uncommenting it and recompiling leafpad -> works. Does anybody understand why this happens? Is there way to fix it? How we know if another applications are failing with same or slightly different way? (just push update and take bug reports?)

There are 1334 packages (directly) using libglib
List of all packages on repositories compiled against libglib2.0-0:
Code:
apt-cache showpkg libglib2.0-0 | grep "," | sed 's/,.*//' | sed 's/  //' | sort | uniq
-> http://pastebin.com/fkyRJKBu
Only CSSU, I bet, as Nokia-repo packages are updated via cssu
blind guess, maybe we need newer gtk?
Now we can push 2.22 and find how to fix the leafpad problem.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#24
I'm continuing with this. I got glib-2.29.92 packed with Maemo-modifications. It can be installed and device still starts, but seems there are some more problems than with 2.26.

*Leafpad segfaults (same as with 2.26)

*Calendar is not starting from menu. Terminal /usr/bin/Calendar gives:
Code:
commit(): Failure in adding Birthdays. Error is 202
But it can be started with
Code:
dbus-send --print-reply --session --dest=com.nokia.calendar /com/nokia/calendar com.nokia.calendar.top_application
*Browser can't be started from menu. Terminal /usr/bin/browser gives:
Code:
-:1: error: invalid string constant "osso-combobox-entry-arrow", expected valid string constant
But it can be started with
Code:
dbus-send --print-reply --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.open_new_window string:http://talk.maemo.org
*Other stock PR-1.3 applications start and seem to work (not heavily tested).
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#25
Originally Posted by AapoRantalainen View Post
I'm continuing with this. I got glib-2.29.92 packed with Maemo-modifications. It can be installed and device still starts, but seems there are some more problems than with 2.26.

*Leafpad segfaults (same as with 2.26)

*Calendar is not starting from menu. Terminal /usr/bin/Calendar gives:
Code:
commit(): Failure in adding Birthdays. Error is 202
But it can be started with
Code:
dbus-send --print-reply --session --dest=com.nokia.calendar /com/nokia/calendar com.nokia.calendar.top_application
*Browser can't be started from menu. Terminal /usr/bin/browser gives:
Code:
-:1: error: invalid string constant "osso-combobox-entry-arrow", expected valid string constant
But it can be started with
Code:
dbus-send --print-reply --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.open_new_window string:http://talk.maemo.org
*Other stock PR-1.3 applications start and seem to work (not heavily tested).
running /usr/bin/browser always ends like that.

I'd suggest a reflash for testing, 'cause I had similar problems with birthdays when I tried to replace Fremantle calendar with Harmattan calendar and then installed the Fremantle back.

The "Maemo/MeeGo" glib stops at 2.28. May that mean further incompatibility? https://gitorious.org/gnome-essentia...bian/changelog
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#26
I tracked down why Leafpad is crashing when glib is changed.

I found that last working glib is 2.23.0 and first broken (in meaning of 'broken') version is 2.23.1. Then I git bisected and found that first breaking commit is 718b476c4474e5c9e973046ef555ffcb9bfd38a1 Which is then pointing to the bug tracker: https://bugzilla.gnome.org/show_bug.cgi?id=585375

Current leafpad in maemo is leafpad-0.8.17le (le stands for lite edition). Because unmodified upstream leafpad-0.8.17 (and latest 0.8.18.1) works with new glib (2.23.1 and even 2.26.0), I would say that issue comes from these lite edition patches.

Next steps: newest glib (2.35.X). leafpad without 'le'. (optional) create lite edition against newest leafpad+glib.

Here are debianizations I have used: http://cc.oulu.fi/~rantalai/maemo5/libglib/ Version numbers (of course) refers to these upstream tar-balls: http://ftp.acc.umu.se/pub/gnome/sources/glib/
 

The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#27
And about closed src packages problems (which may occur) - this might be a workaround:
https://mail.gnome.org/archives/trac.../msg00032.html
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#28
Ok, I'm looking guinea pigs: libglib-2.35.3 (released December 2012): http://cc.oulu.fi/~rantalai/maemo5/l...emo2_armel.deb

I have tested this deb, but I can't still give any guarantee. In worst case the phone enters eternal bootloop.

----
Tested with:
a) reflashed PR1.3
(flasher-3.5 -f -R -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin)

b) at the first boot, just skip settings

c) installed rootsh via microb

d) terminal: root+dpkg+reboot
(You need to remove metapackage mp-fremantle-generic-pr)

-> no reboot-loop. Every preinstalled application starts (no known crashes/issues).


-----
Compiling your self:
Code:
wget http://ftp.acc.umu.se/pub/gnome/sources/glib/2.35/glib-2.35.3.tar.xz
tar xf glib-2.35.3.tar.xz
cd glib-2.35.3
wget -r -nH --cut-dirs=4 --no-parent --reject="index.html*" -e robots=off http://cc.oulu.fi/~rantalai/maemo5/libglib/debian_2.35.3/debian

fakeroot dpkg-buildpackage
-----
Only known non-working application so far: Leafpad, here is working version: http://cc.oulu.fi/~rantalai/maemo5/l...emo1_armel.deb
(replaces old version, non-hildonized, non-optified less than 1MB)


[EDIT]
Fixed glib-dev, version number is now maemo2.
*glib-2.31 forces to use 'single include': https://mail.gnome.org/archives/comm.../msg04272.html On Maemo this is best to revert for a while.
*generating shlibs was missing
[/EDIT]

Last edited by AapoRantalainen; 2013-02-07 at 20:15.
 

The Following 6 Users Say Thank You to AapoRantalainen For This Useful Post:
Alecsandru's Avatar
Posts: 439 | Thanked: 282 times | Joined on Oct 2012
#29
thanks man
maybe a optified version of leafpad , when you have time

Last edited by Alecsandru; 2013-02-07 at 11:52.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#30
Originally Posted by Alecsandru View Post
thanks man
maybe a optified version of leafpad , when you have time
If I get the source, I might do optify.


Originally Posted by AapoRantalainen View Post
Ok, I'm looking guinea pigs: libglib-2.35.3 (released December 2012): http://cc.oulu.fi/~rantalai/maemo5/l...emo1_armel.deb

I have tested this deb, but I can't still give any guarantee. In worst case the phone enters eternal bootloop.
I tested it on my (full of trash and with broken qt-components) spare N900. Brief testing says it's ok.
(tested only a couple of apps)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-02-07 at 14:41.
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:42.