<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Server crash opening one dashboard]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">after updating to version 6.2.4 (server, agent, client...), opening one of our custom dashboards causes the server to crash; how can we identify the cause of the problem?</p>
<p dir="auto">We tried disabling "Scripts.RestrictWriteAccess", but without success.</p>
<p dir="auto">Thanks in advance,</p>
<p dir="auto">Alessio.</p>
]]></description><link>https://forum.netxms.org/topic/8446/server-crash-opening-one-dashboard</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:23:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8446.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Sep 2026 09:52:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server crash opening one dashboard on Tue, 15 Sep 2026 07:07:29 GMT]]></title><description><![CDATA[<p dir="auto">Great job, thanks everyone!</p>
<p dir="auto">Alessio.</p>
]]></description><link>https://forum.netxms.org/post/35776</link><guid isPermaLink="true">https://forum.netxms.org/post/35776</guid><dc:creator><![CDATA[sqk]]></dc:creator><pubDate>Tue, 15 Sep 2026 07:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to Server crash opening one dashboard on Mon, 14 Sep 2026 11:21:21 GMT]]></title><description><![CDATA[<p dir="auto">Version 6.2.5 that is just published should have this fixed.</p>
]]></description><link>https://forum.netxms.org/post/35773</link><guid isPermaLink="true">https://forum.netxms.org/post/35773</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 14 Sep 2026 11:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to Server crash opening one dashboard on Wed, 09 Sep 2026 12:51:20 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks Alex,</p>
<p dir="auto">found images and working on them now...</p>
<pre><code>+--------------------------------------+-----------------------------------------------------------------+----------+--------------------+
| guid                                 | name                                                            | category | LENGTH(image_data) |
+--------------------------------------+-----------------------------------------------------------------+----------+--------------------+
| 81652d15-df62-44ca-9f6b-55c68c6d8670 | schema sinottico REALE alimentazione Palma Piani DRAWIO-NOAVV   | Default  |            1824040 |
| 2ffbcbdb-a04e-488b-91ec-54c48de952e6 | mappa_sfondo                                                    | Default  |            1603868 |
| f5440229-8d66-4f32-a12c-1d984a2479bd | schema sinottico REALE alimentazione Trieste DRAWIO-NOAVV       | Default  |            1581020 |
| 9e5a6fdf-cc27-4440-bc3b-364912304f34 | schema sinottico REALE alimentazione CED Palmanova DRAWIO-NOAVV | Default  |            1093976 |
| 4da68704-046f-4a78-afad-cd3ecf417687 | bw_mappa_sfondo                                                 | Default  |             934132 |
| 94249c03-ba41-4fa8-bb61-ec9441bab325 | schema sinottico REALE alimentazione UD-Fiera DRAWIO-NOAVV      | Default  |             805556 |
</code></pre>
]]></description><link>https://forum.netxms.org/post/35765</link><guid isPermaLink="true">https://forum.netxms.org/post/35765</guid><dc:creator><![CDATA[sqk]]></dc:creator><pubDate>Wed, 09 Sep 2026 12:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to Server crash opening one dashboard on Wed, 09 Sep 2026 12:17:00 GMT]]></title><description><![CDATA[<p dir="auto">The backtrace pins it exactly: it's a bug in our MariaDB driver, triggered by an oversized entry in the image library.</p>
<p dir="auto">Since 6.2 images are stored in the database instead of as files, and the driver allocates the buffer for a field <strong>on the stack</strong>, sized by the length of that field. Server worker threads get a 1 MB stack by default, so an image over roughly 780 KB overflows it and the process dies the moment anything asks for that image - which is what opening the dashboard does. The upgrade migrates existing image files into the database, so an image that had been fine for years starts crashing the server right after.</p>
<p dir="auto">Two steps to get you running again.</p>
<ol>
<li>Add to netxmsd.conf and restart the server:</li>
</ol>
<pre><code>DefaultThreadStackSize=8M
</code></pre>
<p dir="auto">That raises the worker stacks and stops the crash right away.</p>
<ol start="2">
<li>Find the image and replace it with a smaller one:</li>
</ol>
<pre><code>SELECT guid, name, category, LENGTH(image_data) FROM images ORDER BY LENGTH(image_data) DESC LIMIT 5;
</code></pre>
<p dir="auto">Anything near or above 1000000 is the one. Re-upload a downscaled version through the image library - listing and re-uploading are safe, only fetching the image bytes crashes.</p>
<p dir="auto">Ticket is <a href="https://github.com/netxms/netxms/issues/3637" rel="nofollow ugc">https://github.com/netxms/netxms/issues/3637</a> - the driver should allocate large fields on the heap, not the stack.</p>
]]></description><link>https://forum.netxms.org/post/35764</link><guid isPermaLink="true">https://forum.netxms.org/post/35764</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 09 Sep 2026 12:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Server crash opening one dashboard on Wed, 09 Sep 2026 11:55:04 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Alex,</p>
<p dir="auto">here it is:</p>
<p dir="auto">#0  0x00007ffff74b7b77 in ?? () from /lib/x86_64-linux-gnu/libc.so.6<br />
#1  0x00007ffff4fedebf in ?? () from /lib/x86_64-linux-gnu/libmariadb.so.3<br />
#2  0x00007ffff4fef2b0 in ?? () from /lib/x86_64-linux-gnu/libmariadb.so.3<br />
#3  0x00007ffff4fea43e in mysql_stmt_fetch_column () from /lib/x86_64-linux-gnu/libmariadb.so.3<br />
#4  0x00007ffff6050ebe in GetFieldInternal (result=0x7ffff4442920, iRow=&lt;optimized out&gt;, iColumn=4, buffer=0x7fffd8e1a800,<br />
    bufferSize=2187953, utf8=&lt;optimized out&gt;) at mariadb/mariadb.cpp:693<br />
