Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

"Error in JSON: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data :" causes failure to load javascript webgl apps

  • 4 replies
  • 3 have this problem
  • 49 views
  • آخر ردّ كتبه wjbbjw

more options

website: https://www.shadertoy.com/

It also occurs on any other individual shader page ( as accessed via any of the "Latest contributions" links, or from any external link ), but the popup dialog box error is only : "ERROR in JSON:"

But DOES NOT occur on page : https://www.shadertoy.com/new ( shader loads and functions fine, no errors )


Computer info:

Processor: Intel Core i7 920 2.66GHz (Quad Core)- Overclock 3.59GHz Motherboard: EVGA X58 Micro Edition SLI (Intel X58 Chipset) (Supports SLI or CrossFire) System Memory: 6GB DDR3 1600MHz Video Card: 1x NVIDIA GeForce 9800GT 512MB OS: Microsoft Windows 7 Professional 64-Bit


Browser info:

32-bit Firefox 43.0.3 Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

This has occurred with every Firefox version I've used in the last 6 to 9 months or so since I first found the shadertoy.com site.

The error occurs in both normal mode and safe mode - add-ons disabled. I've disabled add-ons one by one as well, but the error persists.


Additional info:

I've copied the contents of the Browser Console for both the https://www.shadertoy.com/, on which the error occurs, and for the https://www.shadertoy.com/new , on which the error does not occur.

I've also copied settings from about:config which are results of searching on the two phrases, "JSON" and "javascript".

If this information would be helpful, I can add it. Is there additional space available for posting? There wasn't enough space here to include it.


Any help or suggestions would be much appreciated. Thank you, Bill

All Replies (4)

more options

Contents of "Browser Console" on shadertoy.com


( I've indicated with **** the lines which referred to javascript errors ( orange text on console ) ).

Edit: Since the files are so long, I've eliminated everything but the javascript errors here. The complete logs are available if they would help, though.

**************************************************************
JQMIGRATE: Logging is active common-min.437e152f9a7a.js:6:5685
JQMIGRATE: jQuery.browser is deprecated common-min.437e152f9a7a.js:6:6026
*************************************************************************
about:blank : Unable to run script because scripts are blocked internally. <unknown>

HTML5VideoCheckLoad, true, false, undefined frame.js:7:3
HTML5VideoCheckLoad: preventing frame.js:7:3
HTML5VideoCheckLoad: prevented true, true, 1452023905372000 frame.js:7:3
Error: WebGL: getParameter: parameter: invalid enum value <enum 0x9246> base.js:2995:82

TypeError: popup is null
 toolbar_button.js:304:5

TypeError: popup is null
 toolbar_button.js:304:5

==================================================================================

Contents of "Browser Console" on shadertoy.com/new
--------------------------------------------------

( Again, limited to javascript errors )

JQMIGRATE: Logging is active common-min.437e152f9a7a.js:6:5685
JQMIGRATE: jQuery.browser is deprecated common-min.437e152f9a7a.js:6:6026

about:blank : Unable to run script because scripts are blocked internally. <unknown>

HTML5VideoCheckLoad, true, false, undefined frame.js:7:3
HTML5VideoCheckLoad: preventing frame.js:7:3
HTML5VideoCheckLoad: prevented true, true, 1452023905372000 frame.js:7:3
Error: WebGL: getParameter: parameter: invalid enum value <enum 0x9246> base.js:2995:82

TypeError: popup is null
 toolbar_button.js:304:5

TypeError: popup is null
 toolbar_button.js:304:5
can't access dead object stylesheets.js:302:0

Modified by cor-el

more options

Contents of about:config, searched on "JSON" :


devtools.devices.url;https://code.cdn.mozilla.net/devices/devices.json devtools.netmonitor.har.jsonp;false devtools.netmonitor.har.jsonpCallback; devtools.webide.addonsURL;https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/index.json devtools.webide.templatesURL;https://code.cdn.mozilla.net/templates/list.json extensions.adblockplus.notificationurl;https://notification.adblockplus.org/notification.json signon.recipes.path;chrome://passwordmgr/content/recipes.json

=========================================================================

Contents of about:config, searched on "javascript" :


browser.urlbar.filter.javascript;true extensions.adblockplus.whitelistschemes;about chrome file irc moz-safe-about news resource snews x-jsd addbook

cid imap mailbox nntp pop data javascript moz-icon extensions.{73a6fe31-595d-460b-a920-fcc0f8843232}.description;Extra protection for your Firefox: NoScript allows

JavaScript, Java (and other plugins) only for trusted domains of your choice (e.g. your home-banking web site).

This whitelist based pre-emptive blocking approach prevents exploitation of security vulnerabilities (known and

even unknown!) with no loss of functionality… Experts will agree: Firefox is really safer with NoScript :-) javascript.enabled;true javascript.options.asmjs;true javascript.options.asyncstack;false javascript.options.baselinejit;true javascript.options.compact_on_user_inactive;true javascript.options.compact_on_user_inactive_delay;300000 javascript.options.discardSystemSource;false javascript.options.gc_on_memory_pressure;true javascript.options.ion;true javascript.options.ion.offthread_compilation;true javascript.options.mem.gc_allocation_threshold_mb;30 javascript.options.mem.gc_compacting;true javascript.options.mem.gc_decommit_threshold_mb;32 javascript.options.mem.gc_dynamic_heap_growth;true javascript.options.mem.gc_dynamic_mark_slice;true javascript.options.mem.gc_high_frequency_heap_growth_max;300 javascript.options.mem.gc_high_frequency_heap_growth_min;150 javascript.options.mem.gc_high_frequency_high_limit_mb;500 javascript.options.mem.gc_high_frequency_low_limit_mb;100 javascript.options.mem.gc_high_frequency_time_limit_ms;1000 javascript.options.mem.gc_incremental;true javascript.options.mem.gc_incremental_slice_ms;10 javascript.options.mem.gc_low_frequency_heap_growth;150 javascript.options.mem.gc_max_empty_chunk_count;30 javascript.options.mem.gc_min_empty_chunk_count;1 javascript.options.mem.gc_per_compartment;true javascript.options.mem.high_water_mark;128 javascript.options.mem.log;false javascript.options.mem.max;-1 javascript.options.mem.notify;false javascript.options.native_regexp;true javascript.options.parallel_parsing;true javascript.options.showInConsole;true javascript.options.strict;false network.protocol-handler.external.javascript;false pref.advanced.javascript.disable_button.advanced;false services.sync.prefs.sync.javascript.enabled;true services.sync.prefs.sync.pref.advanced.javascript.disable_button.advanced;true

more options

You can try these steps in case of issues with web pages:

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Clear the cache and remove cookies only from websites that cause problems.

"Clear the Cache":

  • Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"

"Remove Cookies" from sites causing problems:

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

Start Firefox in Safe Mode to check if one of the extensions (Firefox menu button/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.

  • Switch to the DEFAULT theme: Firefox menu button/Tools > Add-ons > Appearance
  • Do NOT click the Reset button on the Safe Mode start window
more options

Thank you for the reply, but no, I've tried all of the obvious steps already.