FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

Hi guys, I have a project from expo eject and I trying build my apk, after expo build:android -t apk when my bundle progress is 94% show me this error: expo-cli: 4.3.2

my package.json:

{
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "test": "jest --watchAll",
    "watch-need-help": "echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches  && echo 999999 | sudo tee -a  /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee  -a /proc/sys/fs/inotify/max_user_instances && watchman  shutdown-server"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^12.0.2",
    "@react-native-community/art": "^1.2.0",
    "@react-native-community/async-storage": "^1.12.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-firebase/app": "^10.5.0",
    "@react-navigation/bottom-tabs": "^5.11.1",
    "@react-navigation/drawer": "^5.12.3",
    "@react-navigation/native": "^5.8.9",
    "@react-navigation/stack": "^5.14.2",
    "axios": "^0.21.1",
    "expo": "~40.0.0",
    "expo-asset": "~8.2.1",
    "expo-av": "^9.0.0",
    "expo-constants": "~9.3.0",
    "expo-file-system": "^10.0.0",
    "expo-image-manipulator": "~8.4.0",
    "expo-image-picker": "^9.2.1",
    "expo-linear-gradient": "^8.3.1",
    "expo-linking": "~2.0.0",
    "expo-location": "~9.0.0",
    "expo-notifications": "~0.8.2",
    "expo-permissions": "~10.0.0",
    "expo-splash-screen": "~0.8.1",
    "expo-status-bar": "~1.0.3",
    "expo-task-manager": "~8.5.0",
    "expo-updates": "^0.4.1",
    "expo-web-browser": "~8.6.0",
    "lottie-react-native": "^3.5.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-animatable": "^1.3.3",
    "react-native-animated-image-list": "^1.0.3",
    "react-native-background-timer": "^2.4.1",
    "react-native-elements": "^3.1.0",
    "react-native-flash-message": "^0.1.18",
    "react-native-gesture-handler": "~1.8.0",
    "react-native-gifted-chat": "^0.16.3",
    "react-native-maps": "^0.27.1",
    "react-native-otp-field": "^0.0.11",
    "react-native-phone-number-input": "^2.0.0",
    "react-native-reanimated": "~1.9.0",
    "react-native-redash": "14.0.4",
    "react-native-safe-area-context": "3.1.9",
    "react-native-screens": "~2.15.0",
    "react-native-svg": "^12.1.0",
    "react-native-unimodules": "~0.12.0",
    "react-native-web": "~0.13.12",
    "shorthash": "^0.0.2",
    "socket.io-client": "^3.0.5",
    "yarn": "^1.22.10"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "@types/react": "~16.9.35",
    "@types/react-native": "~0.63.2",
    "babel-jest": "~25.2.6",
    "jest": "^26.6.3",
    "jest-expo": "~40.0.0",
    "react-test-renderer": "~16.13.1",
    "typescript": "~4.0.0"
  },
  "private": true,
  "name": "psycho",
  "version": "1.0.0"
}

this error is coming from metro. you might be able to find helpful advice on the metro issues: Issues · facebook/metro · GitHub

I check it before but they using xcode right?
my app/build.gradle is the same:

project.ext.react = [
    enableHermes: false,
    nodeExecutableAndArgs: ["node", "--max-old-space-size=8192"]
]

I tried create a new expo init → expo eject → copy my package.json → yarn install and build the apk, but not return any error so not is my libs.

it could be your assets / project source

where? just splash on assets

Hey @thomasreolon, if I’m following along correctly you should no longer be using expo build as you have ejected your project to the Bare workflow. At this point you’ll need to build via Android Studio or by using EAS.

1 Like

√ Build for platforms » Android √ Linked to project @thomasreolon/infor Your account doesn’t have access to Expo Application Services (EAS) features. Enroll in EAS to give it a try: EAS — Feature Preview

I tried with android studio but return me this error:

I saw on a forum to solve from: File > Project Structure > Modules > Inherit Project compile output path to Use module compile output path, it solved but return a new error:
abcde

I solved following this instructions: Generating Signed APK · React Native
and
cmd → gradlew assembleRelease

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