Board.KolibriOS.org

Official KolibriOS board
It is currently Fri Dec 06, 2019 9:44 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 277 posts ]  Go to page Previous 112 13 14 15 1619 Next
Author Message
 Post subject: Re: Netsurf
PostPosted: Sun May 21, 2017 8:58 pm 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
JohnXenox wrote:
Hi ashmew2.
ashmew2 wrote:
Hi JohnXenox,

I think I figured out what's going on here.

"You have probably not configured the folder /kolibrios. In order to do this, copy the folder /kolibrios and the file kolibri.lbl from the distribution kit to the root of some partition accessible from KolibriOS, so that /hdX/Y/kolibri.lbl and /hdX/Y/kolibrios/, or /usbhdX/Y/kolibri.lbl and /usbhdX/Y/kolibrios/ are accessible from KolibriOS. And yes, this is a sacred knowledge not present in the documentation." - CleverMouse

[ viewtopic.php?f=23&t=2865&p=58495&hilit=.lbl#p58495 ]

Let's see if you can open offline webpages with this.
Oh my god! Yes, it works now, but not fully. Draws netsurf's GUI, but do not draws offline pages (text and other stuff). I open offline pages with assoc.ini. Maybe I'm not doing it right?


I haven't tested with assoc.ini , but it's probably a good thing to have once I fix some other issues for the next release. AIUI, assoc.ini would call the Netsurf binary with <filename> as the command line argument which I havent implemented yet.

Can you try to run Netsurf first, get the main GUI window and then open offline pages using file:/// ?
For example, an html file located at
Code:
/tmp0/1/offline.html


should work with typing in the Netsurf address bar

Code:
file:///tmp0/1/offline.html


This should let you open local pages.

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
 Post subject: Re: Netsurf
PostPosted: Sun May 21, 2017 9:51 pm 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
ashmew2 wrote:
I haven't tested with assoc.ini , but it's probably a good thing to have once I fix some other issues for the next release. AIUI, assoc.ini would call the Netsurf binary with <filename> as the command line argument which I havent implemented yet.
Clear.
ashmew2 wrote:
Can you try to run Netsurf first, get the main GUI window and then open offline pages using file:/// ?
For example, an html file located at
Code:
/tmp0/1/offline.html

should work with typing in the Netsurf address bar
Code:
file:///tmp0/1/offline.html

This should let you open local pages.
Yep! It works, but very very very slow (from tmp directory)! It takes about 3 minutes to draw the page. Before the full draw of the page, there is a high load on the CPU (about 86%).

_________________
The Glass is Always Half Full! :mrgreen:


Top
   
 Post subject: Re: Netsurf
PostPosted: Sun May 21, 2017 11:52 pm 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
JohnXenox wrote:
ashmew2 wrote:
I haven't tested with assoc.ini , but it's probably a good thing to have once I fix some other issues for the next release. AIUI, assoc.ini would call the Netsurf binary with <filename> as the command line argument which I havent implemented yet.
Clear.
ashmew2 wrote:
Can you try to run Netsurf first, get the main GUI window and then open offline pages using file:/// ?
For example, an html file located at
Code:
/tmp0/1/offline.html

should work with typing in the Netsurf address bar
Code:
file:///tmp0/1/offline.html

This should let you open local pages.
Yep! It works, but very very very slow (from tmp directory)! It takes about 3 minutes to draw the page. Before the full draw of the page, there is a high load on the CPU (about 86%).


Are you running with
Code:
/path/to/netsurf -V <logfile>
?
Can you try running without the -V switch
Code:
/path/to/netsurf
and see if it helps?

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
 Post subject: Re: Netsurf
PostPosted: Mon May 22, 2017 2:50 pm 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
ashmew2 wrote:
Are you running with
Code:
/path/to/netsurf -V <logfile>
?
Yep! Log file and other files is attached!

Beginning of draw.
Image

Full draw (аfter 3 minutes).
Image
ashmew2 wrote:
Can you try running without the -V switch
Code:
/path/to/netsurf
and see if it helps?
The same behavior. Drawing about 3 minutes. CPU loading initially, 80-90%(about 15 seconds), then 100% up to a full page draw.


Attachments:
NETSURF.tar.gz [11.66 KiB]
Downloaded 59 times
index-153.tar.gz [20.97 KiB]
Downloaded 53 times
BOARDLOG.tar.gz [3.25 KiB]
Downloaded 51 times

_________________
The Glass is Always Half Full! :mrgreen:
Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 24, 2017 1:36 am 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
Hi JohnXenox,

Wait for the next release =)
I'll add some more logging for printing the amount of time it takes to read local files.
This way we will be able to tell which phase is taking the most time (if it's the loading of the local HTML files, or it's the drawing of the loaded HTML file by browser)

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 24, 2017 2:14 am 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
ashmew2 wrote:
Hi JohnXenox,

Wait for the next release =)
I'll add some more logging for printing the amount of time it takes to read local files.
This way we will be able to tell which phase is taking the most time (if it's the loading of the local HTML files, or it's the drawing of the loaded HTML file by browser)
Hi ashmew2.
Okay I will wait. :)

