Hi,
I'm running the release version of NetSurf 2.1 on RISC OS 5, and have
just discovered a fairly major bug that prevents NetSurf from starting
with a "serious error" window that pops up on launch.
I have tracked the problem down, though, and it's to do with cached
font information. The clue was the following entry in the Log file:
rufl_init.c rufl_load_cache 1304: "English" not in font list
I use LOOKsystems' Font Directory Pro to manage my fonts, and normally
I have a limited set of fonts that are active. However, I turn on
particular families etc. for use in different projects, and last time
I launched NetSurf, I had "English" and "European" families active.
Today, because I'm not working on the document that needed these fonts
and they're not in my selection of active defaults, they're not
available.
I noticed that NetSurf brought up its font-scanning window last time
I launched it and I wasn't sure why it had done that. But evidently
it was because it had spotted that my selection of active fonts had
changed. Now that the selection has changed back to what it was
before, though, NetSurf can't cope and crashes on launch.
The first Log file complained about English being missing. After I
enabled it, I got the same problem, but this time with a complaint
about European being missing. So I enabled that, and finally NetSurf
would launch again.
I don't see any way to force NetSurf to rescan its font list on demand
to prevent me from having to activate unnecessary fonts before I
launch it in future. I.e. if I enable those two families, launch
NetSurf and then disable them again, NetSurf fails to notice the
change in available fonts and does not update its cache.
In any case, clearly it ought not to crash if a font it expects to
find (but neither needs nor uses) is missing.
I'm attaching a Log file in case it's helpful.
--
Richard
-=-=-=-
Richard G. Hallas * BMus(Hons), BSc, MSc * Editor, Writer and Designer
Proprietor of KeyNote: Music Typesetting & General Desktop Publishing
Email: [email protected] * Skype: richardhallas * Phone: 01484 460280
desktop/netsurf.c netsurf_init 125: version '2.1 (23 May 2009)'
desktop/netsurf.c netsurf_init 132: NetSurf on <RISC OS>, node
<Iyonix.Hallas.net>, release <5.07>, version <1.0>, machine <armv5l>
desktop/netsurf.c lib_init 190: xmlParserVersion 20628, LIBXML_VERSION_STRING
20628
utils/filename.c filename_initialise 176: Temporary directory location:
<Wimp$ScrapDir>/WWW/NetSurf/Cache
content/urldb.c urldb_load 336: Loading URL file
content/urldb.c urldb_load 483: Successfully loaded URL file
rufl_init.c rufl_init 134: new font manager
rufl_init.c rufl_init 150: 373 faces, 69 families
rufl_init.c rufl_load_cache 1304: "English" not in font list
http_proxy:0
http_proxy_host:
http_proxy_port:8080
http_proxy_auth:0
http_proxy_auth_user:
http_proxy_auth_pass:
font_size:100
font_min_size:70
font_sans:Homerton
font_serif:Trinity
font_mono:Corpus
font_cursive:Homerton
font_fantasy:Sassoon
accept_language:en
accept_charset:
memory_cache_size:2097152
disc_cache_age:28
block_advertisements:0
minimum_gif_delay:10
send_referer:1
animate_images:1
expire_url:28
font_default:2
ca_bundle:NetSurf:Resources.ca-bundle
ca_path:
cookie_file:NetSurf:Cookies
cookie_jar:<Choices$Write>.WWW.NetSurf.Cookies
homepage_url:
url_suggestion:1
window_x:0
window_y:0
window_width:0
window_height:0
window_screen_width:0
window_screen_height:0
toolbar_status_size:5000
scale:100
incremental_reflow:1
min_reflow_period:100
max_fetchers:24
max_fetchers_per_host:5
max_cached_fetch_handles:6
suppress_curl_debug:1
target_blank:1
button_2_tab:1
margin_top:10
margin_bottom:10
margin_left:10
margin_right:10
export_scale:70
suppress_images:0
remove_backgrounds:0
enable_loosening:1
enable_PDF_compression:1
enable_PDF_password:0
use_mouse_gestures:0
allow_text_selection:1
theme:IYONIX
language:en
plot_fg_quality:8
plot_bg_quality:8
history_tooltip:1
toolbar_show_buttons:1
toolbar_show_address:1
toolbar_show_throbber:1
toolbar_browser:0b123|458|67a9
toolbar_hotlist:401|23
toolbar_history:01|23
toolbar_cookies:0|12
window_stagger:1
window_size_clone:1
background_images:1
buffer_animations:1
buffer_everything:1
open_browser_at_startup:0
no_plugins:0
block_popups:0
image_memory_direct:-1
image_memory_compressed:-1
strip_extensions:0
confirm_overwrite:1
url_path:NetSurf:URL
url_save:<Choices$Write>.WWW.NetSurf.URL
hotlist_path:NetSurf:Hotlist
hotlist_save:<Choices$Write>.WWW.NetSurf.Hotlist
recent_path:NetSurf:Recent
recent_save:<Choices$Write>.WWW.NetSurf.Recent
theme_path:NetSurf:Themes
theme_save:<Choices$Write>.WWW.NetSurf.Themes
thumbnail_iconise:1
interactive_help:1
Fatal signal received: Segmentation fault
Stack backtrace:
Running thread 0x36f4c8
( 3aee8c) pc: 188c28 lr: 23e578 sp: 3aee90 __write_backtrace()
( 3aeed4) pc: 23e3ac lr: 8874 sp: 3aeed8 ^ro_gui_signal()
( 3aeefc) pc: 8864 lr: 211ae4 sp: 3aef00 __unixlib_exec_sig()
( 3aefa0) pc: 211498 lr: 35a868 sp: 3aefa4 __unixlib_raise_signal()
( 3aefb0) pc: 35a778 lr: 0 sp: 3ad5a4 __h_cback()
Register dump at 003aefb4:
a1: 370940 a2: 4b a3: ff a4: 370940
v1: 370940 v2: 8a v3: 55502910 v4: 3a6a80
v5: 63 v6: 0 sl: 3ad210 fp: 3ad5bc
ip: 82 sp: 3ad5a4 lr: 0 pc: 19418
cpsr: 20000010
00019404 : ®1 á : e1a031ae : MOV R3,R14,LSR #3
00019408 : ..ã : e3811003 : ORR R1,R1,#3
0001940c : .1à : e0803103 : ADD R3,R0,R3,LSL #2
00019410 : . .å : e5132004 : LDR R2,[R3,#-4]
00019414 : ..å : e5801000 : STR R1,[R0,#0]
00019418 : . å : e58c2008 : STR R2,[R12,#8]
0001941c : .À.å : e503c004 : STR R12,[R3,#-4]
00019420 : p¨.é : e91ba870 : LDMDB R11,{R4-R6,R11,R13,PC}
00019424 : .0.å : e5153008 : LDR R3,[R5,#-8]
( 3ad5bc) pc: 1931c lr: 1a378 sp: 3ad5c0 free_unlocked()
( 3ad5d4) pc: 1a34c lr: 250ce4 sp: 3ad5d8 free()
( 3ad624) pc: 250730 lr: 275954 sp: 3ad628 ^rufl_load_cache()
( 3adb74) pc: 2755a4 lr: 23ec84 sp: 3adb78 rufl_init()
( 3adc9c) pc: 23ebb4 lr: 175790 sp: 3adca0 nsfont_init()
( 3ade44) pc: 175280 lr: 2479e8 sp: 3ade48 gui_init()
( 3adfb8) pc: 247938 lr: 247bc0 sp: 3adfbc netsurf_init()
( 3adfc8) pc: 247bb4 lr: 247c24 sp: 3adfcc netsurf_main()
( 3adfe0) pc: 247be8 lr: cc7bc sp: 3adfe4 main()
( 3adff0) pc: cc79c lr: aef4 sp: 3adff4 _main()