PcbNew crashes when adding unicode character

Bug #1803131 reported by Enrico on 2018-11-13
This bug report is a duplicate of:  Bug #1798144: Eeschema allows invalid text paste. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Undecided
Unassigned

Bug Description

I tried adding a unicode character to the silk screen (🗲, U+1F5F2). It is displayed correctly in the "Text"-tool but after hitting ok, PcbNew crashes completely with the following error:

pcbnew Error
Unhandled exception class: St12length_error
what: basic_string::_M_replace_aux

-----
Application: pcbnew
Version: 5.0.1-33cea8e~68~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-38-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Maciej Suminski (orsonmmz) wrote :

I cannot reproduce the problem with the current 5.0 and master branches. Just to be sure that I test the issue correctly, you simply create a text object and insert the unicode character there, is that correct?

Anyway, you should be aware that the pcbnew stroke font does not provide complete unicode character set, so more exotic characters will be replaced with question marks. This is the case with U+1F5F2.

Enrico (eatis) wrote :

Yes I know that not all characters are supported, I just gave it a try and PcbNew crashed. And yes, I select the F.Silk layer, click on "T" to add a new text, enter the character either by pasting or with U+1F5F2 and the moment i click on ok PcbNew crashes. Will add a screenshot. Could be possible that the issue is rather related to a library than to KiCad itself.

Jeff Young (jeyjey) wrote :

I can't reproduce this either (OSX), although I don't appear to have that character in the GUI font (it appears as a question-mark-in-a-box even in the dialog for me).

Seth Hillbrand (sethh) wrote :

I'm pretty sure that this is lp:1798144

Jeff Young (jeyjey) wrote :

Well, since we can't reproduce it anyway, I don't think it does any harm to go ahead and mark it as a duplicate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments