<p>Your "JSON" file isn't JSON, its full of escape character rubbish that are terminal control characters.  Of course it will display in the terminal, but its not legal <a href="https://www.json.org/" rel="nofollow">JSON</a>.  The crap includes many <code>[</code>s and as the traceback shows the parser is looking for the matching <code>]</code>s recursively and running out of stack because all the <code>[</code>s make it nested too deeply.</p>
<p>This is therefore not a bug.</p>
<p>#0  0x00007ffff7b39bad in matchRegex (line=0x13b9930, language=48)<br>
at main/lregex.c:509<br>
<a href="https://github.com/geany/geany/pull/1" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1860207" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1">#1</a>  0x00007ffff7b44dcb in iFileGetLine () at main/read.c:449<br>
<a href="https://github.com/geany/geany/pull/2" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1869766" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2">#2</a>  0x00007ffff7b44eb0 in getcFromInputFile () at main/read.c:484<br>
<a href="https://github.com/geany/geany/pull/3" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1870603" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/3">#3</a>  0x00007ffff7b4528f in getcFromInputFile () at main/read.c:469<br>
<a href="https://github.com/geany/geany/pull/4" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1883601" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/4">#4</a>  0x00007ffff7b37385 in readTokenFull (token=token@entry=0x1442050, includeStringRepr=includeStringRepr@entry=false) at parsers/json.c:149<br>
<a href="https://github.com/geany/geany/pull/5" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1885233" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/5">#5</a>  0x00007ffff7b37645 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:246<br>
<a href="https://github.com/geany/geany/pull/6" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1896596" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/6">#6</a>  0x00007ffff7b37662 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:254<br>
<a href="https://github.com/geany/geany/pull/7" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1942910" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/7">#7</a>  0x00007ffff7b37662 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:254<br>
<a href="https://github.com/geany/geany/pull/8" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2025926" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/8">#8</a></p>
<p>repeats until stack full.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1768#issuecomment-364710692">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJwZQ7Hns1zPz3tJOtSJ2NmKmM8Wvks5tTkC_gaJpZM4SBFOp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9Ji5S0rh8yq9lzDisu7GegXuXWGks5tTkC_gaJpZM4SBFOp.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1768#issuecomment-364710692"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1768: Your \"JSON\" file isn't JSON, its full of escape character rubbish that are terminal control characters.  Of course it will display in the terminal, but its not legal [JSON](https://www.json.org/).  The crap includes many `[`s and as the traceback shows the parser is looking for the matching `]`s recursively and running out of stack because all the `[`s make it nested too deeply.\r\n\r\nThis is therefore not a bug.\r\n\r\n#0  0x00007ffff7b39bad in matchRegex (line=0x13b9930, language=48)\r\n    at main/lregex.c:509\r\n#1  0x00007ffff7b44dcb in iFileGetLine () at main/read.c:449\r\n#2  0x00007ffff7b44eb0 in getcFromInputFile () at main/read.c:484\r\n#3  0x00007ffff7b4528f in getcFromInputFile () at main/read.c:469\r\n#4  0x00007ffff7b37385 in readTokenFull (token=token@entry=0x1442050, includeStringRepr=includeStringRepr@entry=false) at parsers/json.c:149\r\n#5  0x00007ffff7b37645 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:246\r\n#6  0x00007ffff7b37662 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:254\r\n#7  0x00007ffff7b37662 in skipToOneOf3 (token=token@entry=0x1442050, type1=TOKEN_CLOSE_SQUARE, type2=TOKEN_EOF, type3=TOKEN_EOF) at parsers/json.c:254\r\n#8\r\n \r\nrepeats until stack full."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1768#issuecomment-364710692"}}}</script>