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

Crash assertion "worklet != nullptr" failed on Android #603

Closed
tomekzaw opened this issue Jan 30, 2025 · 1 comment
Closed

Crash assertion "worklet != nullptr" failed on Android #603

tomekzaw opened this issue Jan 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@tomekzaw
Copy link
Collaborator

tomekzaw commented Jan 30, 2025

59e749c + Android

/Users/tomekzaw/Expensify/react-native-live-markdown/cpp/MarkdownGlobal.cpp:40: std::shared_ptr<ShareableWorklet> expensify::livemarkdown::getMarkdownWorklet(const int): assertion "worklet != nullptr" failed
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 22775 (markdownexample), pid 22775 (markdownexample)
Cmdline: com.expensify.livemarkdownexample
pid: 22775, tid: 22775, name: markdownexample  >>> com.expensify.livemarkdownexample <<<
      #02 pc 0000000000013164  /data/app/~~MispvK3J_7L0wdAZZX5RYw==/com.expensify.livemarkdownexample-jD7x8UJ0BepnSUz31hf3lw==/base.apk!liblivemarkdown.so (offset 0x1058000) (BuildId: e3439302a5be4065b1b80669296cabc02fdb1e09)
      #03 pc 000000000000e900  /data/app/~~MispvK3J_7L0wdAZZX5RYw==/com.expensify.livemarkdownexample-jD7x8UJ0BepnSUz31hf3lw==/base.apk!liblivemarkdown.so (offset 0x1058000) (BuildId: e3439302a5be4065b1b80669296cabc02fdb1e09)
      #04 pc 0000000000010730  /data/app/~~MispvK3J_7L0wdAZZX5RYw==/com.expensify.livemarkdownexample-jD7x8UJ0BepnSUz31hf3lw==/base.apk!liblivemarkdown.so (offset 0x1058000) (BuildId: e3439302a5be4065b1b80669296cabc02fdb1e09)
      #05 pc 00000000000105ac  /data/app/~~MispvK3J_7L0wdAZZX5RYw==/com.expensify.livemarkdownexample-jD7x8UJ0BepnSUz31hf3lw==/base.apk!liblivemarkdown.so (offset 0x1058000) (BuildId: e3439302a5be4065b1b80669296cabc02fdb1e09)
      #06 pc 000000000000f2ac  /data/app/~~MispvK3J_7L0wdAZZX5RYw==/com.expensify.livemarkdownexample-jD7x8UJ0BepnSUz31hf3lw==/base.apk!liblivemarkdown.so (offset 0x1058000) (BuildId: e3439302a5be4065b1b80669296cabc02fdb1e09)

Repro:

+const parser = (markdown: string) => {
+    'worklet';
+    return parseExpensiMark(markdown);
+  };

-        parser={parseExpensiMark}
+        parser={parser}

Related issue: Expensify/App#55195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant