Skip to content

Flutter aborted in FontCollection::GetMinikinFontCollectionForFamilies on iOS #72062

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

Closed
liguisheng opened this issue Dec 10, 2020 · 5 comments
Closed
Labels
c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list

Comments

@liguisheng
Copy link

liguisheng commented Dec 10, 2020

stack trace:

Incident Identifier: F4B122A2-3112-4179-A94E-80C11B3D9BD8
CrashReporter Key:   KSCrash
Hardware Model:      iPhone8,2
Process:             LTao4iPhone [12835]
Path:                /private/var/containers/Bundle/Application/2682A0AD-4307-4DDD-85B4-C00BC40001F0/LTao4iPhone.app/LTao4iPhone
Version:             13991757 (3.28.999.2)
Code Type:           ARM-64
Parent Process:      ? [1]

Date/Time:           2020-10-27 13:15:47 +0800
OS Version:          iOS 14.0.1 (18A393)
Report Version:      104

Exception Type:  SIGABRT
Exception Codes: 0x0 at 0x00000001ae02695c
Triggered by Thread:  65


Thread 65 Crashed:
0   libsystem_kernel.dylib          0x00000001ae02695c __pthread_kill
1   libsystem_c.dylib               0x000000018c40a934 _abort
2   Flutter                         0x0000000107010600 fml::LogMessage::~LogMessage() logging.cc
3   Flutter                         0x00000001072f9458 txt::FontCollection::GetMinikinFontCollectionForFamilies(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) FontCollection.cpp
4   Flutter                         0x0000000107307634 txt::ParagraphTxt::GetMinikinFontCollectionForStyle(txt::TextStyle const&) paragraph_txt.cc
5   Flutter                         0x00000001072ff92c txt::ParagraphTxt::Layout(double)
6   Flutter                         0x0000000107036600 flutter::Paragraph_layout(_Dart_NativeArguments*) paragraph.cc
7   Flutter                         0x0000000107466f44 dart::NativeEntry::AutoScopeNativeCallWrapperNoStackCheck(_Dart_NativeArguments*, void (*)(_Dart_NativeArguments*)) native_entry.cc
8   Flutter                         0x0000000107466d58 dart::NativeEntry::LinkNativeCall(_Dart_NativeArguments*) native_entry.cc
9   App                             0x00000001060a30d0 0x0000000106098000 + 45264
10  App                             0x000000010610f9cc 0x0000000106098000 + 489932
11  App                             0x00000001062d9cf4 0x0000000106098000 + 2366708
12  App                             0x00000001067d13f4 0x0000000106098000 + 7574516
13  App                             0x00000001067f279c 0x0000000106098000 + 7710620
14  App                             0x00000001065c262c 0x0000000106098000 + 5416492
15  App                             0x000000010614abe0 0x0000000106098000 + 732128
16  App                             0x00000001067d20b0 0x0000000106098000 + 7577776
17  App                             0x00000001067f279c 0x0000000106098000 + 7710620
18  App                             0x00000001065c262c 0x0000000106098000 + 5416492
19  App                             0x000000010614ad34 0x0000000106098000 + 732468
20  App                             0x000000010614f490 0x0000000106098000 + 750736
21  App                             0x0000000106149f08 0x0000000106098000 + 728840
22  App                             0x00000001061552e4 0x0000000106098000 + 774884
23  App                             0x000000010614c02c 0x0000000106098000 + 737324
24  App                             0x00000001061228d0 0x0000000106098000 + 567504
25  App                             0x0000000106147dbc 0x0000000106098000 + 720316
26  App                             0x00000001061568a4 0x0000000106098000 + 780452
27  App                             0x000000010614a400 0x0000000106098000 + 730112
28  App                             0x00000001067dbec0 0x0000000106098000 + 7618240
29  App                             0x00000001060c2d08 0x0000000106098000 + 175368
30  App                             0x00000001060c2f60 0x0000000106098000 + 175968
31  App                             0x00000001065ec694 0x0000000106098000 + 5588628
32  App                             0x00000001060c1fb4 0x0000000106098000 + 171956
33  App                             0x00000001060c58d0 0x0000000106098000 + 186576
34  App                             0x00000001060c247c 0x0000000106098000 + 173180
35  App                             0x00000001067d080c 0x0000000106098000 + 7571468
36  App                             0x00000001067d088c 0x0000000106098000 + 7571596
37  App                             0x00000001067f279c 0x0000000106098000 + 7710620
38  App                             0x00000001067e3c04 0x0000000106098000 + 7650308
39  App                             0x00000001060c2d08 0x0000000106098000 + 175368
40  App                             0x00000001060c2f60 0x0000000106098000 + 175968
41  App                             0x00000001065ec694 0x0000000106098000 + 5588628
42  App                             0x00000001060c1fb4 0x0000000106098000 + 171956
43  App                             0x00000001060c58d0 0x0000000106098000 + 186576
44  App                             0x00000001067e3cbc 0x0000000106098000 + 7650492
45  App                             0x00000001067f279c 0x0000000106098000 + 7710620
46  App                             0x00000001067dd2f4 0x0000000106098000 + 7623412
47  App                             0x00000001067f27fc 0x0000000106098000 + 7710716
48  App                             0x00000001060cbfc8 0x0000000106098000 + 212936
49  App                             0x00000001060a2de4 0x0000000106098000 + 44516
50  Flutter                         0x0000000107454774 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) dart_entry.cc
51  Flutter                         0x000000010745ac70 dart::IsolateMessageHandler::HandleMessage(std::__1::unique_ptr<dart::Message, std::__1::default_delete<dart::Message> >) dart_entry.cc
52  Flutter                         0x0000000107465df0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) message_handler.cc
53  Flutter                         0x00000001072e8d48 std::__1::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::__1::allocator<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0>, void ()()>::operator()() message_handler.cc
54  Flutter                         0x00000001070124a4 fml::MessageLoopImpl::FlushTasks(fml::FlushType) functional
55  Flutter                         0x000000010701410c fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) message_loop_impl.cc
56  CoreFoundation                  0x0000000183740a30 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
57  CoreFoundation                  0x0000000183740634 __CFRunLoopDoTimer
58  CoreFoundation                  0x000000018373fb14 __CFRunLoopDoTimers
59  CoreFoundation                  0x0000000183739eb0 __CFRunLoopRun
60  CoreFoundation                  0x0000000183739200 _CFRunLoopRunSpecific
61  Flutter                         0x0000000107013fe8 fml::MessageLoopDarwin::Run() message_loop_darwin.mm
62  Flutter                         0x00000001070139b4 _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3fml6ThreadC1ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0EEEEEPvSJ_ message_loop_impl.cc
63  libsystem_pthread.dylib         0x00000001c9066b70 _pthread_start
64  libsystem_pthread.dylib         0x00000001c906b880 _thread_start