_________________
The Glass is Always Half Full! :mrgreen:


Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 31, 2017 2:07 am 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
New binaries for netsurf and netsurf-installer!

Built against Git commit tag : f7d4b915ff219accec90e4c53fa7d839dccd1745 (Netsurf git repo)

- Patch libgcc to alert user if libc is not present (or not found) leading to Netsurf not starting up (check debug board)
- Reduce size of executable by 4x (much faster loading times off a slow FAT disk)
- Display times when started and finished loading files from disk (to debug board) for troubleshooting.
- Patch the netsurf toolchains repo to create an sdk environment with kos32-gcc and friends for the build server.

====
Wrote an installer for Netsurf (can be found in $SVN/programs/network/netsurf/).
This installer downloads the netsurf binary and the required resources over HTTP and installs to /tmp0/1/ by default.
The download (aka installation) path can be changed in the .asm file .
Simply execute the assembled binary and check debug board for details on the download.
Attachment:
The attachment 2017-05-29-231651_1366x768_scrot.png is no longer available

Note: It will create new directories in the target path as well for downloading resource files.
====


Attachments:
File comment: Installer
nsinstall [1.06 KiB]
Downloaded 81 times
File comment: Installer screenshot
2017-05-29-231651_1366x768_scrot.png
2017-05-29-231651_1366x768_scrot.png [ 106.92 KiB | Viewed 1802 times ]

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 31, 2017 8:55 pm 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
Netsurf does not work for me. Searches for Sans.ttf font and does not find it. Opens only console and that's all. Logfiles is attached. :(

Where can I get sans.ttf font? :roll:

Why do you use the console with netsurf bynary file? The console is superfluous in the graphics program. It can be disabled in kos32-ld by the argument "--subsystem native".


Attachments:
Netsurf-log.7z [710 Bytes]
Downloaded 56 times

_________________
The Glass is Always Half Full! :mrgreen:
Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 31, 2017 10:07 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
JohnXenox: Did you use the installer (downloader) program ? It should have been downloaded automatically.
You can also find a copy of the 'resources' needed by netsurf here: download/file.php?id=6100

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 31, 2017 11:18 pm 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
hidnplayr wrote:
JohnXenox: Did you use the installer (downloader) program ?
Nope. I use "netsurf-kolibrios" file.
hidnplayr wrote:
You can also find a copy of the 'resources' needed by netsurf here: download/file.php?id=6100
Okay.

_________________
The Glass is Always Half Full! :mrgreen:


Top
   
 Post subject: Re: Netsurf
PostPosted: Wed May 31, 2017 11:49 pm 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
JohnXenox wrote:
Netsurf does not work for me. Searches for Sans.ttf font and does not find it. Opens only console and that's all. Logfiles is attached. :(

Where can I get sans.ttf font? :roll:

Why do you use the console with netsurf bynary file? The console is superfluous in the graphics program. It can be disabled in kos32-ld by the argument "--subsystem native".


The console is useful for picking up on errors on libraries that one might not have, for example libpng16.
So I kept it around for a while more.

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
 Post subject: Re: Netsurf
PostPosted: Thu Jun 01, 2017 12:30 am 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
ashmew2 wrote:
The console is useful for picking up on errors on libraries that one might not have, for example libpng16.
So I kept it around for a while more.
Clear.

_________________
The Glass is Always Half Full! :mrgreen:


Top
   
 Post subject: Re: Netsurf
PostPosted: Thu Jun 01, 2017 5:31 pm 
Offline
User avatar

Joined: Thu May 18, 2017 2:29 am
Posts: 170
Still slowly opens offline pages. :(
Video report -> http://www.yourfilelink.com/get.php?fid=1365122.


Attachments:
netsurf.log.7z [9.98 KiB]
Downloaded 56 times

_________________
The Glass is Always Half Full! :mrgreen:
Top
   
 Post subject: Re: Netsurf
PostPosted: Fri Jun 02, 2017 11:03 am 
Offline

Joined: Tue Mar 08, 2016 11:00 pm
Posts: 436
I use nsinstall - it works. But downloaded nskolibrios wont run - just open console window and crashes

But netsurf-kolibrios file runs

Using .iso rev 6916


Top
   
 Post subject: Re: Netsurf
PostPosted: Fri Jun 09, 2017 4:41 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5067
Hi, ashmew2!

I've tried nsinstall, but unfortunately it doesn't work.

My steps:
1. add "nsinstall" to kilibri.img root folder
2. run QEMU and open /sys/nsinstall
3. wait... (btw, how about add console output instead writing to board?)
4. get files
5. open /tmp0/1/nskolibrios

Actual result: I see console window, one thread is creashed according to boardlog.
Boardlog attached.


Attachments:
BOARDLOG.TXT [3.24 KiB]
Downloaded 52 times

_________________
Через тернии к звездам
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 277 posts ]  Go to page Previous 112 13 14 15 1619 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited