Comments (10)
Hey @arstropica can you try running:
npx @react-native-community/cli@latest init AwesomeProject --version latest
instead and report back?
from react-native.
npx @react-native-community/cli@latest init AwesomeProject --version latest
No problems with the installation.
Downloading template
✔ Copying template
✔ Processing template
✔ Installing dependencies
✔ Do you want to install CocoaPods now? Only needed if you run your project in Xcode directly … yes
✔ Installing Ruby Gems
✔ Installing CocoaPods dependencies (this may take a few minutes)
info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
✔ Initializing Git repository
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/Users/estate/dev/code/react/AwesomeProject" && npx react-native run-android
Run instructions for iOS:
• cd "/Users/estate/dev/code/react/AwesomeProject"
• npx react-native run-ios
- or -
• Open AwesomeProject/ios/AwesomeProject.xcworkspace in Xcode or run "xed -b ios"
• Hit the Run button
Run instructions for macOS:
• See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions.
But when I build and run the app in Xcode, it launches with the same error as previously reported:
Running application AwesomeProject ({
initialProps = {
concurrentRoot = 0;
};
rootTag = 1;
})
Invalidating <RCTCxxBridge: 0x107f11c70> (parent: <RCTBridge: 0x600003038000>, executor: RCTWebSocketExecutor)
Thread Performance Checker: Thread running at User-interactive quality-of-service class waiting on a thread without a QoS class specified. Investigate ways to avoid priority inversions
PID: 39266, TID: 6761176
Backtrace
=================================================================
3 CFNetwork 0x00007ff8048e6dda estimatedPropertyListSize + 27583
4 CFNetwork 0x00007ff804769d17 cfnTranslateCFError + 2029
5 libdispatch.dylib 0x0000000105d469f7 _dispatch_client_callout + 8
6 libdispatch.dylib 0x0000000105d48095 _dispatch_once_callout + 66
7 CFNetwork 0x00007ff804769ceb cfnTranslateCFError + 1985
8 CFNetwork 0x00007ff8048e6c82 estimatedPropertyListSize + 27239
9 libdispatch.dylib 0x0000000105d469f7 _dispatch_client_callout + 8
10 libdispatch.dylib 0x0000000105d48095 _dispatch_once_callout + 66
11 CFNetwork 0x00007ff8048e6bab estimatedPropertyListSize + 27024
12 CFNetwork 0x00007ff8048e6bf6 estimatedPropertyListSize + 27099
13 libdispatch.dylib 0x0000000105d469f7 _dispatch_client_callout + 8
14 libdispatch.dylib 0x0000000105d48095 _dispatch_once_callout + 66
15 CFNetwork 0x00007ff8048e6be5 estimatedPropertyListSize + 27082
16 CFNetwork 0x00007ff8047b09a0 _CFStreamErrorFromCFError + 189030
17 CoreFoundation 0x00007ff800412c57 _CFStreamOpen + 135
18 AwesomeProject 0x00000001038a966d -[SRProxyConnect _openConnection] + 189
19 AwesomeProject 0x00000001038a89dc -[SRProxyConnect _configureProxy] + 988
20 AwesomeProject 0x00000001038a813b -[SRProxyConnect openNetworkStreamWithCompletion:] + 91
21 AwesomeProject 0x00000001038acaf8 -[SRWebSocket open] + 744
22 AwesomeProject 0x00000001030d4a4d -[RCTReconnectingWebSocket start] + 173
23 AwesomeProject 0x00000001030bcbfb -[RCTPackagerConnection init] + 507
24 AwesomeProject 0x00000001030bc9dc __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 28
25 libdispatch.dylib 0x0000000105d469f7 _dispatch_client_callout + 8
26 libdispatch.dylib 0x0000000105d48095 _dispatch_once_callout + 66
27 AwesomeProject 0x00000001030bc98e +[RCTPackagerConnection sharedPackagerConnection] + 78
28 AwesomeProject 0x000000010315f8ce -[RCTDevSettings initialize] + 142
29 AwesomeProject 0x00000001030a5ec8 -[RCTModuleData _initializeModule] + 104
30 AwesomeProject 0x00000001030a574e -[RCTModuleData setUpInstanceAndBridge:] + 2894
31 AwesomeProject 0x00000001030a7670 -[RCTModuleData instance] + 1408
32 AwesomeProject 0x0000000103041f86 -[RCTCxxBridge moduleForName:lazilyLoadIfNecessary:] + 790
33 AwesomeProject 0x0000000103042460 -[RCTCxxBridge moduleForClass:] + 80
34 AwesomeProject 0x0000000103163598 -[RCTBridge(RCTDevSettings) devSettings] + 56
35 AwesomeProject 0x0000000103047aa0 -[RCTCxxBridge executeSourceCode:withSourceURL:sync:] + 320
36 AwesomeProject 0x0000000103040a97 __21-[RCTCxxBridge start]_block_invoke.212 + 151
37 libdispatch.dylib 0x0000000105d45747 _dispatch_call_block_and_release + 12
38 libdispatch.dylib 0x0000000105d469f7 _dispatch_client_callout + 8
39 libdispatch.dylib 0x0000000105d5aa97 _dispatch_root_queue_drain + 1047
40 libdispatch.dylib 0x0000000105d5b3b5 _dispatch_worker_thread2 + 277
41 libsystem_pthread.dylib 0x0000000105ca9b43 _pthread_wqthread + 262
42 libsystem_pthread.dylib 0x0000000105ca8acf start_wqthread + 15
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'SourceCode' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","DevSettings","LogBox","Timing","SettingsManager","AppState"],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","SourceCode"]}, js engine: hermes
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'SourceCode' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","DevSettings","LogBox","Timing","SettingsManager","AppState"],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","SourceCode"]}, js engine: hermes
Unbalanced calls start/end for tag 1
Unbalanced calls start/end for tag 19
Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Bridgeless Mode: false. Registered callable JavaScript modules (n = 9): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, HMRClient.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
Running application AwesomeProject ({
initialProps = {
concurrentRoot = 0;
};
rootTag = 11;
})
I also confirmed that SourceCode is present in the project, just not sure why Turbo Native Modules can't find it.
from react-native.
Uhm... there is something weird in the environment.
I just spin up a new app from 0.75.2 and I can't reproduce the issue...
![Screenshot 2024-08-29 at 10 49 34](https://private-user-images.githubusercontent.com/11162307/362625996-f4cb5677-7a47-4c7e-a090-572004ca6b2f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMjg4MTgsIm5iZiI6MTcyNTEyODUxOCwicGF0aCI6Ii8xMTE2MjMwNy8zNjI2MjU5OTYtZjRjYjU2NzctN2E0Ny00YzdlLWEwOTAtNTcyMDA0Y2E2YjJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDE4MjE1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5MDJmNTY0OWYwOWJjYmUyNjg0ZTg1NTE4ZTcwOTcxMTBmNGFmNjA4N2ZhN2EyOThiNjBhM2FiNTdhNjc2YjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.745yAQcBv7OyVrNrbiHtpyX3YYkRMlzoeKnMumoDdXU)
Could you create a reproducer using this template?
from react-native.
Thanks. The SourceCode error is gone with the reproducer and hermes appears to be working correctly (I can use it with react-devtools). There is a different error which seems to be unrelated to the engine.
Running application ReproducerApp ({
initialProps = {
concurrentRoot = 0;
};
rootTag = 1;
})
Thread Performance Checker: Thread running at User-interactive quality-of-service class waiting on a thread without a QoS class specified. Investigate ways to avoid priority inversions
PID: 84923, TID: 8058146
Backtrace
=================================================================
3 CFNetwork 0x00007ff8048e6dda estimatedPropertyListSize + 27583
4 CFNetwork 0x00007ff804769d17 cfnTranslateCFError + 2029
5 libdispatch.dylib 0x00000001134789f7 _dispatch_client_callout + 8
6 libdispatch.dylib 0x000000011347a095 _dispatch_once_callout + 66
7 CFNetwork 0x00007ff804769ceb cfnTranslateCFError + 1985
8 CFNetwork 0x00007ff8048e6c82 estimatedPropertyListSize + 27239
9 libdispatch.dylib 0x00000001134789f7 _dispatch_client_callout + 8
10 libdispatch.dylib 0x000000011347a095 _dispatch_once_callout + 66
11 CFNetwork 0x00007ff8048e6bab estimatedPropertyListSize + 27024
12 CFNetwork 0x00007ff8048e6bf6 estimatedPropertyListSize + 27099
13 libdispatch.dylib 0x00000001134789f7 _dispatch_client_callout + 8
14 libdispatch.dylib 0x000000011347a095 _dispatch_once_callout + 66
15 CFNetwork 0x00007ff8048e6be5 estimatedPropertyListSize + 27082
16 CFNetwork 0x00007ff8047b09a0 _CFStreamErrorFromCFError + 189030
17 CoreFoundation 0x00007ff800412c57 _CFStreamOpen + 135
18 ReproducerApp 0x000000011057622d -[SRProxyConnect _openConnection] + 189
19 ReproducerApp 0x000000011057559c -[SRProxyConnect _configureProxy] + 988
20 ReproducerApp 0x0000000110574cfb -[SRProxyConnect openNetworkStreamWithCompletion:] + 91
21 ReproducerApp 0x00000001105796b8 -[SRWebSocket open] + 744
22 ReproducerApp 0x000000010fda160d -[RCTReconnectingWebSocket start] + 173
23 ReproducerApp 0x000000010fd897bb -[RCTPackagerConnection init] + 507
24 ReproducerApp 0x000000010fd8959c __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 28
25 libdispatch.dylib 0x00000001134789f7 _dispatch_client_callout + 8
26 libdispatch.dylib 0x000000011347a095 _dispatch_once_callout + 66
27 ReproducerApp 0x000000010fd8954e +[RCTPackagerConnection sharedPackagerConnection] + 78
28 ReproducerApp 0x000000010fe2c48e -[RCTDevSettings initialize] + 142
29 ReproducerApp 0x000000010fd72a88 -[RCTModuleData _initializeModule] + 104
30 ReproducerApp 0x000000010fd7230e -[RCTModuleData setUpInstanceAndBridge:] + 2894
31 ReproducerApp 0x000000010fd74230 -[RCTModuleData instance] + 1408
32 ReproducerApp 0x000000010fd0eb46 -[RCTCxxBridge moduleForName:lazilyLoadIfNecessary:] + 790
33 ReproducerApp 0x000000010fd0f020 -[RCTCxxBridge moduleForClass:] + 80
34 ReproducerApp 0x000000010fe30158 -[RCTBridge(RCTDevSettings) devSettings] + 56
35 ReproducerApp 0x000000010fd14660 -[RCTCxxBridge executeSourceCode:withSourceURL:sync:] + 320
36 ReproducerApp 0x000000010fd0d657 __21-[RCTCxxBridge start]_block_invoke.212 + 151
37 libdispatch.dylib 0x0000000113477747 _dispatch_call_block_and_release + 12
38 libdispatch.dylib 0x00000001134789f7 _dispatch_client_callout + 8
39 libdispatch.dylib 0x000000011348ca97 _dispatch_root_queue_drain + 1047
40 libdispatch.dylib 0x000000011348d3b5 _dispatch_worker_thread2 + 277
41 libsystem_pthread.dylib 0x00000001129bab43 _pthread_wqthread + 262
42 libsystem_pthread.dylib 0x00000001129b9acf start_wqthread + 15
Unbalanced calls start/end for tag 19
Running "ReproducerApp" with {"rootTag":1,"initialProps":{"concurrentRoot":false}}
Reproducer: https://github.com/arstropica/reproducer-react-native
from react-native.
stack trace
This is a warning, not a bug. Also is weird that I don't have it in my stack trace.
Unbalanced calls start/end for tag 19
This is something in the application code of the Template. There is some tag the is not closed properly...
If you clean up the UI it should go away.
from react-native.
I am trying to determine what, if anything, is different between the AwesomeProject and Reproducer projects, since hermes works in the latter and not the former. Will post any findings here.
thanks.
from react-native.
Uhm... there is something weird in the environment. I just spin up a new app from 0.75.2 and I can't reproduce the issue...
I diffed the reproducer and starter project files - there were differences in some of the ruby gems that had identical versions (specifically ffi). I think that something about my system ruby installation is broken (which still doesn't fully explain why the reproducer project works on my system).
from react-native.
I strongly suggest to use a ruby environment manager (my favorite is rbenv). This simplify the handling of ruby and gems dramatically.
from react-native.
I strongly suggest to use a ruby environment manager (my favorite is rbenv). This simplify the handling of ruby and gems dramatically.
yeah, that was my next move as well. Any advice on which version to install?
from react-native.
let's start with the latest, to stay on the safe side. React Native should work with any version of ruby, tbh...
from react-native.
Related Issues (20)
- Bug: TextInput with multiline and lineHeight has height issue when controlled HOT 3
- [[email protected]] `yoga/style/Style.h` file not found HOT 10
- Creating a module with New Architecture and including a .swift file introduces compiler errors HOT 11
- [v0.75.2] macOS (Catalyst) builds fail with `hermes.framework: bundle format is ambiguous (could be app or framework)` HOT 24
- `Text` Components Positioned with bottom: 0 Gets Hidden Behind Navigation Bar on Android Devices HOT 29
- TypeError: Cannot read property 'create' of undefined, HOT 5
- Direct JSC debugging cannot be used in Mac simulator from 0.74.1 HOT 4
- Empty dSYM issue HOT 8
- * Where: Settings file 'C:\Users\Debasis\Desktop\vipani-app\android\settings.gradle' line: 13 * What went wrong: Error resolving plugin [id: 'com.facebook.react.settings']
- String does not match the pattern of regex in package.json HOT 7
- RN new arch library not working with apps having RN 0.70 or below HOT 7
- Issue with iOS auto install HOT 1
- NullPointerException android.widget.ScrollView in onTouchEvent HOT 9
- Upgrading from 0.73.9 to 0.75.2 gives back a Unsupported class file major version 61 HOT 7
- apple connect reject Invalid binary The app contains one or more corrupted binaries. Please rebuild the app and resubmit. HOT 3
- Touch events are not happening on FlatList/ScrollView when navigating back to the screen with a scrolling list (IOS) HOT 3
- EarlyJsError: Unexpected token "?" HOT 4
- [RN][Android] Fix <Image/> Logbox feedback loop HOT 4
- Can't fetch the source map while using the experimental debugger HOT 4
- Could not find method autoLinkLibrariesWithApp after upgrading to 0.75 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.