Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Strange issue while debugging in Safari Inspector #733

Closed
gerhardsletten opened this issue Mar 21, 2016 · 3 comments
Closed

Strange issue while debugging in Safari Inspector #733

gerhardsletten opened this issue Mar 21, 2016 · 3 comments
Labels

Comments

@gerhardsletten
Copy link

I experience a very strange issue when I inspect an app the Safari Inspector. If the inspector is open, the app is never rendered (nothing is rendered to the document) and the Memory view in xcode shows a fast increasing memory consumption.

image

To the debug the init of the push-plugin, I insert a alert() before the main.js is loaded:

<script src="cordova.js"></script>
<script>alert('test')</script>
<script src="main.js"></script> 

There are no errors in the console.

If I comment out the PushPlugin.init() the app starts as it should, and there is no issue with high memory usage.

Usage stack:
Tarifa 0.15.0 (cordova wrapper)
Cordova 6.0
Platform iOS: 4.0.1

Plugins (from tarifa.json)

"cordova-plugin-splashscreen": "[email protected]",
"cordova-plugin-whitelist": "[email protected]",
"cordova-plugin-file": "[email protected]",
"cordova-plugin-statusbar": "[email protected]",
"cordova-plugin-console": "[email protected]",
"cordova-plugin-device": "[email protected]",
"cordova-plugin-dialogs": "[email protected]",
"cordova-plugin-file-transfer": "[email protected]",
"cordova-plugin-inappbrowser": "[email protected]",
"cordova-plugin-network-information": "[email protected]",
"cordova-plugin-google-analytics": "[email protected]",
"cordova-plugin-x-socialsharing": "[email protected]",
"phonegap-plugin-barcodescanner": "[email protected]",
"cordova-plugin-transport-security": "[email protected]",
"phonegap-plugin-push": {
  "uri": "[email protected]",
  "variables": {
    "SENDER_ID": "xxx"
  }
}
@gerhardsletten
Copy link
Author

Looks like this is a bug with [email protected], if I upgrade to 4.1.0 it is fixed.

@macdonst macdonst added the ios label Mar 21, 2016
@macdonst
Copy link
Member

@gerhardsletten Yes, it was a bug in [email protected]. As you have found out upgrading to 4.1.x fixes it. I think I'm going to force everyone to use that version of cordova-ios as it will head off a lot of problems.

@macdonst macdonst added docs and removed docs labels Mar 21, 2016
@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants