{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/18261","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/18261/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/18261/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/18261/events","html_url":"https://github.com/facebook/react-native/issues/18261","id":303334557,"node_id":"MDU6SXNzdWUzMDMzMzQ1NTc=","number":18261,"title":"Segfault on <Image> load after a few hot reloads or manual reloads","user":{"login":"asciifaceman","id":1619591,"node_id":"MDQ6VXNlcjE2MTk1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1619591?v=4","gravatar_id":"","url":"https://api.github.com/users/asciifaceman","html_url":"https://github.com/asciifaceman","followers_url":"https://api.github.com/users/asciifaceman/followers","following_url":"https://api.github.com/users/asciifaceman/following{/other_user}","gists_url":"https://api.github.com/users/asciifaceman/gists{/gist_id}","starred_url":"https://api.github.com/users/asciifaceman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciifaceman/subscriptions","organizations_url":"https://api.github.com/users/asciifaceman/orgs","repos_url":"https://api.github.com/users/asciifaceman/repos","events_url":"https://api.github.com/users/asciifaceman/events{/privacy}","received_events_url":"https://api.github.com/users/asciifaceman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-08T02:35:00Z","updated_at":"2018-06-27T17:09:36Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  We use GitHub Issues exclusively for tracking bugs in React Native.\r\n  Please follow this template when preparing your bug report.\r\n-->\r\n\r\nI first posted this issue to the Expo team [Here](https://github.com/expo/expo/issues/1487), so I am copy pasta + linking\r\n\r\nThe tl;dr high level is that if I utilize `<Image>` JSX and load an image then the iOS simulator will Segfault (all detailed below) after a few Hot or Manual reloads. If I remove the `<Image>` then I can sit there and hold CMD+R all day long without issue (it sounds silly, but I sat there and held it and reloaded for about 2 minutes, probably 40-50 reloads just to make sure - with the Image tag it segfaults within 3-5 reloads. Sometimes 10 if I freshly restart everything).\r\n\r\n### Environment\r\n\r\n```\r\nEnvironment:\r\n  OS: macOS Sierra 10.12.6\r\n  Node: 6.11.3\r\n  Yarn: 1.1.0\r\n  npm: 3.10.10\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 3.0 AI-171.4443003\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.2.0 => 16.2.0\r\n  react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0\r\n```\r\n\r\n```\r\n15:16 $ exp diagnostics\r\n[exp] There is a new version of exp available (49.2.2).\r\nYou are currently using exp 47.1.1\r\nRun `npm install -g exp` to get the latest version\r\n[exp] Generating diagnostics report...\r\n[exp] Please share this URL with the Expo team: https://exp-xde-diagnostics.s3.amazonaws.com/flanldev-1bcbac19-fbed-41da-8011-777e7e7193f6.tar.gz.\r\n```\r\n\r\nTesting on iOS 11.2 on iPhone 7+\r\nAlternative tests performed on Android Nexus 6 physical, and LG V30 physical (no access to physical iPhone at the moment). \r\n\r\n<iOS, Android>\r\n\r\n### Expected Behavior\r\n\r\nCode example:\r\n\r\n```\r\n      <View style={styles.container}>\r\n        <View style={styles.logoContainer}>\r\n          <Image \r\n            ref=\"logo\" \r\n            source={require('../assets/photo.png')}\r\n            style={styles.logo}\r\n          />\r\n        </View>\r\n      </View>\r\n```\r\n\r\n\r\n\r\n### Actual Behavior\r\n\r\n```\r\nMar  1 19:42:40 bonfire com.apple.CoreSimulator.SimDevice.56F9EA55-B2EF-429F-81E1-A92107E63452[7346] (UIKitApplication:host.exp.Exponent[0xd9b6][7372][7517]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0]\r\nMar  1 19:42:40 bonfire com.apple.CoreSimulator.SimDevice.56F9EA55-B2EF-429F-81E1-A92107E63452[7346] (com.apple.WebKit.Networking.6A03FC1B-DDDE-405C-A357-B8C00108DAF5[7519]): Service exited with abnormal code: 1\r\nMar  1 19:42:40 bonfire launchd_sim[7346]: BUG in libdispatch client: kevent[mach_recv] monitored resource vanished before the source cancel handler was invoked\r\n```\r\n\r\nApp exits, no further stack trace or errors are reported. \r\nProblem disappears if the `<Image>` is removed. This persists across different images and across packager reloads / node_modules being rebuilt.\r\n\r\n### Steps to Reproduce\r\n\r\nI've been unable to reproduce on a physical LG V30 device. However the ios simulator guaranteed within 10 hot reloads will segfault.\r\n\r\nSetting up a simple view and loading an image and then manually or hot reloading reproduces for me. Setting width and height to undefined does not crash, but of course the image is not loading either.\r\nAbsolute positioning without width/height also crashes.\r\n\r\n<!--\r\n  Please share a project that reproduces the issue. \r\n  Ideally, create a new app using https://snack.expo.io/ and try to reproduce the issue in it.\r\n\r\n  This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve\r\n-->\r\n\r\nI'll update if I missed anything, lots to unpack here.\r\n\r\nAddendum:\r\n\r\nI've tried to utilize size naming (*@2x.png *@3x.png etc) as well\r\nAs a test I also set width & height to `undefined` and the crash went away. But any time the image actually renders, the crash occurs. (any image, I'm using the image colloquially) "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/400760101","html_url":"https://github.com/facebook/react-native/issues/18261#issuecomment-400760101","issue_url":"https://api.github.com/repos/facebook/react-native/issues/18261","id":400760101,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc2MDEwMQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-27T17:09:36Z","updated_at":"2018-06-27T17:09:36Z","author_association":"NONE","body":"Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as \"For Discussion\" or \"Good first issue\" and I will leave it open. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}