react native app crash without log in debug mode - javascript

i'm using the last version of react and react-native :
"react": "16.1.1",
"react-native": "^0.50.3"
Some times my app's crash completely and close without any log in chrome and i don't get the red screen on the phone, i'm in debug mode of course and get usual error or log in chrome console.
For example with this view, i render the same data. The render 1 work well and don't crash the app. the render 2 work for fews lines thans the app crash
I get the app crash without any log for other kind of bug too ( missing parameter in props for example ).
Any way to track or solve this ? i don't found local tools for that

I finaly solve this by using adb logcat, working for android
adb logcat com.yourAppName:D *:W
yourAppName is the one you used in package.json under name field

Related

Issue regarding test-rtc of web-rtc for Bandwidth test

I'm having issue when using test-rtc of web-rtc.
When I launch the test on every browser (except chrome in Ubuntu) I get the following error: "(Throughput) Video bandwidth: Camera failure: 0x0. Cannot test bandwidth without a working camera."
I console.log some code and I saw that from Chrome in Ubuntu (where it's working) the response parameters of the gotStats method for BandWidth tests is returning me a complete array. But for the other navigators this array is empty.
Could someone help me ?
If you need some screenshots or something else do not hesitate to ask.

Cypress.io: Server Error | 404 - File or director not found

I'm currently trying to automate the test for a pretty big webapplication (DMS) Document Management System. To explain the system a little bit: There is a loadbalancer which connect to one of two frontends. To be sure that will be no problems in my test I directly try to access frontend one. Now to my problem:
When trying to run all the tests (around 20 spec-Files) with the Test Runner and also when trying to run the tests via console with the following command: .\node_modules\.bin\cypress run --spec "cypress/integration/Basis/**/*" --browser chrome
Sometimes after a cy.visit() a Server Error comes up. That error also stops the tests on console from running and looks like it crashes cypress. The error is the following:
It's not possible that the resource is missing or somewhere else because most of the times the test works. Most of the time its a different test where the error comes up. The worst part is that I have no idea how to reproduce that error. And it looks like that problem is only appearing for me.
So please tell me if you have ever seen this message and maybe you can help me fix this problem. Thank you for your help.
This is caused by a bug in Cypress which causes usages of window.location.href and other Location methods to incorrectly use /__/ as the base URL.
You can try enabling the experimentalSourceRewriting config option to work around this, read here for more info: https://docs.cypress.io/guides/references/experiments.html#Configuration

SMART on FHIR client-js: Invalid Character Error on IE11

Note: The issue is also reported on GitHub. Please take a look at Git issue as well for current progress/investigation.
I'm using fhir-client v0.1.15 to develop a SMART on FHIR web application that would run in EHR launch scenario. For example in Epic Hyperspace simulator that uses IE to run the SMART application.
While testing my application locally(localhost) on IE11, I get a JavaScript error from within fhir-client.js.
SCRIPT1014: Invalid character
File: fhir-client.js, Line: 38113, Column: 3
Below are the two lines from code. 38112 & 38113 in order:
var ret = Adapter.get().defer();
var state = JSON.parse(sessionStorage[params.state]);
Any solution or workaround would be much appreciated.
Updated
Upon further investigation we found that sessionStorage is empty when line with JSON.parse executes. However, strange thing is why/how sessionStorage gets empty after redirection from authorization server. This only happens with IE11, everything works fine on Chrome though.
PS. Can someone please add a new tag SMART or SMARTonFHIR?
Though I couldn't find the exact root cause and solution but let me share the findings that helped me resolve this issue somehow.
The issue doesn't exist when I test my SMART application with redirect_uri(in FHIR.oauth2.authorize call) set to a staging server URL instead of localhost.
PS. I’m open to better, and more qualified answers for acceptance.

JSCONSOLE does not work

I followed the instructions:( point browser to http://jsconsole.com, type :listen, got the descriptor, and put that little script into my web page...) ,but I only got the following output:
Creating connection...
Connected to ...
sent remote command
Nothing from the console.log got displayed.
I tried both edge and google chrome on my windows 10.I also tried to install a local version under node.js, but still no luck.
Not sure what's wrong, can somebody help? Thanks

Sencha build error when viewed in browser

I have finally managed to create a production build of my sencha web app using Cmd 3.10.2.342 and touch 2.2.1
All my bespoke files are included and deltas are created as one would expect. However, when I run it in the browser, it stalls at the loading view. Console log says:
TypeError: 'undefined' is not a function (evaluating 'h.call(w,w)')
I have traced the error to Ext.application({... in app.js.
I have tried the following changes, but still get errors:
new Ext.application({...
Ext.Application({...
new Ext.Application({...
How can I rectify this?
When I generate an apk file, I do not have this problem
In my production app.js, I found this
if(!s){a.set(i,w);if(h){h.call(w,w)}a.triggerCreated(i);return}
I don't really know what it does. I have tried deleting it etc, but it just the gives other errors instead
I traced this back to issues/conflicts with itemId and id where sencha was telling me that a component already existed and should be destroyed.
Solved it by removing id and itemId and used cls instead

Categories

Resources