View Single Post
Old 03-12-2010, 11:20 AM   #737
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Exclamation PRS+ up and running with german firmware 1.4.00.23260

@kartu

by dumping a freshly cloned "addonSettingsNode" with this modified piece of code from _1_utils.js Utils.debug.dumpToString

Code:
// at this point, o is not null, and is an object
	var str = "dumping\n";
	var hasProps = false;
  for (var prop in o) {
		hasProps = true;
		log.trace("Before var" + prop);
                var oprop = o[prop];
		log.trace("After var" + prop);
		try {
			str += prefix + prop + " => " + this.dumpToString(oprop, prefix + "\t", depth -1) + "\n";
		} catch(ee) {
			str += prefix + prop + " => " + "failed to tostring: " + ee + "\n";
		}
	}
I found the object triggering the restart of my device.
The last logentry writen was "Before var title"

So I decided to remove line 528 in _1_utils.js
Code:
if(arg.hasOwnProperty("title")) {obj.title = arg.title;}
With this modification PRS+ starts ok with my german firmware, all addons and the games are working fine.

Only calling "Browse Folders" caused a hardreset / reboot of the device.

So I checked the code of _BrowseFolders.js for references to "title",
and found two (2) at line 251 and 268, and commented both out.

And without referencing the title-property of the cloned object also the BrowseFolder functionality is given!

I don't know why touching the titel-prop of a cloned object causes the reboot of the device with actual firmware, but it seams that your code is fully functional without changing the title-prop.

Just want to let you know.
Regard Mark
Mark Nord is offline   Reply With Quote