JohnAustinDev / xulsword

Automatically exported from code.google.com/p/xulsword
17 stars 6 forks source link

Option filters are all greyed out when I open MK 3.14 #245

Closed DavidHaslam closed 1 year ago

DavidHaslam commented 7 years ago

I am unable to toggle the filters for headings, footnotes, cross refs, dictionary.

screenshot 2017-02-07 16 52 48

Also everything in the View menu is greyed out!

screenshot 2017-02-07 16 55 58

DavidHaslam commented 7 years ago

After deleting the previous file, and opening & closing MK 3.14 here is the new consoleLog.txt

Is there anything reported that I need to fix before you can determine the cause of the error?

JohnAustinDev commented 7 years ago

consoleLog.txt shows a timeout is causing a script to be aborted prematurely. I've looked at the offending function, getCSS(), and although it is relatively time consuming, I see no possibility of infinite loops there. The more modules and locales (and custom CSS) that you have, the more getCSS() will be run and the longer it will take. So I'm curious. You can increase your timeout values and restart MK. Go to your MK installation and find the file: IBT/MK/xulsword/defaults/preferences/prefs.js and then add this to the end of it:

pref("dom.max_child_script_run_time", 60); pref("dom.max_chrome_script_run_time", 60); pref("dom.max_script_run_time", 60);

Then restart MK and this will increase the timeouts to 60 seconds, which should be far more than enough. If this fixes the problem, let me know how long it takes to open xulsword and how many modules you have installed. I'll see if there are optimizations that can be done to fix it, or if the default timeouts should be increased. If there are still problems, send the consoleLog.txt report after the 60 second timeout and errors.

DavidHaslam commented 7 years ago

Aside

Yesterday on my PC, everything was running slow.

After I rebooted, processes seemed to back to normal speed.

DavidHaslam commented 7 years ago

Further note

Not yet moved back the large resources folder to my xulsword profile.

That would further increase the number of modules to be detected.

DavidHaslam commented 7 years ago

I added the three lines to the file called prefs.js.

This has solved the problem, but I forgot to use a stop-watch. After disregarding two modules that wanted unlocking, the option filters were no longer greyed out.

Here is the new consoleLog.txt

There are 428 .conf files in my mods.d folder.

When I get time, I will try further with the large resources folder restored first.