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){
    myfile.open("/var/log/thinger.txt", ofstream::out | ofstream::app);
    myfile << currentDateTime() << " | Start PV Thing: " << endl;
    getPVvalues();
    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;
    myfile.close();
};

This i sthe outpout on my Thinger Client console
root@tinker00001:/opt/PST-Smartcity/thinger_client# ./run.sh
– 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
– Performing Test COMPILER_SUPPORTS_CXX11 - Success
– Performing Test COMPILER_SUPPORTS_CXX0X
– Performing Test COMPILER_SUPPORTS_CXX0X - Success
– Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so (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
tinker00001
Got Device Information
Here we need to Configure Device Parameters depend on Config
[3976068.727000]: Not connected!
[3976068.728000]: Connecting to iotserver.pst-smartcity.ch:25202 …
[3976068.963000]: Connected!
[3976068.963000]: Authenticating…
[3976069.001000]: Authenticated!
1597408933.000000
10.000000
./run.sh: line 7: 22669 Segmentation fault ./thinger

Many Thanks for your Inputs

Roman

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