<p>OS: Arch Linux x86_64<br>
Kernel: 4.15.1-2-ARCH<br>
Geany version: 1.32 ("built on or after 2018-01-29")<br>
CPU: Intel i5-8600K (6 cores, each 3.6GHz)<br>
DE: Xfce</p>
<p>I have <a href="https://github.com/geany/geany/files/1713744/json-file.txt">a pretty big JSON file</a> on my computer and I formatted it with terminal colours (see here for what I mean with terminal colors <a href="https://misc.flogisoft.com/bash/tip_colors_and_formatting#colors2" rel="nofollow">link</a>). I can display that file on my terminal with colors without problems, but when I open it with geany, it immediately crashes with a "Segmentation fault (core dumped)".<br>
I experimented a little bit, trying to pinpoint the exact problem with that file and I noticed a few things:</p>
<ul>
<li>That error occurs only when the filetype is set to JSON</li>
<li>The file has to be saved for the error to occur. (It cannot be copy-pasted into a new "untitled" document, nothing happens then)</li>
<li>It IS possible to delete parts of the file so that the weird behavior stays, but there is not one specific line that causes the problem. If I remember correctly, the error goes away when I delete from the start until the ~16000th line or when I delete from the ~40000th line until the end of the file (Line numbers may vary by ~1000 lines plus or minus). There could be more areas of that sort in between those two though.</li>
</ul>

<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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJxJwB1JosK3EMcXt8qS2R04S1unZks5tTgUWgaJpZM4SBFOp">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3r9Bl4YdoOQ1l7lS3EKW9iqbwgXks5tTgUWgaJpZM4SBFOp.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"></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":"DESCRIPTION","message":"Segmentation Fault when opening JSON file with terminal colors (Linux) (#1768)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1768"}}}</script>