<?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[My Qt application has &quot;segmentation fault&quot; when I try to type keyboard]]></title><description><![CDATA[<p dir="auto">Qt creator,Qt online installer,My personal Qt Application all can't be used now.<br />
If I open them ,it's Ok.If I use mouse to operate them,It's ok,they run smoothly.But if I hit even a shift or ctrl on the keyboard,they disappear suddenly with some "segmentation fault".<br />
What can I do?</p>
]]></description><link>https://forum.qt.io/topic/145922/my-qt-application-has-segmentation-fault-when-i-try-to-type-keyboard</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 19:57:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145922.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jun 2023 08:46:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to My Qt application has &quot;segmentation fault&quot; when I try to type keyboard on Wed, 21 Jun 2023 11:01:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zhzhy">@<bdi>zhzhy</bdi></a> I tried to gdb it.</p>
<pre><code>Thread 1 "hello" received signal SIGSEGV, Segmentation fault.
get_entry_for_key_state (group=group@entry=0, key=&lt;optimized out&gt;, state=&lt;optimized out&gt;) at src/state.c:132
132	        if (type-&gt;entries[i].mods.mods != 0 &amp;&amp; type-&gt;entries[i].mods.mask == 0)
(gdb) bt
#0  get_entry_for_key_state (group=group@entry=0, key=&lt;optimized out&gt;, state=&lt;optimized out&gt;) at src/state.c:132
#1  0x00007ffff615220c in xkb_state_key_get_level (state=state@entry=0x5555555c78f0, kc=kc@entry=65, layout=layout@entry=0) at src/state.c:157
#2  0x00007ffff6152aef in xkb_state_key_get_syms (state=state@entry=0x5555555c78f0, kc=kc@entry=65, syms_out=syms_out@entry=0x7fffffffd680) at src/state.c:845
#3  0x00007ffff61530de in xkb_state_key_get_one_sym (state=0x5555555c78f0, kc=65) at src/state.c:914
#4  0x00007ffff2ab2535 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6
#5  0x00007ffff2ab28e9 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6
#6  0x00007ffff2a8b37d in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6
#7  0x00007ffff2a8bdf6 in QXcbConnection::processXcbEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) ()
   from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6
#8  0x00007ffff2aaa2a3 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6
#9  0x00007ffff3cd817d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff3cd8400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff3cd84a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff73c2caa in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6
#13 0x00007ffff7123d7b in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6
#14 0x00007ffff71205ae in QCoreApplication::exec() () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6
#15 0x0000555555557342 in main ()

</code></pre>
<p dir="auto">I get it,I accidently do some thing wrong with libxkbcommon,and I reinstall it<br />
"sudo apt-get install --reinstall libxkbcommon0",everything is fine now.thank your help.</p>
]]></description><link>https://forum.qt.io/post/762197</link><guid isPermaLink="true">https://forum.qt.io/post/762197</guid><dc:creator><![CDATA[zhzhy]]></dc:creator><pubDate>Wed, 21 Jun 2023 11:01:05 GMT</pubDate></item><item><title><![CDATA[Reply to My Qt application has &quot;segmentation fault&quot; when I try to type keyboard on Wed, 21 Jun 2023 10:05:21 GMT]]></title><description><![CDATA[<pre><code>//main.cpp
#include&lt;QApplication&gt;
#include&lt;QLabel&gt;
#include&lt;QPushButton&gt;

int main(int argc, char *argv[])
{
  QApplication app(argc, argv);
  QLabel *label = new QLabel("hello");
  QPushButton *button = new QPushButton("終了");

  QObject::connect(button, SIGNAL(clicked()), &amp;app, SLOT(quit()));

  label-&gt;show();
  button-&gt;show();

  return app.exec();
}

</code></pre>
<p dir="auto">I write this to try.<br />
and this is the debug information after I run it.</p>
<pre><code>    },
    "archlevel": 1,
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 394496
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ibus")
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/platforminputcontexts" ...
qt.core.library: "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin-qt6.so" loaded library
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/styles" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/styles" ...
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/accessible" ...

</code></pre>
<p dir="auto">and as soon as I type such as a on keyboard this small qt window disappear and the debug information become.</p>
<pre><code>
ntexts/libfcitxplatforminputcontextplugin-qt6.so" loaded library
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/styles" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/styles" ...
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/accessiblebridge" ...
qt.core.plugin.factoryloader: checking directory path "/media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/home/zhzhy/hello/accessible" ...
段错误 (核心已转储)

</code></pre>
<p dir="auto">these chinese word mean "segmentation fault",I don't know why.</p>
]]></description><link>https://forum.qt.io/post/762192</link><guid isPermaLink="true">https://forum.qt.io/post/762192</guid><dc:creator><![CDATA[zhzhy]]></dc:creator><pubDate>Wed, 21 Jun 2023 10:05:21 GMT</pubDate></item><item><title><![CDATA[Reply to My Qt application has &quot;segmentation fault&quot; when I try to type keyboard on Wed, 21 Jun 2023 08:58:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zhzhy">@<bdi>zhzhy</bdi></a><br />
Start by running you application under debugger, make it crash, look at the <em>stack trace</em> for a possible clue.</p>
]]></description><link>https://forum.qt.io/post/762177</link><guid isPermaLink="true">https://forum.qt.io/post/762177</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 21 Jun 2023 08:58:33 GMT</pubDate></item></channel></rss>