Hi, I'm having trouble opening a text file when it contains Unicode emoticons (or emojis, as you prefer). I am attaching a screenshot of how the file looks when opened in the Sublime Text editor (my backup editor, along with vim), a copy of the text file that crashes on my MacBook and the content of the report that it wants me to send to Apple (haha).
Kind regards, Lucas [emoticons.txt](https://github.com/geany/geany/files/42740/emoticons.txt) [geany_1.26_crash_with_emoticons.txt](https://github.com/geany/geany/files/42741/geany_1.26_crash_with_emoticons.t...) ![emoticons_txt](https://cloud.githubusercontent.com/assets/1646239/11368087/edb5fb98-92b7-11...)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771
Work for me under Debian GNU/Linux, so it must depend on some OSX specifics.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-159405757
The crash happened inside Pango getting a font metric, try another font to see if maybe something is unusual about this one.
Otherwise its a bug inside Scintilla and needs to be reported to that project www.scintilla.org
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-159428304
@lucasvieites are you using the bundle from [here](http://www.geany.org/Download/Releases) or have you installed with a package manager/compiled from source?
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-159449836
Hi, thanks for looking into this. @codebrainz: yes, I'm using the bundle from the download page. @elextr: good point, I was using Droid Sans Mono when it crashed like that. When I changed to Dejavu Sans Mono I got: ![emoticons_geany_dejavusansmono](https://cloud.githubusercontent.com/assets/1646239/11391448/d7a7971c-9352-11...)
I tried several other classic fonts like Courier New and Monaco, and they all crashed with similar dumps: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff8976b1b3 CFNumberGetValue + 131 1 libpangocairo-1.0.0.dylib 0x000000010fb39fe0 ct_font_descriptor_get_weight + 64 2 libpangocairo-1.0.0.dylib 0x000000010fb39c74 _pango_core_text_font_description_from_ct_font_descriptor + 68 3 libpangocairo-1.0.0.dylib 0x000000010fb3c3cf pango_cairo_core_text_font_describe_absolute + 15 4 libpangocairo-1.0.0.dylib 0x000000010fb36089 _pango_cairo_font_private_get_hex_box_info + 121 5 libpangocairo-1.0.0.dylib 0x000000010fb36b12 _pango_cairo_font_private_get_glyph_extents + 578 6 pango-basic-coretext.so 0x000000011175c78c basic_engine_shape + 1516 7 libpango-1.0.0.dylib 0x000000010fb60def _pango_engine_shape_shape + 47 8 libpango-1.0.0.dylib 0x000000010fb750a2 pango_shape_full + 194 9 libpango-1.0.0.dylib 0x000000010fb6c74d shape_run + 413 10 libpango-1.0.0.dylib 0x000000010fb6c0a8 process_item + 264 11 libpango-1.0.0.dylib 0x000000010fb6567f pango_layout_check_lines + 2319 12 libpango-1.0.0.dylib 0x000000010fb6913a pango_layout_get_iter + 186 13 libgeany.0.dylib 0x000000010f3d5c0c SurfaceImpl::MeasureWidths(Font&, char const*, int, float*) + 524 14 libgeany.0.dylib 0x000000010f42ac04 PositionCache::MeasureWidths(Surface*, ViewStyle const&, unsigned int, char const*, unsigned int, float*, Document*) + 964 15 libgeany.0.dylib 0x000000010f419322 EditView::LayoutLine(EditModel const&, int, Surface*, ViewStyle const&, LineLayout*, int) + 2306 16 libgeany.0.dylib 0x000000010f400ade Editor::WrapOneLine(Surface*, int) + 110 17 libgeany.0.dylib 0x000000010f3fe29e Editor::WrapLines(Editor::wrapScope) + 846 18 libgeany.0.dylib 0x000000010f40ff5a Editor::EnsureLineVisible(int, bool) + 42 19 libgeany.0.dylib 0x000000010f412c54 Editor::WndProc(unsigned int, unsigned long, long) + 8036 20 libgeany.0.dylib 0x000000010f3db39e ScintillaGTK::WndProc(unsigned int, unsigned long, long) + 238 21 libgeany.0.dylib 0x000000010f3aef95 sci_goto_pos + 53 22 libgeany.0.dylib 0x000000010f37ff30 editor_goto_pos + 96 23 libgeany.0.dylib 0x000000010f37594e document_open_file_full + 2574 24 libgeany.0.dylib 0x000000010f376725 document_open_files + 53
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-159528821
Will be fixed in 1.27 bundle using newer pango library which has this issue fixed. Corresponding bugzilla report
https://bugzilla.gnome.org/show_bug.cgi?id=736697
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-193983730
@lucasvieites Could you try with Geany 1.27? At least for me the crash is fixed. Another issue is the emoticons don't display correctly (I guess missing Unicode 8 support in some of the libraries used) but at least Geany shouldn't crash.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-196003341
Hi, this seems fixed in 1.27 on Linux. I'll try at work tomorrow on the MacBook I had issues with before and will update you with the results.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-196029466
Confirmed as fixed in Geany 1.27 on MacOS X.
Thank you all for the work.
Lucas Vieites
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/771#issuecomment-196335344
Closed #771.
--- 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/771#event-600842859
github-comments@lists.geany.org