I've been trying to use the Firefox profiler and no matter what I did it always throws a "SyntaxError: JSON.parse: unexpected non-digit at line 1 column 1018761 of the JSON data" Only errors when I'm trying to profile MY web application, which primarily uses three.js. Couldn't find anything relating to issues with the Firefox profiler online, but I found your comment so here's me going straight to the source.
Can you please file a bug in Bugzilla with all the details? A colleague who works on this feature may be able to help get any relevant logging out of it to pinpoint the bug.
If the site is public and the issue happens in a fresh profile, just a link here would likely do the trick.