#5  0x00007ffff783cf6e in DBGetFieldUTF8 (hResult=0x7fffde414cc0, row=0, column=4, buffer=&lt;optimized out&gt;, bufferSize=0) at session.cpp:561<br />
#6  0x00007ffff783d87c in DBGetFieldBinary (hResult=hResult@entry=0x7fffde414cc0, row=row@entry=0, column=column@entry=4,<br />
    length=length@entry=0x7fffdf5f9538) at session.cpp:846<br />
#7  0x00007ffff7c618d6 in ClientSession::sendLibraryImage (this=this@entry=0x7ffff4a34000, request=...) at session.cpp:13810<br />
#8  0x00007ffff7c827f9 in ClientSession::processRequest (this=0x7ffff4a34000, request=0x7fffe9141f30) at session.cpp:1651<br />
#9  0x00007ffff7c2cde2 in __ThreadPoolExecute_Wrapper_1&lt;ClientSession, NXCPMessage*&gt; (arg=0x7fffe912aca0)<br />
    at ../../../include/nms_threads.h:1046<br />
#10 0x00007ffff77e41f5 in WorkerThread (threadInfo=0x7fffefc77af0) at tp.cpp:228<br />
#11 0x00007ffff77e532b in ThreadCreate_Wrapper_1&lt;WorkerThreadInfo*&gt; (context=0x7fffefc77a00) at ../../include/nms_threads.h:354<br />
#12 0x00007ffff770dea7 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0<br />
#13 0x00007ffff7444aef in clone () from /lib/x86_64-linux-gnu/libc.so.6</p>
]]></description><link>https://forum.netxms.org/post/35763</link><guid isPermaLink="true">https://forum.netxms.org/post/35763</guid><dc:creator><![CDATA[sqk]]></dc:creator><pubDate>Wed, 09 Sep 2026 11:55:04 GMT</pubDate></item><item><title><![CDATA[Reply to Server crash opening one dashboard on Wed, 09 Sep 2026 11:06:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Fastest way to pin this down is to run the server under gdb and let it stop at the crash - the backtrace names the code path directly.</p>
<pre><code>apt install netxms-dbg
systemctl stop netxms-server
gdb /usr/bin/netxmsd
run -D3
# open the dashboard in the client, wait for the crash
bt
</code></pre>
<p dir="auto">Post the bt output here.</p>
<p dir="auto"><strong>netxms-dbg is required</strong> - without it the backtrace is just hex addresses and tells us nothing. Without -d or -S netxmsd stays in foreground, which is what we want; it also starts interactive console there, so add -q if that gets in the way of gdb.</p>
<p dir="auto">Note: Scripts.RestrictWriteAccess has no effect here. Dashboard element scripts run under user security context, not the read-only one that parameter controls, so toggling it changes nothing either way.</p>
]]></description><link>https://forum.netxms.org/post/35762</link><guid isPermaLink="true">https://forum.netxms.org/post/35762</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 09 Sep 2026 11:06:57 GMT</pubDate></item></channel></rss>