[genivi-dlt] Antwort: AW: Problem with DLT Viewer v2.17.0

Sascha.Philipp at continental-corporation.com Sascha.Philipp at continental-corporation.com
Wed May 4 06:00:04 EDT 2016


Hello Alex,

no, I have no final solution for the problem. My workaround currently is 
just to comment out the block 

    if(file->map_ != nullptr )
    {
        /* copy from mmap'ed file */
        auto ptr = (const char*)(file->map_ + positionForIndex);

        /* calculate message size */
        auto size = index == (file->indexAll.size()-1) ? 
file->infile.size() - positionForIndex : const_file->indexAll[index+1] - 
positionForIndex;
        buf = QByteArray(ptr, size);
    }
    else

in the function getMsg(). This will ensure that in all cases the content 
is read from the file instead of using the map_ content and the exception 
doesn't occur anymore.


Mit freundlichen Grüßen / Best regards,


Sascha Philipp
Software Architect 
Division Interior - I IC RD SW SSW

Besucheradresse / Visitor address:
Continental Automotive GmbH
Philipsstrasse 1, D-35576 Wetzlar

Rechnungsadresse / Invoice address:
Continental Automotive GmbH
Postfach 1440, D-35573 Wetzlar

Tel.:   +49 6441 370-8270
Fax:    +49 6441 37013-8270
E-Mail: Sascha.Philipp at continental-corporation.com


http://www.continental-corporation.com
________________________________________________________________________

Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover 
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut 
Matschi 
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann 
Sitz der Gesellschaft/Registered Office: Hannover 
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
USt.-ID-Nr./VAT-ID-No. DE814950663 
________________________________________________________________________

Proprietary and confidential. Distribution only by express authority of
Continental AG or its subsidiaries.



Von:    <Alexander.AW.Wenzel at bmw.de>
An:     <Sascha.Philipp at continental-corporation.com>, 
<genivi-diagnostic-log-and-trace at lists.genivi.org>, 
Datum:  03.05.2016 19:29
Betreff:        AW: [genivi-dlt] Problem with DLT Viewer v2.17.0



Hello Sascha,
 
I have seen a similar issue. When pressing several times “Save As” 
messages are displayed as corrupted, when receiving messages at the same 
time. Reloading the file shows the messages correctly again. I see in the 
source code, that the map is not updated, when new messages are added, 
perhaps this is the issue.
 
Do you have any news regarding this issue in the meantime?
 
I will rollback this change and look if it helps.
 
Best regards
 
   Alex
 
-- 
BMW Group
Alexander Wenzel
Architect. Connected Drive, I and C Syst.

Postanschrift:
80788 München

Tel: +49-89-382-54199
Mail: alexander.aw.wenzel at bmw.de
Web: http://www.bmwgroup.com/
--------------------------------------------------------------------
Bayerische Motoren Werke Aktiengesellschaft
Vorstand: Harald Krüger (Vorsitzender),
Milagros Caiña Carreiro-Andree, Klaus Draeger,
Friedrich Eichiner, Klaus Fröhlich, Ian Robertson,
Peter Schwarzenbauer, Oliver Zipse.
Vorsitzender des Aufsichtsrats: Norbert Reithofer
Sitz und Registergericht: München HRB 42243
--------------------------------------------------------------------
Von: genivi-diagnostic-log-and-trace-bounces at lists.genivi.org [
mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org] Im 
Auftrag von Sascha.Philipp at continental-corporation.com
Gesendet: Dienstag, 29. März 2016 13:05
An: genivi-diagnostic-log-and-trace at lists.genivi.org
Betreff: [genivi-dlt] Problem with DLT Viewer v2.17.0
 
Hello DLT community, 

I've tested the DLT Viewer 2.17.0 and have a problem when saving a DLT 
file while the DLT Viewer is still connected. In this case I get a SIGSEGV 
in line 386 of file qdltfile.cpp (function QDltFile::getMsg(), statement "
buf = QByteArray(ptr, size);"). 

The problem was introduced with commit ID 
"f8fa0633e0103702283a470a3d5430a6d3452b5a" ("Added UTF8, C++11 Features 
and Filemap"). Without this commit everything works fine. 

I am using QT 5.5.0 64bit, compiled it with MinGW and tested it under 
Windows. 

Does anybody has a solution for that or a hint what might be wrong? 

Mit freundlichen Grüßen / Best regards, 


Sascha Philipp 
Software Architect 
Division Interior - I IC RD SW SSW 

Besucheradresse / Visitor address: 
Continental Automotive GmbH 
Philipsstrasse 1, D-35576 Wetzlar 

Rechnungsadresse / Invoice address: 
Continental Automotive GmbH 
Postfach 1440, D-35573 Wetzlar 

Tel.:         +49 6441 370-8270 
Fax:         +49 6441 37013-8270 
E-Mail: Sascha.Philipp at continental-corporation.com 



http://www.continental-corporation.com


________________________________________________________________________

Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut 
Matschi
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann
Sitz der Gesellschaft/Registered Office: Hannover
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424, 
USt.-ID-Nr./VAT-ID-No. DE814950663 
________________________________________________________________________

Proprietary and confidential. Distribution only by express authority of 
Continental AG or its subsidiaries.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160504/e7d59803/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3679 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160504/e7d59803/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3679 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160504/e7d59803/attachment-0001.jpe>


More information about the genivi-diagnostic-log-and-trace mailing list