2024-11-24 15:09 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002568NetSurfFramebuffer-specificpublic2020-04-18 22:47
Reportermxfm 
Assigned To 
SeverityblockReproducibilityalways 
StatusacknowledgedResolutionopen 
PlatformLinuxOSLinuxOS Version4.13.7-1
Product Version3.7 
Target VersionFixed in Version 
Summary0002568: Netsurf-fb: Unable to initialize framebuffer
DescriptionI cannot run netsurf on virtual tty (i am able to run in virtual console).

Running from tty:

Unable to init SDL: unable to open mouse
Unable to initialize framebuffer

Steps To ReproduceThe package was build from sources on main site, then compiled with make TARGET=netsurf install.
Additional InformationLinux localhost 4.13.7-1-ARCH #1 SMP PREEMPT Sat Oct 14 20:13:26 CEST 2017 x86_64 GNU/Linux
TagsNo tags attached.
Fixed in CI build #
Reported in CI build #
URL of problem page
Attached Files
  • ? file icon nsfb_rpi_tty (2,916 bytes) 2020-04-18 22:47 -
    (0.000000) [INFO netsurf] utils/log.c:268 nslog_init: NetSurf version '3.10 (Dev)'
    (0.000203) [INFO netsurf] utils/log.c:279 nslog_init: NetSurf on <Linux>, node <raspberrypi>, release <4.19.97-v7+>, version <#1294 SMP Thu Jan 30 13:15:58 GMT 2020>, machine <armv7l>
    (0.000744) [INFO netsurf] utils/messages.c:183 messages_add_from_file: Loading Messages from '/home/alan/dev-netsurf/workspace/netsurf/frontends/framebuffer/res/en/Messages'
    (0.004255) [INFO netsurf] content/handlers/image/image_cache.c:432 image_cache_init: Image cache initialised with a limit of 3145728 hysteresis of 629145
    (0.004481) [INFO netsurf] content/handlers/html/html_css_fetcher.c:71 html_css_fetcher_initialise: html_css_fetcher_initialise called for x-ns-css
    (0.005577) [INFO netsurf] content/fetchers/curl.c:1686 fetch_curl_register: curl_version libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
    (0.016653) [INFO netsurf] utils/useragent.c:69 user_agent_build_string: Built user agent "NetSurf/3.10 (Linux)"
    (0.016724) [INFO netsurf] content/fetchers/curl.c:1788 fetch_curl_register: cURL linked against openssl
    (0.016815) [INFO netsurf] content/fetchers/curl.c:284 fetch_curl_initialise: Initialise cURL fetcher for http
    (0.016845) [INFO netsurf] content/fetchers/curl.c:284 fetch_curl_initialise: Initialise cURL fetcher for https
    (0.016873) [INFO netsurf] content/fetchers/data.c:62 fetch_data_initialise: fetch_data_initialise called for data
    (0.017226) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for adblock.css
    (0.017456) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for default.css
    (0.017687) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for internal.css
    (0.017912) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for quirks.css
    (0.018277) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for credits.html
    (0.018466) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for licence.html
    (0.018657) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for welcome.html
    (0.018884) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for favicon.ico
    (0.019275) [INFO netsurf] content/fetchers/resource.c:295 fetch_resource_initialise: redirect url for netsurf.png
    (0.020648) [INFO llcache] content/llcache.c:3758 llcache_initialise: llcache initialising with a limit of 9437184 bytes
    (0.020776) [INFO netsurf] frontends/framebuffer/gui.c:485 process_cmdline: argc 3, argv 0x7e9d32b4
    (0.020862) [INFO netsurf] frontends/framebuffer/framebuffer.c:609 framebuffer_initialise: Unable to initialise nsfb surface
    
    Unable to initialise framebuffer
    
    ? file icon nsfb_rpi_tty (2,916 bytes) 2020-04-18 22:47 +

-Relationships
+Relationships

-Notes
mxfm

~0001680

mxfm (reporter)

Error log

(0.000001) utils/log.c:263 nslog_init: NetSurf version '3.7 (15th October 2017)'
(0.000050) utils/log.c:274 nslog_init: NetSurf on <Linux>, node <localhost>, release <4.13.7-1-ARCH>, version <#1 SMP PREEMPT Sat Oct 14 20:13:26 CEST 2017>, machine <x86_64>
(0.000084) utils/messages.c:212 messages_add_from_file: Loading Messages from '/share/netsurf/Messages'
(0.000687) content/handlers/image/image_cache.c:432 image_cache_init: Image cache initialised with a limit of 3145728 hysteresis of 629145
(0.000705) render/html_css_fetcher.c:65 html_css_fetcher_initialise: html_css_fetcher_initialise called for x-ns-css
(0.000779) content/fetchers/curl.c:1444 fetch_curl_register: curl_version libcurl/7.56.0 OpenSSL/1.1.0f zlib/1.2.11 libpsl/0.18.0 (+libicu/59.1) libssh2/1.8.0 nghttp2/1.23.1
(0.001928) utils/useragent.c:69 user_agent_build_string: Built user agent "NetSurf/3.7 (Linux)"
(0.001939) content/fetchers/curl.c:1532 fetch_curl_register: cURL linked against openssl
(0.001946) content/fetchers/curl.c:159 fetch_curl_initialise: Initialise cURL fetcher for http
(0.001953) content/fetchers/curl.c:159 fetch_curl_initialise: Initialise cURL fetcher for https
(0.001958) content/fetchers/data.c:61 fetch_data_initialise: fetch_data_initialise called for data
(0.001974) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for adblock.css
(0.001983) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for default.css
(0.001991) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for internal.css
(0.001999) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for quirks.css
(0.002010) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for credits.html
(0.002018) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for licence.html
(0.002026) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for welcome.html
(0.002034) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for maps.html
(0.002047) content/fetchers/resource.c:288 fetch_resource_initialise: redirect url for netsurf.png
(0.002069) content/llcache.c:3366 llcache_initialise: llcache initialising with a limit of 9437184 bytes
(0.002078) frontends/framebuffer/gui.c:469 process_cmdline: argc 1, argv 0x7fff112949b8
Unable to init SDL: Unable to open mouse
(0.013271) frontends/framebuffer/framebuffer.c:609 framebuffer_initialise: Unable to initialise nsfb surface

Unable to initialise framebuffer
Alastair Hughes

~0001748

Alastair Hughes (reporter)

This is probably because the netsurf process has insufficient permissions to access the device. Try running as root. If that fixes the issue, changing /dev/input/mouse to be readable by the netsurf process should be an OK temporary fix.

To be clear I don't think this is a netsurf issue - this needs to be fixed with a (say) udev rule or group membership change.
mxfm

~0001749

mxfm (reporter)

I just compiled 3.7 version with TARGET=framebuffer and run nsfb with sudo at non-X console. Now I have slighly different message:

Message translations failed to load.
Unable to set video: Couldn't set console screen info.
Unable to initialize framebuffer.

The message about the mouse is gone, but now something is wrong with screen info.
mxfm

~0001750

mxfm (reporter)

Some additional information which may be usefull.

As a comparison, I opened video with mplayer in non-X console with '-vo fbdev' option. It didn't played with following error:
VO: [fbdev] 640x480 => 640x480 BGRA
FATAL: cannot initialize video driver.t

However, it playes perfectly with '-vo fbdev2'. Fbdev2 as alternative framebuffer backend. I do not now which frontend uses netsurf, but it may use the non-working one.
Alastair Hughes

~0001751

Alastair Hughes (reporter)

Does the sdl backend for mplayer work?

A google suggests that this could be caused by the monitor not supporting the default 800x600 resolution (set in http://source.netsurf-browser.org/libnsfb.git/tree/src/surface/surface.c#n47). Perhaps try changing that to the normal size of the monitor?
Alan

~0002183

Alan (reporter)

Like OP, I seem to be having difficulty initializing the nsfb surface on my raspberry pi 3B+.
See uploaded file for output of nsfb -v -b 16
It's the same whether run from a terminal emulator or tty or use sudo.
+Notes

-Issue History
Date Modified Username Field Change
2017-10-25 09:15 mxfm New Issue
2017-10-25 09:24 mxfm Note Added: 0001680
2018-04-16 04:27 Alastair Hughes Note Added: 0001748
2018-04-16 05:14 mxfm Note Added: 0001749
2018-04-16 05:20 mxfm Note Added: 0001750
2018-04-16 07:20 Alastair Hughes Note Added: 0001751
2018-04-21 09:30 Vincent Sanders Assigned To => Vincent Sanders
2018-04-21 09:30 Vincent Sanders Status new => acknowledged
2019-05-06 13:14 Vincent Sanders Assigned To Vincent Sanders =>
2020-04-18 22:47 Alan File Added: nsfb_rpi_tty
2020-04-18 22:47 Alan Note Added: 0002183
+Issue History