react-native-community / jsc-android-buildscripts

Script for building JavaScriptCore for Android (for React Native but not only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash in DateTimeFormat (2.18.2,8.0.0_r34,i18n)

DanielZlotin opened this issue · comments

Issue Description

In the measure app:

      const opts = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
      const date = new Date();
      const he = date.toLocaleDateString('he', opts);

Crashes:

         AndroidRuntime  E  FATAL EXCEPTION: mqt_native_modules
                         E  Process: com.javascriptcore.profiler, PID: 32127
                         E  com.facebook.react.common.JavascriptException: failed to initialize DateTimeFormat, stack:
                         E  value@13:525
                         E  value@205:621
                         E  close@204:270
                         E  closeAll@190:1249
                         E  perform@190:683
                         E  a@182:234
                         E  perform@190:596
                         E  renderComponent@182:1123
                         E  r@360:116
                         E  runApplication@357:1951
                         E  value@44:2877
                         E  <unknown>@44:818
                         E  value@44:2278
                         E  value@44:790
                         E      at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:99)
                         E      at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:83)
                         E      at java.lang.reflect.Method.invoke(Native Method)
                         E      at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:368)
                         E      at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:138)
                         E      at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
                         E      at android.os.Handler.handleCallback(Handler.java:790)
                         E      at android.os.Handler.dispatchMessage(Handler.java:99)
                         E      at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
                         E      at android.os.Looper.loop(Looper.java:164)
                         E      at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208)
                         E      at java.lang.Thread.run(Thread.java:764)

Version, config, any additional info

224109.0.0

  "config": {
    "webkitGTK": "2.18.2",
    "androidICU": "8.0.0_r34",
    "i18n": true
  }

Hi, same problem is in r232709 (2.20.3) I think this is problem with ICU linking \ bundling \ building