Question: How do I pass data from main thread to the method which is running in a different thread continuously? I have a timer in which the value will be continuously incremented and that data will have do be passed to the method in a different thread at each timer tick event. Please help. I don't have much knowledge about threading.

Answer: 
For dojo.parse errors, I find it useful to pause the Chrome debugger on all exceptions (the purple icon on your screenshot, should be blue). You usally get more details about the cause of the error, the name of the DOM node being parsed, etc. in the first exception being raised.

Rémi.
Usually what I do in situations like that is to place a breakpoint inside the error callback (line 3398 in your case) and then look into the error variable ("e").

I am not sure how familiar you are with the Web Inspector, but once you hit the breakpoint open the Web Inspector 'console' and check for the error properties "e.message" and "e.stack" (just type in "e.message " in the console).
Also, during development it is better to avoid Dojo optimization / minification, which greatly improve your debug-ability.

Bottom line is to try to place the breakpoint before the error is thrown.