Error when upgrading from Expo SDK 42 > 44 - JavaScript heap out of memory

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): iOS

Hey,

I’m getting the following error when trying to upgrade from SDK 42 > 44:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

It fails when trying to upgrade it from 42 > 43 as well with the same error.

This is the output when running diagnostics:

Expo CLI 5.0.3 environment info:
    System:
      OS: macOS 12.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.18.3 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.15 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.9.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6858069
      Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
    npmPackages:
      babel-preset-expo: 9.0.1 => 9.0.1 
      expo: ^44.0.0 => 44.0.5 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: ~0.63.4 => 0.63.4 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages:
      expo-cli: 5.0.3
    Expo Workflow: bare

Hey @navidnayeri, is this occurring when running expo upgrade or when running expo start after upgrading the SDK?

Cheers,
Adam

Hey,

Sorry for the late reply.

It was occurring when doing expo upgrade as well as expo start, however when deleting the yarn.lock file and doing another expo upgrade it seemed to work directly after.

I’m having issues with android reanimated though, the app crashes with the following exception:

java.lang.NullPointerException: Attempt to invoke interface method 'boolean abi44_0_0.host.exp.exponent.modules.api.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEnabled()' on a null object reference

The SDK version is 44 and the reanimated version is 2.3.1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.