maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Tear 0.2 - a simple maemo WebKit browser. (https://talk.maemo.org/showthread.php?t=24293)

pomokey 2008-12-31 06:49

Re: Tear 0.2 - a simple maemo WebKit browser.
 
so, this thing is pretty awesome... while it worked :(

It only ran once, and now when I try to run it, I simply get the following error (when trying to run from xterm):

Quote:

GLIB CRITICAL ** Gtk - gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed
segmentation fault
n810 running diablo
I tried rebooting, and that did not help. I suppose I can try re-installing. I actually might reflash my tablet soon, it's been having a lot of issues lately, so it's possible that it's just my tablet being stubborn.

Bundyo 2008-12-31 06:52

Re: Tear 0.2 - a simple maemo WebKit browser.
 
@TrueJournals: No DBus support yet :)

@Munk: You should uninstall the other one first.

@pomokey: Remove /home/user/.tear and it will run.

macit 2008-12-31 07:45

Re: Tear 0.2 - a simple maemo WebKit browser.
 
From some reason the context menu shows up when clicking any link (single rapid click). it does not show up when clicking anything BUT links (unless you click and hold - as it should be).

Bundyo 2008-12-31 07:49

Re: Tear 0.2 - a simple maemo WebKit browser.
 
@macit: Yeah, i know, annoying :)

Johnx 2008-12-31 09:11

Re: Tear 0.2 - a simple maemo WebKit browser.
 
@Bundyo: This is absolutely awesome. This is really showing what the N800 is capable of in terms of browsing and scrolling smoothness. The one problem I had with it is that flash advertisements on websites slow everything down (just as they do in any browser...). I guess I should install privoxy or similar, but for now I just moved my flash player plugin .so out of the way and am now enjoying fast loading and (slightly too) fast scrolling. :D

luca 2008-12-31 14:48

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 253627)
The plan is to write an sqlite operation pool, since threadsafe is not the word to describe sqlite for linux :) At least this version.

While threadsafe is the default under windows, It has to be explicitly enabled under unix/linux (as I painfully discovered a while ago when I corrupted a database ;))
You'll have to check if the option is enabled in the source deb.
If it isn't, no wonder it doesn't work. if it is you can still experience locking problems if various thread try to update the database at once, not really different than having separate processes accessing the same database file, so you should be prepared to manage the case even if you're not programming a multithreaded application (it's just a matter of checking the error code and retrying and/or install a busy handler).
It's all explained in the sqlite documentation.

luca 2008-12-31 15:12

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Well, I must have a "special" tablet: while everyone raves about everlasting batteries (mine lasts only 2 hours) and speed improvements with each system update (mine is as slow as ever), now with tear I don't notice any speed improvement wrt microb.
In fact it seems slower to me (perhaps because microb starts rendering the page as soon as possible, while tear has to download it almost completely before rendering) and the rendering is worse.
Do I have a cursed tablet or are the pages I visit that are especially problematic? (e.g, slashdot, this forum)

FRZ 2008-12-31 15:54

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by TrueJournals (Post 253645)
Pretty screenshot of what it currently looks like... I actually kind of like this better than the current bookmarks menu:
http://truejournals.com/shot-tear2.png

How did you add it to the task navigator and get the bookmarks?

TrueJournals 2008-12-31 16:14

Re: Tear 0.2 - a simple maemo WebKit browser.
 
FRZ: It's a task navigator plugin I wrote. Although, I'm not releasing any package or source yet, because it doesn't really... work... Once Bundyo implements dbus handling in Tear, I should be able to get everything working.

FRZ 2008-12-31 16:18

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by TrueJournals (Post 253727)
FRZ: It's a task navigator plugin I wrote. Although, I'm not releasing any package or source yet, because it doesn't really... work... Once Bundyo implements dbus handling in Tear, I should be able to get everything working.

Ok. I thought it was a feature in the control panel.

supergadgetman 2008-12-31 16:29

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by luca (Post 253519)
Workaround: type your password in a terminal window/note/another field, copy it then paste it in the password field with the menu.

What I cannot find is how to open links in a new window (tap and hold does nothing).

A lil easier idea is to type your password in the username field and then just cut and paste it into the password field.
Just my 2cents. I'm lovin the browser btw.
Great Job!!

Bundyo 2008-12-31 16:43

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by luca (Post 253714)
While threadsafe is the default under windows, It has to be explicitly enabled under unix/linux (as I painfully discovered a while ago when I corrupted a database ;))
You'll have to check if the option is enabled in the source deb.
If it isn't, no wonder it doesn't work. if it is you can still experience locking problems if various thread try to update the database at once, not really different than having separate processes accessing the same database file, so you should be prepared to manage the case even if you're not programming a multithreaded application (it's just a matter of checking the error code and retrying and/or install a busy handler).
It's all explained in the sqlite documentation.

Yeah, and though threadsafe is enabled in the default sqlite3, even different connection per thread doesn't help. If i handle it myself i can probably fix that. Then again, there might be some problem with the garbage collector and the current sqlite vapi - the sqlite api is quite different than the gobject one.

Bundyo 2009-01-03 00:54

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Looks like a newer version of sqlite3 can do wonders to multi-threading and stability.

EDIT: Removed, needs more work.

Bundyo 2009-01-05 09:09

Re: Tear 0.2 - a simple maemo WebKit browser.
 
0.3-1 released, check the first post.

tso 2009-01-05 09:59

Re: Tear 0.2 - a simple maemo WebKit browser.
 
hmm, trying to browse this forum using the minimalist theme turns out strange...

background is white, text is blue and black, and if i try to access the drop down menu tear basically hangs, hogging the cpu...

oh, and any chance of making the inertial scrolling optional, or at least tweakable? it seems i can always get this kind of "feature" to scroll when i dont want it to and so on. that is, with minimal input, it flies, with big input, it hardly moves...

Bundyo 2009-01-05 11:35

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Yeah, i know about some styles not applying but didn't figure out why yet. This is happening from the april webkit build...

About the scrolling - needs to be tweaked more for sure, options will come after getting it stable. I'm using Tear now as a first browser, so hopefully I'll be able to spot more bugs.

Un27Pee 2009-01-05 12:09

Re: Tear 0.2 - a simple maemo WebKit browser.
 
required dependency complains for libwebkit - libidn11 to be found in extra-devel any idea

Bundyo 2009-01-05 13:30

Re: Tear 0.2 - a simple maemo WebKit browser.
 
http://repository.maemo.org/extras-d....5-1_armel.deb

Un27Pee 2009-01-05 14:23

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 254571)

already installed it was just to make you aware and any who might encounter that installation failure,
this version is faster and the analyser is a good idea taping on some links fails some times, it would be good to have the option to clear history and thanks for all the efforts keep up

meizirkki 2009-01-05 16:45

Re: Tear 0.2 - a simple maemo WebKit browser.
 
1 Attachment(s)
Is this strange transparency only my problem? When itT is set to classic theme, posts are really hard to read...
Pronvit:s webkit rendered itT with no problem, but your webkit shows web-pages like this:

EDIT: Just flashed my tablet. This is not caused by easlier version.

Bundyo 2009-01-05 17:46

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Its not your problem - this is the problem i mentioned before about some styles not applying.

maacruz 2009-01-05 18:00

Re: Tear 0.2 - a simple maemo WebKit browser.
 
I've tryed it today for the first time, and wow, it is the browser for the tablet done right, light, fast, and even with inertial scrolling!
It is a pity it is still too unstable, but thank you very much.

supergadgetman 2009-01-05 20:19

Re: Tear 0.2 - a simple maemo WebKit browser.
 
I want to install the new .3 version of Tear, butIve been tryin to get libwebkit svn39572 installed with no luck. libidn11 installed fine. I tried installing libwebkit in red pill, I also tried the deb install and I tried apt-get in xterm. this is the error thats coming up when in xterm:

/home/user # apt-get install libwebkit-1.0-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwebkit-1.0-1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libwebkit-1.0-1 has no installation candidate
/home/user #

Bundyo 2009-01-05 20:36

Re: Tear 0.2 - a simple maemo WebKit browser.
 
dpkg -i libwebkit......deb

meizirkki 2009-01-05 21:10

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Thanks a lot for this browser. I love the filnger scrolling... *microb just replaced* :)

supergadgetman 2009-01-05 21:14

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 254680)
dpkg -i libwebkit......deb

I'm not sure what I'm doing wrong, but I just keep getting no such file or directory when trying the dpkg -i command. This is what I tried so far:

dpkg -i libwebkit-1.0-1
"Cannot access arcive: No such file or directory"
"Errors where encountered while processing"

So then i tried typing in the whole filename...

dpkg -i libwebkit-1.0-1_1.0-svn39572-1_armel.deb
"cannot access archive. No such file or directory"
"Errors where encountered while processing"

Am I doing something wrong here?
T.I.A.

Bundyo 2009-01-05 21:15

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Are you sure the file is in the same dir? :) You also should be root to install it. I didn't try, but it should be possible to use red pill mode to install it too.

