status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.91k stars 984 forks source link

Error: Requiring module "619" when running on iOS simulator [help to reproduce] #1691

Closed oskarth closed 6 years ago

oskarth commented 7 years ago

User Story

As a developer I want build to run without errors to ensure the errors aren't impacting other issues such as https://github.com/status-im/status-react/issues/1687

Description

Type: Bug

Summary: Run app on iOS simulator and see if you get same issue. Note that the app still runs, but you can see the error in logs, and it might impact other build and run configurations.

Expected behavior

No errors when running in simulator.

Actual behavior

Errors when running in simulator.

Reproduction

git checkout develop && git pull
rm -rf node_modules/*
rm -rf $TMPDIR/npm-*
rm -rf $TMPDIR/react-*
lein deps && npm install && ./re-natal deps && ./re-natal use-figwheel && lein re-frisk use-re-natal && ./re-natal enable-source-maps
mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack
(cd ios && pod install)

lein prod-build
./re-natal use-ios-device simulator
./re-natal use-figwheel

#tab 2
BUILD_IDS="ios" lein repl

# tab 3
react-native start

# tab 1, once REPL loaded
react-native run-ios

# tab 1 once complete
react-native log-ios

Notice Error: Requiring module "619 error.

Additional Information

Logs

Oskars-MBP:status-react oskarth$ react-native log-ios
Scanning 689 folders for symlinks in /Users/oskarth/git/status-react/node_modules (12ms)
NOTE:  Most system logs have moved to a new logging system.  See log(1) for more information.
Aug 25 13:11:49 Oskars-MBP CoreSimulatorBridge[67819] <Warning>: Launch successful for 'im.status.ethereum'
Aug 25 13:11:50 Oskars-MBP StatusIm[71604] <Error>: objc[71604]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11fa34cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11f84b6f0). One of the two will be used. Which one is undefined.
Aug 25 13:11:50 Oskars-MBP StatusIm[71604] <Error>: assertion failed: 16G29 14E8301: libxpc.dylib + 64131 [624BAF4F-2E03-34F8-ACBA-970B04637786]: 0x7d
Aug 25 13:11:50 Oskars-MBP Unknown[71604] <Error>:
Aug 25 13:11:50 Oskars-MBP assertiond[67818] <Warning>: client <BSProcessHandle: 0x7f9cf5f063f0; SpringBoard:67813; valid: YES> HWM increased to 4 because of <BKProcessAssertion: 0x7f9cf5f130e0; "Resume" (activation:inf); id:…AC59CF9EDF7B>
Aug 25 13:11:50 Oskars-MBP assertiond[67818] <Warning>: client <BSProcessHandle: 0x7f9cf5f063f0; SpringBoard:67813; valid: YES> HWM increased to 5 because of <BKProcessAssertion: 0x7f9cf5f0d060; "Deliver Message" (suspend:10s); id:…B42D06DF3A86>
Aug 25 13:11:50 Oskars-MBP StatusIm[71604] <Notice>: Initializing <RCTBatchedBridge: 0x6080001a62e0> (parent: <RCTBridge: 0x6080000c5b70>, executor: RCTJSCExecutor)
Aug 25 13:11:51 Oskars-MBP CoreSimulatorBridge[67819] <Warning>: Pasteboard change listener callback port <NSMachPort: 0x7fc5e3411860> registered
Aug 25 13:11:51 Oskars-MBP DTServiceHub[71260] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
Aug 25 13:12:02 Oskars-MBP CoreSimulatorBridge[67819] <Warning>: Pasteboard change listener callback port <NSMachPort: 0x7fc5e352ea60> registered
Aug 25 13:12:08 Oskars-MBP diagnosticd[67826] <Notice>: dispatch_io_write error: 32 (Broken pipe)
Aug 25 13:12:08 Oskars-MBP diagnosticd[67826] <Notice>: reflect channel created for fd 6
Aug 25 13:12:09 Oskars-MBP SpringBoard[67813] <Error>: [Watchdog] [im.status.ethereum] Provision violated for watchdog scene-create: <FBSProcessResourceProvision: 0x6000018e5180; allowance: <; FBSProcessResourceAllowance; type: realTime; timeValue: 19.31s>; violated: YES>
Aug 25 13:12:09 Oskars-MBP SpringBoard[67813] <Error>: [Common] Not terminating "im.status.ethereum" for violated provision because: "watchdogs are disabled in the simulator"
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Error>: [] nw_connection_get_connected_socket_block_invoke 3 Connection has no connected handler
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: There was an error collecting entropy from the browser:

Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: { [Error: Requiring module "619", which threw an exception.]
      line: 136,
      column: 15,
      sourceURL: 'http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false' }
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: Running application StatusIm ({
        initialProps =     {
        };
        rootTag = 1;
    })

Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: Running application "StatusIm" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: Loading Closure base.
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: Shimming require
Aug 25 13:12:27 Oskars-MBP StatusIm[71604] <Notice>: Shimming goog functions.
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-action-button
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-android-sms-listener
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-autolink
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-camera
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-config
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-contacts
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-dialogs
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: dismissKeyboard
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-drawer-layout
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-emoji-picker
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-fs
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-http-bridge
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-i18n
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-image-crop-picker
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: react-native-image-resizer
Aug 25 13:12:28 Oskars-MBP StatusIm[71604] <Notice>: Requiring: instabug-reactnative
...
oskarth commented 7 years ago

Multiple people are able to reproduce this, including people who can run the app on iOS device. The issue itself is low-priority since it doesn't seem to break anything important. This rules out this as a direct cause of error for https://github.com/status-im/status-react/issues/1687

Chumalaka commented 6 years ago

Hi @oskarth. How can I help here? Is this task still open?

andytudhope commented 6 years ago

Hi @Chumalaka! It is very much still open and you can help by submitting a PR that fixes the bug 😉

pablanopete commented 6 years ago

Is this error still relevant @oskarth?

oskarth commented 6 years ago

@pablanopete As far as I know nothing has changed.

andytudhope commented 6 years ago

How about now @oskarth - can we close here?

status-github-bot[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

status-github-bot[bot] commented 6 years ago

This issue has been automatically closed. Please re-open if this issue is important to you.