Skip to content

when log4qtd is lanuched in debug mode,exception will occurred #78

@jk553633

Description

@jk553633

qt 5.12.6

demo url: https://github.com/jk553633/Log4qtDemo

1 QVariant::QVariant Qt5Cored 0x7ffd6026b95d
2 QVariant::QVariant Qt5Cored 0x7ffd60455d11
3 Log4Qt::operator<< logerror.cpp 166 0x7ffdae19bdbc
4 QtMetaTypePrivate::QMetaTypeFunctionHelperLog4Qt::LogError,1::Save qmetatype.h 811 0x7ffdae19ab6d
5 QVariant::QVariant Qt5Cored 0x7ffd606cd30a
6 qt_plugin_instance qmldbg_debuggerd 0x7ffdacc9b493
7 qt_plugin_instance qmldbg_debuggerd 0x7ffdacc99997
8 qt_plugin_instance qmldbg_debuggerd 0x7ffdacc98149
9 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca11e9
10 qt_plugin_instance qmldbg_debuggerd 0x7ffdacc9cda7
11 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca33ce
12 QVariant::QVariant Qt5Cored 0x7ffd606ca968
13 QVariant::QVariant Qt5Cored 0x7ffd607089de
14 QVariant::QVariant Qt5Cored 0x7ffd60708288
15 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca6de4
16 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca739a
17 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca6ec3
18 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca6a6c
19 qt_plugin_instance qmldbg_debuggerd 0x7ffdacc976d7
20 qt_plugin_instance qmldbg_debuggerd 0x7ffdacca125e
... <更多>

logerror.h line 158
#ifndef QT_NO_DATASTREAM
QDataStream &operator<<(QDataStream &out,
const LogError &logError)
{
// version
quint16 version = 0;
out << version;
// version 0 data
out << logError.mCode
<< logError.mContext
<< logError.mMessage
<< logError.mSymbol
<< logError.mArgs
<< logError.mCausingErrors;

return out;

}


Exception Triggered

The inferior stopped because it triggered an exception.

Stopped in thread 0 by: Exception at 0x7ffd4c9ab95d, code: 0xc0000005: read access violation at: 0x4, flags=0x0 (first chance). --------------------------- OK ---------------------------

when log4qtd is lanuched in debug mode,exception will occurred at logerror.h line 166(out << logError.mCode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions