Skip to content

NWNX Crash due to characters in a NUI Field #1870

@cxevan7

Description

@cxevan7

Getting this error, at first glance it looks like maybe it's related to invalid characters in a NUI field?

terminate called after throwing an instance of 'nlohmann::detail::type_error'
  what():  [json.exception.type_error.316] invalid UTF-8 byte at index 14: 0xFE
 NWNX Signal Handler:
==============================================================
 NWNX 8193.37-13 () has crashed. Fatal error: Program aborted (6).
 Please file a bug at https://github.com/nwnxee/unified/issues
==============================================================
  Backtrace:
    /home/haze/nwnx/Binaries/NWNX_Core.so(_ZN7NWNXLib8Platform13GetStackTraceB5cxx11Eh+0x4a) [0x7f2dbe24620a]
    /home/haze/nwnx/Binaries/NWNX_Core.so(nwnx_signal_handler+0xcf) [0x7f2dbe1f0b7f]
    /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10) [0x7f2dbcea3f10]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7f2dbcea3e87]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7f2dbcea57f1]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957) [0x7f2dbd898957]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92ae6) [0x7f2dbd89eae6]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92b21) [0x7f2dbd89eb21]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d54) [0x7f2dbd89ed54]
    ./nwserver-linux(_ZN8nlohmann6detail10serializerINS_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerES4_IhSaIhEEEEE12dump_escapedERKSA_b+0x870) [0x559ef7afa9f0]
    ./nwserver-linux(_ZN8nlohmann6detail10serializerINS_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerES4_IhSaIhEEEEE4dumpERKSE_bbjj+0x3d4) [0x559ef7afd404]
    ./nwserver-linux(_ZN8nlohmann6detail10serializerINS_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerES4_IhSaIhEEEEE4dumpERKSE_bbjj+0x33e) [0x559ef7afd36e]
    ./nwserver-linux(_ZN8nlohmann6detail10serializerINS_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerES4_IhSaIhEEEEE4dumpERKSE_bbjj+0xb60) [0x559ef7afdb90]
    ./nwserver-linux(_ZN11CNWSMessage28HandlePlayerToServerNuiEventEP10CNWSPlayerh+0x677) [0x559ef7d6f157]
    ./nwserver-linux(_ZN11CNWSMessage27HandlePlayerToServerMessageEjPhj+0x3f1) [0x559ef7d70f51]
    /home/haze/nwnx/Binaries/NWNX_Profiler.so(_ZN8Profiler11NetMessages31HandlePlayerToServerMessageHookEP11CNWSMessagejPhj+0x801) [0x7f2dad13ec51]
    ./nwserver-linux(_ZN21CServerExoAppInternal13HandleMessageEjPhj+0x7b0) [0x559ef7cfd430]
    ./nwserver-linux(_ZN17CNetLayerInternal17UncompressMessageEjPhj+0x19e) [0x559ef799465e]
    ./nwserver-linux(_ZN15CNetLayerWindow23UnpacketizeFullMessagesEi+0x55a) [0x559ef799578a]
    ./nwserver-linux(_ZN17CNetLayerInternal21ProcessReceivedFramesEi+0x4ad) [0x559ef79b21ed]

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