Fun with Javascript errors

65 views
Skip to first unread message

kra...@sunyit.edu

unread,
Mar 28, 2016, 10:41:16 AM3/28/16
to TiddlyWiki
Hello everyone, and happy Monday :)

I was talking through my thesis project space this morning; http://stamphoto-sunypoly.tiddlyspot.com/#  ,

 when I tried to edit the tiddler "dimension", a javascript error appeared (attached picture).

All other edits saved, everything else worked up until this point... I truly, truly, truly appreciate any guidance and help with this :)

Thank you as always for your help and time,
Karen 
Screen Shot 2016-03-28 at 10.37.56 AM.png

Eric Shulman

unread,
Mar 28, 2016, 11:01:21 AM3/28/16
to TiddlyWiki
On Monday, March 28, 2016 at 7:41:16 AM UTC-7, kra...@sunyit.edu wrote:
Hello everyone, and happy Monday :)
I was talking through my thesis project space this morning; http://stamphoto-sunypoly.tiddlyspot.com/#  ,
 when I tried to edit the tiddler "dimension", a javascript error appeared (attached picture).

Your "dimension" tiddler contains a <<toc>> macro.  The problem is that you have a "tag loop".... where one of the items in the TOC tree is tagged with itself or a decendent.  In your particular case, there are TWO tiddlers ("Posing" and "Park") that are tagged with their own title.  This creates infinite recursions, which eventually fails with a "stack overflow" or similar internal error.

Remove the errant tags, and the TOC tree displays properly, without error.

Note: the way I found those two tiddlers was to simply display the "dimension" tiddler, let it show the error message... and then scroll down to see what output was actually produced.  You can easily see that the tree goes off into deep recursion, repeatedly nesting the branches of the tree, over and over.  A quick mouseover on the toc entry that "goes deep", and you will see that it is a link to the "Posing" tiddler.  After I removed the "Posing" tag from that tiddler, I tried viewing the "dimension" tiddler again, and it got past the "Posing" tiddler but still had an infinite recursion error with the "Park" tiddler.  After reloading the document and removing both errant tags from their respective tiddlers, the TOC tree renders ok, without error.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

kra...@sunyit.edu

unread,
Mar 29, 2016, 5:21:25 PM3/29/16
to TiddlyWiki
Thank you, Eric, so very much for your help and time!  Problem solved; good to know for the future.  As this is a group effort, I'm sure it'll occur again; at least I'll know for next time :)
Karen
Reply all
Reply to author
Forward
0 new messages