Picture of iqbal
Registered 5 years 81 days
iqbal Tuesday, 17 January 2023, 11:06 AM
adding Json to ConfigString of ConfigContext throws error


Hi i am having an exeption when i add json to config string.
C++ Code:
ConfigString busy;
busy(this, "busy", "{\"activity\":\"deactivated\",\"note\":\"#\"}")


Error Stack Trace:
01-17 09:16:30.508 dumping stack trace from core

[New LWP 4180]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000046b562 in TaskWriteConfig::Start(UTask*) ()

Thread 1 (Thread 0x7f1079165100 (LWP 4180)):
#0 0x000000000046b562 in TaskWriteConfig::Start(UTask*) ()
#1 0x0000000000469749 in ConfigApiContext::Message(json_io&, unsigned short, char const*, char const*) ()
#2 0x00000000004613d3 in AppWebsocket::WebsocketRecvResult(IWebsocket*, void*, unsigned long, bool, bool) ()
#3 0x00000000004aa909 in WebserverWebsocketHandler::HandleMessage(IWebserverMessage*, void*, unsigned long) ()
#4 0x00000000004a2399 in WebserverPlugin::SocketRecvResult(ISocket*, void*, unsigned long) ()
#5 0x000000000047e62b in UDSocket::ReceiveData() ()
#6 0x000000000047e76d in UDSocket::IoExec(void*) ()
#7 0x000000000045ae79 in IoMux::ExecListRun() ()
#8 0x000000000045b2ec in IoMux::Run() ()
#9 0x0000000000409181 in main ()

can I add json directly to ConfigContext ?
Best Regards
Iqbal
← You can define your color theme preference here