{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/metro/issues/255","repository_url":"https://api.github.com/repos/facebook/metro","labels_url":"https://api.github.com/repos/facebook/metro/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/facebook/metro/issues/255/comments","events_url":"https://api.github.com/repos/facebook/metro/issues/255/events","html_url":"https://github.com/facebook/metro/issues/255","id":360858730,"node_id":"MDU6SXNzdWUzNjA4NTg3MzA=","number":255,"title":"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory","user":{"login":"Christian-Athom","id":39825539,"node_id":"MDQ6VXNlcjM5ODI1NTM5","avatar_url":"https://avatars3.githubusercontent.com/u/39825539?v=4","gravatar_id":"","url":"https://api.github.com/users/Christian-Athom","html_url":"https://github.com/Christian-Athom","followers_url":"https://api.github.com/users/Christian-Athom/followers","following_url":"https://api.github.com/users/Christian-Athom/following{/other_user}","gists_url":"https://api.github.com/users/Christian-Athom/gists{/gist_id}","starred_url":"https://api.github.com/users/Christian-Athom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Christian-Athom/subscriptions","organizations_url":"https://api.github.com/users/Christian-Athom/orgs","repos_url":"https://api.github.com/users/Christian-Athom/repos","events_url":"https://api.github.com/users/Christian-Athom/events{/privacy}","received_events_url":"https://api.github.com/users/Christian-Athom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-17T13:01:55Z","updated_at":"2018-09-23T21:37:00Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\nBUG\r\n\r\n**What is the current behavior?**\r\nWhen bundling for debug, the Metro bundler will crash with: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory. The project contains a lot of images and JS files\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\nThe project can be considered as a large project with with a lot of images and JS files. When using react native 0.56, the bundling would take +/- 20-30 seconds with the same project.\r\n\r\n**What is the expected behavior?**\r\nTheMetro bundler should not choke on projects with lots of images\r\n\r\n**Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.**\r\n\r\nMetro 0.45.3\r\nNode 8.11.3\r\n\r\n React Native Environment Info:\r\n    System:\r\n      OS: macOS High Sierra 10.13.6\r\n      CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz\r\n      Memory: 745.65 MB / 16.00 GB\r\n      Shell: 3.2.57 - /bin/bash\r\n    Binaries:\r\n      Node: 8.11.3 - ~/.nvm/versions/node/v8.11.3/bin/node\r\n      npm: 5.6.0 - ~/.nvm/versions/node/v8.11.3/bin/npm\r\n      Watchman: 4.9.0 - /usr/local/bin/watchman\r\n    SDKs:\r\n      iOS SDK:\r\n        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3\r\n      Android SDK:\r\n        Build Tools: 27.0.3, 28.0.0\r\n        API Levels: 23, 25, 26, 27, 28\r\n    IDEs:\r\n      Android Studio: 3.1 AI-173.4819257\r\n      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild\r\n    npmPackages:\r\n      react: ^16.5 => 16.5.1 \r\n      react-native: ^0.57.0 => 0.57.0 \r\n    npmGlobalPackages:\r\n      react-native-cli: 2.0.1\r\n      react-native-git-upgrade: 0.2.7\r\n      react-native-rename: 2.2.2\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/metro/issues/comments/423849764","html_url":"https://github.com/facebook/metro/issues/255#issuecomment-423849764","issue_url":"https://api.github.com/repos/facebook/metro/issues/255","id":423849764,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzg0OTc2NA==","user":{"login":"rafeca","id":408035,"node_id":"MDQ6VXNlcjQwODAzNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/408035?v=4","gravatar_id":"","url":"https://api.github.com/users/rafeca","html_url":"https://github.com/rafeca","followers_url":"https://api.github.com/users/rafeca/followers","following_url":"https://api.github.com/users/rafeca/following{/other_user}","gists_url":"https://api.github.com/users/rafeca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafeca/subscriptions","organizations_url":"https://api.github.com/users/rafeca/orgs","repos_url":"https://api.github.com/users/rafeca/repos","events_url":"https://api.github.com/users/rafeca/events{/privacy}","received_events_url":"https://api.github.com/users/rafeca/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T21:37:00Z","updated_at":"2018-09-23T21:37:00Z","author_association":"MEMBER","body":"@jkimbo oh that's actually an issue on the transformer. Do you want to send a PR to fix it?"}}
{"actor":{"display_login":"rafeca"}}