Segmentation Fault when more than one Values output

Hello all, When I have more then one out I got a segmentation Fault as soon as I open the Device Values on the Dashboard

Here is my code… It crashes exactly at the ling “out[“PvFW”] = pvvaluesfwstr;”

thing["PvMonit"] << [](pson& out){"/var/log/thinger.txt", ofstream::out | ofstream::app);
    myfile << currentDateTime() << " | Start PV Thing: " << endl;
    out["PvPID1"] = pvvaluespidstr;
    out["PvFW"] = pvvaluesfwstr;
    out["PvSER"] = pvvaluesserstr;
    out["PvMOD"] = pvvaluesmodstr;
    out["PvSCS"] = pvvaluescsstr;
    out["PvACV"] = pvvaluesacvstr;
    out["PvV"] = pvvaluesvstr;
    out["PvAR"] = pvvaluesarstr;
    out["PvWARN"] = pvvalueswarnstr;

This i sthe outpout on my Thinger Client console
root@tinker00001:/opt/PST-Smartcity/thinger_client# ./
– The C compiler identification is GNU 6.3.0
– The CXX compiler identification is GNU 6.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Performing Test COMPILER_SUPPORTS_CXX11 - Success
– Performing Test COMPILER_SUPPORTS_CXX0X - Success
– Found OpenSSL: /usr/lib/arm-linux-gnueabihf/;/usr/lib/arm-linux-gnueabihf/ (found version “1.1.0l”)
– OpenSSL Version: 1.1.0l
– Configuring done
– Generating done
– Build files have been written to: /opt/PST-Smartcity/thinger_client/build
Scanning dependencies of target thinger
[ 25%] Building CXX object CMakeFiles/thinger.dir/src/main.cpp.o
[ 50%] Building CXX object CMakeFiles/thinger.dir/src/mmapGpio.cpp.o
[ 75%] Building C object CMakeFiles/thinger.dir/src/cJSON.c.o
[100%] Linking CXX executable thinger
[100%] Built target thinger
Got Device Information
Here we need to Configure Device Parameters depend on Config
[3976068.727000]: Not connected!
[3976068.728000]: Connecting to …
[3976068.963000]: Connected!
[3976068.963000]: Authenticating…
[3976069.001000]: Authenticated!
./ line 7: 22669 Segmentation fault ./thinger

Many Thanks for your Inputs


Any News on that? Do you need more Information and which one?

Hello @SecureXperts,

Unfortunately I’m not sure about what is happening here, maybe the RAM memory is overloaded. Have you tried with a shorter file or implementing less output keys in order to check that possibility?

Best regards