supergadgetman 2009-01-05 21:44

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 254695)
Are you sure the file is in the same dir? :) You also should be root to install it. I didn't try, but it should be possible to use red pill mode to install it too.

I am root, but I wasnt aware that the deb file that I downloaded needed to be in a specific directory for the dpkg -i command to work. Right now I have the deb file in the documents folder of my filesystem and I'm at root in xterm at /home/user. I'm trying the dpkg -i command, but it gives me no such file or directory. Where shoud I put the deb file?
Thanks again!

Bundyo 2009-01-05 21:48

Re: Tear 0.2 - a simple maemo WebKit browser.
 
dpkg -i /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb

;)

supergadgetman 2009-01-05 22:11

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 254709)
dpkg -i /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb

;)

iI really appreciate the help. im getting there. heres what comes up when i run your command.

/home/user # dpkg -i /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb
(Reading database ... 35139 files and directories currently installed.)
Unpacking libwebkit-1.0-1 (from .../libwebkit-1.0-1_1.0-svn39572-1_armel.deb) ...
dpkg-deb (subprocess): short read in buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb (--install):
short read in buffer_copy (backend dpkg-deb during `./usr/share/webkit-1.0/webinspector/Images/scriptsSilhouette.png')
Errors were encountered while processing:
/home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb
/home/user #

Does it matter that i never installed your previous libwebkit?

Bundyo 2009-01-05 22:13

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Hmm, maybe bad download? Try getting it again with wget [url], then it will be in the same dir where you have been.

Of course you need wget for that :)

supergadgetman 2009-01-05 22:55

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by Bundyo (Post 254722)
Hmm, maybe bad download? Try getting it again with wget [url], then it will be in the same dir where you have been.

Of course you need wget for that :)



Yup, you were right. It was a bad download. I downloaded the file again and got this error:

/home/user # dpkg -i /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb
(Reading database ... 35139 files and directories currently installed.)
Unpacking libwebkit-1.0-1 (from .../libwebkit-1.0-1_1.0-svn39572-1_armel.deb) ...
dpkg: error processing /home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb (--install):
trying to overwrite `/usr/lib/libwebkit-1.0.so.1.0.0', which is also in package libwebkitgtk-1.0
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/home/user/MyDocs/.documents/libwebkit-1.0-1_1.0-svn39572-1_armel.deb
/home/user #

Im thinking that I can fix this by removing libwebkitgtk. I think that was a part of Pronvits original webkit for the default browser. Im thinking It might not be needed anymore since he rebuilt his webkit today.

pronvit 2009-01-05 22:59

Re: Tear 0.2 - a simple maemo WebKit browser.
 
yes, you can remove it

supergadgetman 2009-01-05 23:15

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Quote:

Originally Posted by pronvit (Post 254740)
yes, you can remove it

That was it. I removed libwebkitgtk in red pill mode and I was finally able to install the new libwebkit. Even scored a 99/100 in the Tear acid test. Bundyo and Provit you two are breathing new life into my n800 and I really appreciate all of your hard work and effort.
Thanks Again!!

nemo 2009-01-06 00:12

Re: Tear 0.2 - a simple maemo WebKit browser.
 
Wow, this really is the fastest web browsing option I've seen for the tablets.

One question, how do I edit (delete) bookmarks?

Bundyo 2009-01-06 00:26

Re: Tear 0.2 - a simple maemo WebKit browser.
 
You don't... yet ;)

nemo 2009-01-06 00:28

Re: Tear 0.2 - a simple maemo WebKit browser.
 
got it.

well, since I'm a bit slow at times and it took me a second to realize I was actually creating bookmarks, looks like I'll be reinstalling this.

heh.

As I said though, this is a great piece of software!

Bundyo 2009-01-06 00:29

Re: Tear 0.2 - a simple maemo WebKit browser.
 
You can just remove the db file in /home/user/.tear, it won't be removed on reinstall...

nemo 2009-01-06 00:31

Re: Tear 0.2 - a simple maemo WebKit browser.
 
that's kinda what I was just thinking myself, thanks.

meizirkki 2009-01-06 08:14

Re: Tear 0.2 - a simple maemo WebKit browser.
 
I am already using this as my primary browser, i like the scrolling and tap-and-hold menu, but there's two annoying bugs; clicking the "+" icon in the toolbar sometimes crashes the browser and clicking links that should open in new windows just never open... Have these been reposrted yet?

Really nice work btw ! :)


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

vBulletin® Version 3.8.8