maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   WebKit engine for default browser (https://talk.maemo.org/showthread.php?t=25752)

harv 2009-01-30 12:06

Re: WebKit engine for default browser
 
I've installed the newest webkit-eal package and when I try to launch MicroB with webkit engine it crashes with :
Quote:

WEBKITEAL_TRACE:gwebkitweb.c:g_web_set_env:1285:
WEBKITEAL_TRACE:gwebkitweb.c:g_web_new:1276: Initialize Engine global module
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_get_type :1141:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_class_in it:1176:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_interfac e_init:962:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_instance _init:1134:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_get_type :1141:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_get_type :1141:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_suspende d:612:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_get_plug in_enabled:924:
WEBKITEAL_TRACE:gwebkitweb.c:g_webkit_web_delete_a ll_cookies:668:
browserd[1515]: GLIB CRITICAL ** default - child 1616 died with status 11
waitpid: No child processes
Any ideas why ? Or what to do about it? It's a first time instalation.

buhao 2009-01-30 12:37

Re: WebKit engine for default browser
 
Quote:

Originally Posted by harv (Post 260992)
I've installed the newest webkit-eal package and when I try to launch MicroB with webkit engine it crashes with :

Any ideas why ? Or what to do about it? It's a first time instalation.

Things to try: make sure you have the latest os2008,
Power off and back on again after install.

harv 2009-01-30 14:55

Re: WebKit engine for default browser
 
Oh.. thanks it worked like a charm :) Awesome!!

tso 2009-01-30 15:00

Re: WebKit engine for default browser
 
i wonder what pronvit is up right now. been kinda quiet...

qole 2009-02-02 00:00

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 261015)
i wonder what pronvit is up right now. been kinda quiet...

I hope it isn't this happening:

Quote:

Originally Posted by pronvit (Post 254725)
...
seriosly speaking, when I start some new project I usually spend really much time on it, just can't sleep when there's some left what I can easily fix. however unfortunately after some time I'll implement most of important features and will lose interest and finally will abandon project as many others (and PSP users already going angry because I stopped development of my 3D virtual globe for PSP because of webkit;) ). so you should hope I will do enough until that:)


tso 2009-02-02 00:38

Re: WebKit engine for default browser
 
i guess tear it is then...

BrentDC 2009-02-02 15:38

Re: WebKit engine for default browser
 
His email address was in the deb's maintainer field? Anyone? Jk :D

code_monkey 2009-02-18 05:58

Re: WebKit engine for default browser
 
Just thought I'd add my thanks to this thread for the great work done on providing a better browsing experience. As a recent N810 buyer, the better browsing experience provided by webkit is one thing that's allowed me to justify keeping this device instead of switching to the touch (which has a great browsing experience IMO).

As a fellow dev, I know that the endless stream of bugs/feature work can sometimes become a chore. If you're ever in the bay area, you've got a beer waiting for you on me. =)

-CM

hns 2009-02-28 22:33

Re: WebKit engine for default browser
 
So it looks like pronvit has abandoned this project, but thankfully he left us the code. Not the last version unfortunately, so kinetic scrolling is missing, and the customized webkit source is missing as well.

Since this project is far too good to let it rot, I decided to try to give it a spin. Turns out it was not too hard to convert the project to use bundyo's webkit package, and with a few changes, it is now running reasonably well.

I uploaded the svn diff and debian package to my site. The version name is 0.0.9.1 to make clear this is not based on the 0.10 released by pronvit and really a downgrade (no kinetic scrolling). So re-implementing kinetic scrolling is what I'll eventually tackle next. Since I suck at writing C any help is really welcome.

PS: I did contact pronvit before starting to hack on this, and really hope we still hear from him, because I love the kinetic scrolling he implemented.

tso 2009-02-28 22:57

Re: WebKit engine for default browser
 
i cant get it to even load the default page without crashing and dropping back into microb...

hns 2009-02-28 23:23

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 267943)
i cant get it to even load the default page without crashing and dropping back into microb...

That's bad. What version of bundyo's libwebkit do you have installed?

In the root shell where you installed the webkit-eal package, you should get detailed logging output. That might contain some clues as to what goes wrong. You can also restart the browser daemon to the same effect, but careful, it will crash your browser sessions:

/etc/init.d/tablet-browser-daemon restart

tso 2009-02-28 23:33

Re: WebKit engine for default browser
 
