Skip to content

Isolate compute crash when TextPaint layout #22478

@openproject

Description

@openproject

Steps to Reproduce

    // compute page
    List<IsolatePage> isolatePageList = await compute(IsolatePageParse.parseIsolatePages, IsolatePageParse.PageParserArgs(widget.content, pageWidth, pageHeight));

when has the compute function has the code below will crash:

  textPainter.text = TextSpan(text: "中", style: TextStyle(fontSize: FONT_SIZE, height: FONT_HEIGHT));
  textPainter.layout(maxWidth: contentWidth); // this line cause the crash

Logs

Syncing files to device Android SDK built for x86...
I/flutter ( 6932): build page width: 384.0
D/        ( 6932): HostConnection::get() New Host Connection established 0xdf15eb00, tid 6951
D/EGL_emulation( 6932): eglMakeCurrent: 0xdf75d860: ver 2 0 (tinfo 0xde4aeba0)
F/libc    ( 6932): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 6964 (rtxtviewexample), pid 6932 (rtxtviewexample)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.012/4923214:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 6932, tid: 6964, name: rtxtviewexample  >>> com.jayfeng.txtview.fluttertxtviewexample <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    eax 00000000  ebx cc921f84  ecx 00000001  edx be9bf970
    edi 00000186  esi be9beb48
    ebp be9beab8  esp be9be9d0  eip cbf1d601
backtrace:
    #00 pc 006da601  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #01 pc 006da44e  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #02 pc 006dae16  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #03 pc 006da2b7  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #04 pc 00ca74ed  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #05 pc 00ca7353  /data/app/com.jayfeng.txtview.fluttertxtviewexample-VEamvLU0tyO3_Hcv2-uCgA==/lib/x86/libflutter.so (offset 0x697000)
    #06 pc 000007d6  <anonymous:ca400000>
Lost connection to device.
[✓] Flutter (Channel beta, v0.8.2, on Linux, locale en_US.UTF-8)
    • Flutter version 0.8.2 at /home/jay/tools/flutter
    • Framework revision 5ab9e70727 (3 weeks ago), 2018-09-07 12:33:05 -0700
    • Engine revision 58a1894a1c
    • Dart version 2.1.0-dev.3.1.flutter-760a9690c2

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoledependency: dartDart team may need to help uswaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions