I didnt change anything but suddenly I got this error in my xproject and the app got stuck and thing the when I do simulator through my Xcode is working but not with physical device.
the full log is here:
'Failed to print error: ', 'global.nativeTraceBeginSection is not a function. (In \'global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args)\', \'global.nativeTraceBeginSection\' is undefined)'
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0910 19:37:09.077337 1871998976 JSCHelpers.cpp:137] Got JS Exception: Exception calling object as function: global.nativeTraceEndSection is not a function. (In 'global.nativeTraceEndSection(TRACE_TAG_REACT_APPS)', 'global.nativeTraceEndSection' is undefined) (<unknown file>:2303)
E0910 19:37:09.077525 1871998976 JSCHelpers.cpp:143] Got JS Stack: endEvent#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2303:35
__callFunction#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2098:24
http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:1927:29
__guard#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2068:11
callFunctionReturnFlushedQueue#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:1926:19
callFunctionReturnFlushedQueue#[native code]
2018-09-10 19:37:09.079 [fatal][tid:com.facebook.react.JavaScript] Error calling Systrace.setEnabled
Unhandled JS Exception: Exception calling object as function: global.nativeTraceEndSection is not a function. (In 'global.nativeTraceEndSection(TRACE_TAG_REACT_APPS)', 'global.nativeTraceEndSection' is undefined) (<unknown file>:2303)
2018-09-10 19:37:09.082 [error][tid:com.facebook.react.JavaScript] global.nativeTraceBeginSection is not a function. (In 'global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args)', 'global.nativeTraceBeginSection' is undefined)
2018-09-10 19:37:09.083 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
E0910 19:37:09.086755 1871998976 JSCHelpers.cpp:137] Got JS Exception: Exception calling object as function: global.nativeTraceBeginSection is not a function. (In 'global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args)', 'global.nativeTraceBeginSection' is undefined) (<unknown file>:2298)
E0910 19:37:09.086828 1871998976 JSCHelpers.cpp:143] Got JS Stack: beginEvent#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2298:37
__invokeCallback#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2125:28
http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:1950:32
__guard#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:2068:11
invokeCallbackAndReturnFlushedQueue#http://192.168.1.27.xip.io:8081/index.bundle?platform=ios&dev=true&minify=false:1949:19
invokeCallbackAndReturnFlushedQueue#[native code]
(lldb)
I have been trying to find solution, didn't succeed with any of them.
this error shows on my Xcode logged and not on my screen of the phone
Thank you so much for the help!!
I had the same issue because I unintentionally enabled Start Systrace and since it is a known react native issue... I was getting the error.
What worked for me was just disabling Start Systrace and restarting the project. How I do that?
Command ⌘ + D
Press Disable Start Systrace, that's it!
This is a known, unresolved React Native issue. There are a few workarounds in the GitHub issue, including:
Delete, and then reinstall the app from Xcode or react-native run-ios
Revert to the old bridge (instructions)
See https://github.com/facebook/react-native/issues/15003 for more details.
Related
We are having an issue in Vaadin, When the user hits the Enter Key to save the page's data below error comes.
I tried everything to debug the issue in the java code. But when I opened the developer tool I saw the following error and I don't know how to solve this issue.
client-5C40CA4B9D1F93A241DF9189632E0919.cache.js:212
TypeError: Cannot read properties of undefined (reading '_content')
ZC # client-5C40CA4B9D1F93A241DF9189632E0919.cache.js:212
vaadin-grid-keyboard-navigation-mixin.html.js:332
Uncaught TypeError: Cannot read properties of undefined (reading '_content')
at HTMLElement._onInteractionKeyDown (vaadin-grid-keyboard-navigation-mixin.html.js:332)
at HTMLElement._onKeyDown (vaadin-grid-keyboard-navigation-mixin.html.js:113)
Please help.
I'm attempting to implement an iOS delegate in a NativeScript plugin and am getting an error:
Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: __metadata
My original code is:
#ObjCClass(SQRDCheckoutControllerDelegate)
export class SquareReader extends NSObject implements SQRDCheckoutControllerDelegate {
/*
iOS delegate implementation here
(source https://docs.connect.squareup.com/payments/readersdk/setup-ios)
*/
}
And that's getting transpiled in js down to:
SquareReader = __decorate([
ObjCClass(exports.SQRDCheckoutControllerDelegate),
__metadata("design:paramtypes", [])
], SquareReader);
If I just remove the __metadata line, I get a different error:
Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Protocol "undefined" is not a protocol object.
Any ideas? I've seen other examples like nativescript-image-swipe where the code is being transpiled w/o the __metadata method leading me to think something might be wrong with the transpilation
I solved this by cleaning up my typings. I just re-ran the command to generate typings: TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios and put them in my /src directory for my plugin. Once my typings were correct the project ran as expected and the Delegate worked
I found a post that has the same error in the same situation here:
https://groups.google.com/forum/#!topic/audiokit/SmyuzPJQ6wU
Same as this poster - I'm using the source. However, at the end of the post the user does not say what he did to fix the issue.
I'm currently using an unaltered "ExtendingAudioKitUsingSource" example as I need to add some functionality to audiokit. (unaltered outside of using my provisioning profile and adding "let m = AKMicrophone()" in ViewController.swift.
I receive these errors:
2018-08-31 15:16:50.684 ExtendingAudioKit[6800:8850964] 15:16:50.683
ERROR: [0x39058000] AVAudioIONodeImpl.mm:452:
___ZN13AVAudioIOUnit9EnableBusEm_block_invoke: error -10849
2018-08-31 15:16:50.688 ExtendingAudioKit[6800:8850964] ***
Terminating app due to uncaught exception
'com.apple.coreaudio.avfaudio', reason: 'error -10849'
which traces back to line 46 in AKMicrophone.swift to init(): AudioKit.engine.connect(AudioKit.engine.inputNode, to: self.avAudioNode, format: nil)
I've had no issues using AKMicrphone() outside of this project.
I have fixed an AKMicrophone bug in AudioKit v4.5.1 that may have fixed this for you. If not, I'll withdraw this answer, but please check it out and let me know.
i use UIAutomation and instrument for my UI Tests and when i try to tap some letters, instrument return me an error:
Script threw an uncaught JavaScript error: target.frontMostApp().keyboard() failed to tap 'V' on line 27
A part of code:
passwordField.tap();
target.frontMostApp().keyboard().typeString("VEMO");
Has anyone some ideas about it?
Thank
There is an undocumented function that exists on the UIAKeyboard object that will help you avoid this problem.
var keyboard = target.frontMostApp().keyboard();
keyboard.setInterKeyDelay(seconds);
keyboard.typeString("VEMO");
You can push the delay up as high as you want but I found that a delay of 0.1 was enough to prevent the keyboard from failing.
After installing react-native and running the newly created Xcode project I am getting the following output:
2015-03-26 15:35:05.865 React[1427:7950] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2015-03-26 15:35:05.865 React[1427:7950] CLTilesManagerClient: init
2015-03-26 15:35:05.866 React[1427:7950] CLTilesManagerClient: reconnecting, 0x7fac1b289e40
RCTJSLog> "Running application "React" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF"
RCTJSLog> "Error:
stack:
React_render index.ios.bundle:955
_renderValidatedComponentWithoutOwnerOrContext index.ios.bundle:16453
_renderValidatedComponent index.ios.bundle:16479
ReactCompositeComponent__renderValidatedComponent index.ios.bundle:4860
mountComponent index.ios.bundle:15913
ReactCompositeComponent_mountComponent index.ios.bundle:4860
mountComponent index.ios.bundle:4929
mountComponentIntoNode index.ios.bundle:15386
perform index.ios.bundle:5992
batchedMountComponentIntoNode index.ios.bundle:15405
perform index.ios.bundle:5992
batchedUpdates index.ios.bundle:13507
batchedUpdates index.ios.bundle:4524
renderComponent index.ios.bundle:15457
ReactMount__renderNewRootComponent index.ios.bundle:4860
render index.ios.bundle:1155
renderApplication index.ios.bundle:33797
run index.ios.bundle:33743
runApplication index.ios.bundle:33765
jsCall index.ios.bundle:7149
_callFunction index.ios.bundle:7396
applyWithGuard index.ios.bundle:877
guardReturn index.ios.bundle:7198
callFunctionReturnFlushedQueue index.ios.bundle:7405
URL: http://localhost:8081/index.ios.bundle
line: 955
message: undefined is not a function (evaluating 'React.createElement(Text, {style: styles.welcome},
"Welcome to React Native!"
)')"
Any help figuring out why this is failing would be appreciated.
Thanks!
To run on a device (which is your second problem), take a look at these comments from the React Native examples:
https://github.com/facebook/react-native/blob/master/Examples/Movies/Movies/AppDelegate.m
To run on device, change localhost to the IP address of your
computer, and make sure your computer and iOS device are on the same
Wi-Fi network.
I think this is because the application needs to connect to the packager. See if that helps.