iirc, its the latest frrom the tear 0.3 thread...

and the issue seems to be a free() from browserd aimed at a wrong pointer address or something...

code_monkey 2009-03-01 08:40

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 267961)
iirc, its the latest frrom the tear 0.3 thread...

and the issue seems to be a free() from browserd aimed at a wrong pointer address or something...

Confirmed the same thing on my system. The new webkit that I installed from bundyo's site breaks the previous microb/webkit integration from working. An error from glibc about freeing an invalid pointer as Tso points out -- right before the error we have:

gwebkitengine.c:g_webkit_engine_load_committed:111 6.

-CM

hns 2009-03-01 19:29

Re: WebKit engine for default browser
 
That's strange. I'm using bundyo's libwebkit-1.0-1 svn41128-1 and it works well with my webkit-eal 0.0.9.1. In fact, I've been using it as my default browser for the last two days without a crash. I've done some package purging and reinstalling, but didn't see the problems you describe.

tso 2009-03-01 19:35

Re: WebKit engine for default browser
 
are you sure your using webkit?

if the frame around a clicked link is solid and the page loading counter is not x/100, then its microb, not webkit...

hns 2009-03-02 19:36

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 268100)
are you sure your using webkit?

if the frame around a clicked link is solid and the page loading counter is not x/100, then its microb, not webkit...

Yes, I'm sure it's webkit. Lots of small differences in scolling, loading, etc, and I also get the webkit-eal trace log as I go. I even installed the .debs on my internal flash installation, which is a pretty vanilla diablo install, and it worked. I'll just keep working on this, I hope we'll eventually find out what's wrong (right now compiling webkit).

tso 2009-03-02 19:51

Re: WebKit engine for default browser
 
ok, just checking. i was thinking i was using webkit the first time round, until i noticed the small details that made me poke around.

basically webkit crashed so soon that it didnt even finish loading the start page...

hns 2009-03-07 00:42

Re: WebKit engine for default browser
 
I think I figured out the reason for those crashes, so I uploaded a new version of my webkit-eal webkit engine for the default browser. New features include:
  • Reimplemented kinetic scrolling, pretty similar to the one in pronvit's 0.0.10
  • Simple file download functionality, no download manager yet, just a save-as dialog
  • Improved and better looking engine selector applet
  • More conservative install scripts that is less likely to cause crashes, but you have to reboot or manually restart tablet-browser-daemon if you install for the first time.

This version of webkit-eal depends on bundyo's webkit library. I am also providing a libwebkit package on my site, this is the exact same code as bundyo's latest package but with most optional features such as HTML 5, SVG, local storage, disabled in order to make it smaller. I don't know if there's a noticable difference, both packages will work more or less the same with webkit-eal and Tear.

Of course, there's lots of things missing still, but it's so much more fun to use than microb, and it's good enough to be my default browser engine. Many thanks to bundyo for providing libwebkit and helping me with getting it built, and tso for help with debugging, and of course to pronvit for first showing what what can be done!

tso 2009-03-07 02:08

Re: WebKit engine for default browser
 
ok, i got to ask, can webkit-eal make use of custom css?

hns 2009-03-07 02:18

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 269539)
ok, i got to ask, can webkit-eal make use of custom css?

Everything you see listed here should be easy to customize, either through the default browser ui or just using gconf. So yes, there is a user_stylesheet_uri setting here.

Two other things that would be cool to have are font size and disabling plugins.

tso 2009-03-07 02:24

Re: WebKit engine for default browser
 
the reason i ask is that the itt forum minimalist theme has a css setting that only shows up in webkit, and makes it painfully slow to scroll.

tthe workaround in tear was to implement custom css, and include a css filee that by default disabled said setting (rounded corners)...

mikkov 2009-03-07 10:03

Re: WebKit engine for default browser
 
Now if all of this great webkit stuff was at least in extras-devel repository, that would be great!

qwerty12 2009-03-07 15:38

Re: WebKit engine for default browser
 
Quote:

Originally Posted by hns (Post 269532)
I think I figured out the reason for those crashes, so I uploaded a new version of my webkit-eal webkit engine for the default browser. New features include:

Many thanks for the new webkit-eal!

Just wondering if you plan on updating the diff? :)

As for tablet-browser-daemon restarting, I used this in the postinst of my wmlbrowser package and it worked a treat:


Code:

cat <<EOF > /tmp/wmlbrowserwarning.txt
To let the browser know of the existence of the wmlbrowser plugin, I have to restart
the browser daemon.
Restarting the browser will close all your browser windows.
If you choose not to restart the browser then you will have to manually restart the
browser daemon or restart the tablet yourself to see the wmlbrowser plugin.

Press OK to let me restart the browser.
Press Cancel to skip restarting the browser.
EOF

/usr/bin/maemo-confirm-text "Notice." /tmp/wmlbrowserwarning.txt

if [ $? == 0 ]; then
  ( /etc/init.d/tablet-browser-daemon restart &)&
fi


hns 2009-03-07 19:00

Re: WebKit engine for default browser
 
Quote:

Originally Posted by qwerty12 (Post 269610)
Many thanks for the new webkit-eal!

Just wondering if you plan on updating the diff? :)

I know it sucks to release packages without source. I've uploaded the new diff against the garage svn now. It's 90% autotools generated stuff, but whatever.

The reason I haven't put the code into some public repository so far is that I hoped to continue work at the webkit-eal garage project, and thankfully that's what will happen as pronvit gave me member status yesterday. He also confirmed that he has sold his N810 and won't work on it anymore, unfortunately.

So again, a call for contributors: if you think you can help with this project any help is highly appreciated. I'm nowhere prolific in C (just getting along), and the time I can spend on this project is rather limited.

Quote:

Originally Posted by qwerty12 (Post 269610)
As for tablet-browser-daemon restarting, I used this in the postinst of my wmlbrowser package and it worked a treat:
...

Thanks, I'll probably use this in a future release.

jmk 2009-03-10 00:07

Re: WebKit engine for default browser
 
This may be a stupid question but I got some problems when installing libwebkit. I got the latest Diablo OS on N800 and I am missing depencies: libidn11 and libxslt1.1 but cannot find proper packages. Any help?

I am trying to install these packages but the OS says they are incompatible

http://repository.maemo.org/extras-d....5-1_armel.deb

http://repository.maemo.org/extras-d...sso3_armel.deb

Where do I find proper packages?

tso 2009-03-10 00:10

Re: WebKit engine for default browser
 
as root, in terminal:

apt-get install libidn11 libxslt1.1

that should get them installed if you have the proper repo enabled in app manager (do not run app manager when doing this however).

hns 2009-03-11 23:14

Re: WebKit engine for default browser
 
I uploaded a quick new snapshot to my site. You can now disable/enable plugins and javascript from the browser gui, and copy/paste is working from the browser menu (not from the virtual keyboard though).

Next stops will be offline mode detection, history list support, fixing crashes with multiple windows, and maybe download manager support. Any other suggestions?

tso 2009-03-12 00:41

Re: WebKit engine for default browser
 
full screen virtual keyboard return key, and returning input from previous sessions would be nice.

allow me to elaborate:

1. when hitting return/enter key using the full screen virtual keyboard, the keyboard closes rather then going to a new line.

2. when opening the full screen keyboard, there is a chance that the content of a previous use of it will be inserted. this will even be sent on to the input area in the browser if the keyboard is closes, and do not have to come from a previous use inside the browser.

3. oh, and when there is text in a text box, and previously mention keyboard is activated, the content of the box is not transferred to the keyboard gui.

tso 2009-03-12 01:32

Re: WebKit engine for default browser
 
the latest snapshot seems less stable, and im not sure if the javascript toggle works as advertised.

hns 2009-03-12 07:22

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 270985)
full screen virtual keyboard return key, and returning input from previous sessions would be nice.

The virtual keyboard stuff is difficult, because we never directly access it. It's either the browser GUI, and I think there are a number of bugs filed with that, or webkitgtk, which supports hildon, but not really well. So I think these and a few other issues (like drag-scrolling in frames) have to be taken care of upstream in webkitgtk.

Quote:

Originally Posted by tso (Post 270988)
the latest snapshot seems less stable,

In what way? Did it crash?

Quote:

and im not sure if the javascript toggle works as advertised.
Right, I used the wrong settings property name. As I said, this was a quickie release. I uploaded a fixed version.

tso 2009-03-12 15:27

Re: WebKit engine for default browser
 
Quote:

Originally Posted by hns (Post 271035)
The virtual keyboard stuff is difficult, because we never directly access it. It's either the browser GUI, and I think there are a number of bugs filed with that, or webkitgtk, which supports hildon, but not really well. So I think these and a few other issues (like drag-scrolling in frames) have to be taken care of upstream in webkitgtk.

figures...

Quote:

In what way? Did it crash?
yep. or the browser would hang so hard i had to kill browserd to get things going again...

Quote:

Right, I used the wrong settings property name. As I said, this was a quickie release. I uploaded a fixed version.
will test :)

tso 2009-03-12 23:47

Re: WebKit engine for default browser
 
invalid pointer error is back with the newest .9.3 version...

hns 2009-03-13 01:50

Re: WebKit engine for default browser
 
Quote:

Originally Posted by tso (Post 271294)
invalid pointer error is back with the newest .9.3 version...

From what I could tell, this was caused by the 0.0.10 install (and uninstall) script run by the application manager. Did you by chance have 0.0.10 installed before installing 0.9.3? The uninstall script of the old package would cause the new package to crash, and you'd have to restart the browser daemon to help this.

Of course, it could be something new :)

tso 2009-03-13 02:54

Re: WebKit engine for default browser
 
what i had installed was your .9.3 from earlier. but i could try a full uninstall and reinstall of webkit-eal, just to see what happens.

the error:
Code:

WEBKITEAL_TRACE:gwebkitengine.c:g_webkit_engine_load_committed:1212:
*** glibc detected *** /usr/sbin/browserd: free(): invalid pointer: 0x0003a8c0 ***
browserd[16232]: GLIB CRITICAL ** default - child 16241 died with status 134


skatebiker 2009-03-14 07:52

Re: WebKit engine for default browser
 
Is this webkit useable ?
Does it speed up the javascript engine ?
I have lots of javascript apps which do not require an internet connection (calculators, scrabble, ephemeris) which work excellently on the 'original' MicroB browser.
Which version would you recommend as the most stable 0.0.10 ?
When it does not work, can I uninstall it and restore the browser to its original state ?

yukop4 2009-03-14 08:23

Re: WebKit engine for default browser
 
most of this stuff is unfinished business-stick with the tried and true

hns 2009-03-14 09:15

Re: WebKit engine for default browser
 
Quote:

Originally Posted by skatebiker (Post 271576)
Is this webkit useable ?

It's similar to Tear, although less stable, and it relies on the same libraries. I recommend you try out Tear, and if you like it install webkit-eal.

Quote:

Does it speed up the javascript engine ?
I have lots of javascript apps which do not require an internet connection (calculators, scrabble, ephemeris) which work excellently on the 'original' MicroB browser.
It's quite a bit faster than microb, but less stable and far from complete. consider it alpha quality. (Update: I'm talking specifically about the webkit the default browser package here, not Webkit itself or Tear).

Quote:

Which version would you recommend as the most stable 0.0.10 ?
0.0.10 is the last release by pronvit. I don't have the 0.0.10 source code, so I started with 0.0.9 and have re-implemented most of 0.0.10 and added a few things o top, so I'd consider my 0.0.9.* packages the better choice now. I'll release a 0.0.11 package soon to clear things up.

Quote:

When it does not work, can I uninstall it and restore the browser to its original state ?
You can always switch back to the microb browser engine using the browser engine switcher, and of course you can uninstall the whole package.

Saturn 2009-03-14 09:42

Re: WebKit engine for default browser
 
Don't get me wrong, but I find the .10 better from tear..

Thank you HNS for continuing the project. Can't wait for your .11 release!

Please, if possible use the 'extras' or 'devel' for the release.

skatebiker 2009-03-14 12:50

Re: WebKit engine for default browser
 
I'll ty Tear.
BTW I have a nice speed test, a big number calculator which can handle numbers of unlimited precision.
It is derived on a class made by a Brazilian guy.

http://tools.velp.info/bignumber.html

Bundyo 2009-03-14 13:10

Re: WebKit engine for default browser
 
MicroB with its 3.0 alpha JS engine (which on the desktop was speeded up twice by times since then) can't be compared to the latest Squirrelfish (WebKit JS engine). :)

Simple test using this address:

123456789987654321123123456456789789 x 123456789987654321123123456456789789

took 1.37 seconds in MicroB and 0.34 seconds in WebKit. This makes for about 4x JS speed. Of course JS speed is not only multiplying, but this roughly answers the question :)


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8