@darshankawar
Copy link
Member

darshankawar commented Dec 10, 2020

@liguisheng
Can you provide flutter doctor -v on which the crash is occuring ? I presume this is coming from production. Is there anyway to get a reproducible use case ?

@darshankawar darshankawar added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Dec 10, 2020
@liguisheng
Copy link
Author

liguisheng commented Dec 10, 2020

@darshankawar

flutter version stable/v1.17.5

flutter doctor -v
[✓] Flutter (Channel xxxxxxxxxxxxxxxxx, v1.17.0-4.0.pre.48, on macOS 11.0.1 20B29, locale zh-Hans)
• Flutter version 1.17.0-4.0.pre.48 at /Users/xxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxx
• Framework revision 306b839356 (4 hours ago), 2020-12-10 17:03:40 +0800
• Engine revision 749af7686c
• Dart version 2.8.4

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 10, 2020
@liguisheng liguisheng changed the title Flutter abort in FontCollection::GetMinikinFontCollectionForFamilies on iOS Flutter aborted in FontCollection::GetMinikinFontCollectionForFamilies on iOS Dec 10, 2020
@jason-simmons
Copy link
Member

Can you provide an example Flutter application that reproduces this crash?

It looks like this crash involves assertion failures in the Minikin FontCollection constructor. Is there a specific font family that causes this failure?

@chinmaygarde chinmaygarde added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list c: crash Stack traces logged to the console labels Dec 10, 2020
@liguisheng
Copy link
Author

liguisheng commented Dec 11, 2020

@jason-simmons

this crash on alibaba "com.taobao.special" app of onlined version, sometimes but not often;

image

image

image

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 11, 2020
@darshankawar darshankawar added passed first triage and removed in triage Presently being triaged by the triage team labels Dec 11, 2020
@github-actions
Copy link

github-actions bot commented Aug 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list
Projects
None yet
Development

No branches or pull requests

4 participants