[Github-comments] [geany/geany] Special unicode emoji 👨‍💻 crashes Geany on backspace (#2642)

Jonathan Bradley Whited notifications at xxxxx
Thu Nov 5 18:30:42 UTC 2020


The ["Man Technologist"](https://emojipedia.org/man-technologist/) 👨‍💻 (UTF-8) emoji crashes Geany on backspace.

**To reproduce:**
1. Open Geany
2. Paste 👨‍💻 into a new document and save as "bug.txt"
3. Save the file
4. Try to delete the emoji with backspace
5. Should now crash

**To fix:**
- Delete the character with another editor (I used Gedit)

**Verbose messages:**
```
(geany:1034609): dconf-DEBUG: 02:17:05.307: change_fast
(geany:1034609): dconf-DEBUG: 02:17:05.307: change_notify: /org/gtk/settings/file-chooser/window-position
Geany-INFO: 02:17:15.744: /home/name/Documents/bug.txt : None (UTF-8)
Geany-INFO: 02:17:15.746: /home/name/Documents/bug.txt : None (UTF-8)
(geany:1034609): dconf-DEBUG: 02:17:15.752: change_fast
(geany:1034609): dconf-DEBUG: 02:17:15.753: change_notify: /org/gtk/settings/file-chooser/
/usr/include/c++/10/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
Aborted (core dumped)
```

**Environment:**
- Geany 1.36 (built on 2020-05-24 with GTK 3.24.20, GLib 2.64.3)
- Linux 5.8.14-200.fc32.x86_64 # 1 SMP Wed Oct 7 14:47:56 UTC 2020 x86_64 GNU/Linux
- Fedora 32


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2642
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201105/9d193aee/attachment-0001.htm>


More information about the Github-comments mailing list