Page 1 of 1

Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 12:06
by mimox
I get a "Fatal Exception" after refreshing feeds (which seems to work nevertheless) or trying to resize the preview pane (which does not work):


Fatal Exception

Error message:
Exception: TypeError, getInitParam("theme_options") is null
Function: parse_counters()
Location: functions.js?1289120029:507

Stack trace:
parse_counters([object Element],false)@http://online.tt-rss.org/functions.js?1289120029:507
headlines_callback2([object Object],0)@http://online.tt-rss.org/viewfeed.js?1289120029:200
([object Object],null)@http://online.tt-rss.org/feedlist.js?1289120029:324
(4)@http://online.tt-rss.org/lib/prototype.js:1307
([object Event])@http://online.tt-rss.org/lib/prototype.js:1237
([object Event])@http://online.tt-rss.org/lib/prototype.js:208

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 12:59
by fox
Hmm... seems to work for me. It might be broken if some scripts got stuck in your browser cache or something.

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 15:29
by mimox
fox wrote:Hmm... seems to work for me. It might be broken if some scripts got stuck in your browser cache or something.


I just cleared my browser cache but the problem still occurs. It just started to happen yesterday or the day before. Did you not change anything during the last few days?

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 16:13
by fox
I did, merged some new code. What's your browser? Are you using the default theme or a different one?

Also, can you post the contents of this URL: http://online.tt-rss.org/backend.php?op=rpc&subop=sanityCheck

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 16:30
by mimox
I am running the latest Firefox 4 beta. I use the "Compact" theme. I also noticed that there are icons now in the tree view, which was not the case before.

<rpc-reply><error error-code="0"/><init-params>[{"param":"theme","value":"compact"},{"param":"theme_options","value":null},{"param":"daemon_enabled","value":true},{"param":"feeds_frame_refresh","value":600},{"param":"sign_progress","value":"images\/indicator_white.gif"},{"param":"sign_progress_tiny","value":"images\/indicator_tiny.gif"},{"param":"sign_excl","value":"images\/sign_excl.png"},{"param":"sign_info","value":"images\/sign_info.png"},{"param":"on_catchup_show_next_feed","value":0},{"param":"hide_read_feeds","value":0},{"param":"enable_feed_cats","value":1},{"param":"feeds_sort_by_unread","value":0},{"param":"confirm_feed_catchup","value":0},{"param":"cdm_auto_catchup","value":0},{"param":"fresh_article_max_age","value":672},{"param":"hide_read_shows_special","value":1},{"param":"hide_feedlist","value":0},{"param":"icons_url","value":"icons"},{"param":"cookie_lifetime","value":2592000},{"param":"default_view_mode","value":"all_articles"},{"param":"default_view_limit","value":200},{"param":"default_view_order_by","value":"date"},{"param":"prefs_active_tab","value":"genConfig"},{"param":"infobox_disable_overlay","value":false},{"param":"bw_limit","value":0},{"param":"offline_enabled","value":0},{"param":"num_feeds","value":25},{"param":"collapsed_feedlist","value":0}]</init-params><runtime-info><param key="num_feeds" value="25"/><param key="daemon_is_running" value="1"/></runtime-info></rpc-reply>

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 18:26
by fox
Bug fixed, thanks for reporting. :)

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 19:10
by mimox
fox wrote:Bug fixed, thanks for reporting. :)


I now (after clearing browser cache and relaoding the page) get this:

Fatal Exception

Error message:
Exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMStorage.clear]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://online.tt-rss.org/tt-rss.js?1289146126 :: init_second_stage :: line 425" data: no]
Function: init_second_stage()

Stack trace:
undefined

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 19:18
by fox
Can you try it in FF 3.x? This is html5 localStorage thingie failing for some reason, maybe because it's broken in the beta.

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 20:14
by mimox
You are right, it seems to work in FF 3.6.12... Sure this is a Mozilla bug? If so, do you have any more information on what goes wrong (in order to allow a good bug report there)

Re: Fatal Exception after refresh and resize

Posted: 07 Nov 2010, 20:47
by fox
localStorage.clear() seems to be broken.

Re: Fatal Exception after refresh and resize

Posted: 08 Nov 2010, 10:03
by mimox
fox wrote:localStorage.clear() seems to be broken.


It's working again now... did you make any changes?

Re: Fatal Exception after refresh and resize

Posted: 08 Nov 2010, 11:31
by fox
Nope. The beta is probably just buggy or something.

Re: Fatal Exception after refresh and resize

Posted: 08 Nov 2010, 22:29
by mimox
Just got a similar thing again:

Fatal Exception

Error message:
Exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMStorage.getItem]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://online.tt-rss.org/viewfeed.js?1289244005 :: cache_check :: line 1777" data: no]
Function: preloadArticleUnderPointer()

Stack trace:
undefined

I reported to mozilla, the issue is tracked here now: https://bugzilla.mozilla.org/show_bug.cgi?id=610236

Re: Fatal Exception after refresh and resize

Posted: 09 Nov 2010, 00:32
by mimox
Would you be willing/able to provide a test account on online.tt-rss.org for mozilla people to test this?

Re: Fatal Exception after refresh and resize

Posted: 09 Nov 2010, 09:31
by fox
This is the goddamn test suite we're talking about:

Code: Select all

localStorage.clear()


They need an account to test this? I knew that Mozilla devs general incompetency is only outweighed by their ability to spout bullshit about them being the holy saviors of "organic software" or whatever but this really takes the cake.