How to debug my unload-able Wiki

225 views
Skip to first unread message

TonyM

unread,
Jun 24, 2018, 9:35:26 PM6/24/18
to TiddlyWiki
Folks,

My Key TiddlyWiki for researching TiddlyWiki is failing to load and I would appreciate some suggestions on how to identify the problem.

On opening the wiki I get the errors

Internal JavaScript Error

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
too much recursion

I can no longer open tiddlers or sidebar tabs, and can see the odd popup menu I have, but no more.

I suspect it is something I did recently, but I am not sure what, because it occurred late at night and I decided to leave it lest I do more damage.

I have tried opening in safe mode, no luck,

I have removed an Item in default tiddlers (using a text editor), removed a recent rawmarkup tag to no effect

Moving forward?

Can anyone share some tips for debugging this. I would love to see where this recursion is Occurring so I can disable it. Firefox and chrome are available with Firefox my favourite.

Thanks in advance
Tony


TonyM

unread,
Jun 24, 2018, 9:39:23 PM6/24/18
to tiddl...@googlegroups.com
Post script:

On refresh a stray pre is appearing on the Browser address bar TiddlyWiki5.html#%2Fpre> and in my side bar /pre>
 
 On attempting to import all the broken wikis tiddlers into a new empty tiddler in only attempts to import a subset of core tiddlers and no more.. Ie even the import facility may be breaking.

BJ

unread,
Jun 25, 2018, 6:38:19 AM6/25/18
to TiddlyWiki
if you load your broke tw, then right click and select 'inspect element' you might get a clue

TonyM

unread,
Jun 25, 2018, 10:14:36 PM6/25/18
to TiddlyWiki
I did that BJ,

And I am clueless.

This occurs in safemode and on other tiddlers in the address bar.


I expect it is something I did in a recent tiddler, but have no way I can find to review the let tiddlers edited from the text editor (yet).


this is a real pain


Regards

Tony

@TiddlyTweeter

unread,
Jun 25, 2018, 10:26:23 PM6/25/18
to TiddlyWiki
Grandpa speaking ... erm ... didn't you backup?

Arlen Beiler

unread,
Jun 25, 2018, 10:36:24 PM6/25/18
to TiddlyWiki
That being said, it is probably not lost, especially if the file size is about the same. It looks like there is a pre tag somewhere that is messing things up. But I can't think where it would be. You said you manually removed a tiddler, which is where pre tags are used. Are you sure you removed it correctly?

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3fadf94c-23a2-49d3-a406-ccbb80e2a0d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TonyM

unread,
Jun 25, 2018, 10:42:20 PM6/25/18
to TiddlyWiki
I thought backups were occuring under tiddlyserver but when I upgraded and created a new folder I did not also create the backups folder. At least this is what I thought happened. Further I discoverd my synology cloud station was not syncing the folders either.

Arggh

TonyM

unread,
Jun 25, 2018, 10:47:40 PM6/25/18
to TiddlyWiki
In side the more information I found this occuring multiple times

Widget.prototype.renderChildren $:/core/modules/widgets/widget.js:369:2 MacroCallWidget.prototype.render $:/core/modules/widgets/macrocall.js:34:2 Widget.prototype.renderChildren/< $:/core/modules/widgets/widget.js:370:3 _boot/$tw.utils.each
Widget.prototype.renderChildren $:/core/modules/widgets/widget.js:369:2 VarsWidget.prototype.render $:/core/modules/widgets/vars.js:44:2 Widget.prototype.renderChildren/< $:/core/modules/widgets/widget.js:370:3 _boot/$tw.utils.each
Widget.prototype.renderChildren $:/core/modules/widgets/widget.js:369:2 MacroCallWidget.prototype.render $:/core/modules/widgets/macrocall.js:34:2 Widget.prototype.renderChildren/< $:/core/modules/widgets/widget.js:370:3 _boot/$tw.utils.each
Widget.prototype.renderChildren $:/core/modules/widgets/widget.js:369:2 VarsWidget.prototype.render $:/core/modules/widgets/vars.js:44:2 Widget.prototype.renderChildren/< $:/core/modules/widgets/widget.js:370:3

TonyM

unread,
Jun 25, 2018, 10:51:01 PM6/25/18
to TiddlyWiki
Arlen,

I am confident because "I have removed an Item in default tiddlers (using a text editor removed a title only), removed a recent rawmarkup tag to no effect" and other tags -- not removed a whole tiddler.

I appear to have located the last hour any tiddler was edited 2018062207 so I can review those, but their are many.

Regards
Tony

TonyM

unread,
Jun 25, 2018, 11:03:36 PM6/25/18
to TiddlyWiki
In the attachment we can see what leads into the loop, and the red line I added shows what then occurs to infinity/ the too much recursion limit.

What would be using those js functions?

Regards
Tony
2018-06-26_12-59-10.png

TonyM

unread,
Jun 25, 2018, 11:32:20 PM6/25/18
to TiddlyWiki
Chrome reports a subtly different message

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
Uncaught RangeError: Maximum call stack size exceeded

And more error information

TiddlyWiki5.html:63099 Uncaught SyntaxError: Invalid regular expression: /~?\$:\/[A-Za-z0-9À-ÖØ-Þß-öø-ÿŐŰőű/._-]+/: Stack overflow
$tw.utils.error @ TiddlyWiki5.html:63099
window.onerror @ TiddlyWiki5.html:63126
error (async)
_boot @ TiddlyWiki5.html:63125
(anonymous) @ TiddlyWiki5.html:65199


$tw.utils.each@TiddlyWiki5.html:63036
Widget.renderChildren@$:/core/modules/widgets/widget.js:369
VarsWidget.render@$:/core/modules/widgets/vars.js:44
(anonymous)@$:/core/modules/widgets/widget.js:370

Hmm

BJ

unread,
Jun 26, 2018, 3:09:05 AM6/26/18
to tiddl...@googlegroups.com
how big is the file? if you send me a copy I can work out what is wrong...

TonyM

unread,
Jun 26, 2018, 3:19:29 AM6/26/18
to TiddlyWiki
Private message sent with Wiki Attached, thanks
Reply all
Reply to author
Forward
0 new messages