Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geany 1.26 crashes on Mac Os X opening text file with Unicode emojis #771

Closed
lucasvieites opened this issue Nov 24, 2015 · 8 comments
Closed

Comments

@lucasvieites
Copy link
Contributor

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
geany_1.26_crash_with_emoticons.txt
emoticons_txt

@b4n b4n added the macos label Nov 24, 2015
@b4n
Copy link
Member

b4n commented Nov 24, 2015

Work for me under Debian GNU/Linux, so it must depend on some OSX specifics.

@elextr
Copy link
Member

elextr commented Nov 24, 2015

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

@codebrainz
Copy link
Member

@lucasvieites are you using the bundle from here or have you installed with a package manager/compiled from source?

@lucasvieites
Copy link
Contributor Author

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

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

@techee
Copy link
Member

techee commented Mar 8, 2016

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

@techee
Copy link
Member

techee commented Mar 13, 2016

@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.

@lucasvieites
Copy link
Contributor Author

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.

@lucasvieites
Copy link
Contributor Author

Confirmed as fixed in Geany 1.27 on MacOS X.

Thank you all for the work.

Lucas Vieites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants