Page 14 of 21

Re: Netsurf

Posted: Sun May 21, 2017 8:58 pm
by ashmew2
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

[ http://board.kolibrios.org/viewtopic.ph ... 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: Select all

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

Code: Select all

file:///tmp0/1/offline.html
This should let you open local pages.

Re: Netsurf

Posted: Sun May 21, 2017 9:51 pm
by JohnXenox
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: Select all

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

Code: Select all

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%).

Re: Netsurf

Posted: Sun May 21, 2017 11:52 pm
by ashmew2
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: Select all

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

Code: Select all

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: Select all

/path/to/netsurf -V <logfile>
?
Can you try running without the -V switch

Code: Select all

/path/to/netsurf
and see if it helps?

Re: Netsurf

Posted: Mon May 22, 2017 2:50 pm
by JohnXenox
ashmew2 wrote:Are you running with

Code: Select all

/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: Select all

/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.

Re: Netsurf

Posted: Wed May 24, 2017 1:36 am
by ashmew2
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)

Re: Netsurf

Posted: Wed May 24, 2017 2:14 am
by JohnXenox
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. :)

Re: Netsurf

Posted: Wed May 31, 2017 2:07 am
by ashmew2
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.
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.
====

Re: Netsurf

Posted: Wed May 31, 2017 8:55 pm
by JohnXenox
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".

Re: Netsurf

Posted: Wed May 31, 2017 10:07 pm
by hidnplayr
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: http://board.kolibrios.org/download/file.php?id=6100

Re: Netsurf

Posted: Wed May 31, 2017 11:18 pm
by JohnXenox
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: http://board.kolibrios.org/download/file.php?id=6100
Okay.

Re: Netsurf

Posted: Wed May 31, 2017 11:49 pm
by ashmew2
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.

Re: Netsurf

Posted: Thu Jun 01, 2017 12:30 am
by JohnXenox
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.

Re: Netsurf

Posted: Thu Jun 01, 2017 5:31 pm
by JohnXenox
Still slowly opens offline pages. :(
Video report -> http://www.yourfilelink.com/get.php?fid=1365122.

Re: Netsurf

Posted: Fri Jun 02, 2017 11:03 am
by Siemargl
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

Re: Netsurf

Posted: Fri Jun 09, 2017 4:41 pm
by Leency
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.