katzer / cordova-plugin-app-event

Cordova App-Event Plugin
Apache License 2.0
26 stars 23 forks source link

Error Bad Access with Toast-PhoneGap-Plugin #1

Closed nwidal closed 8 years ago

nwidal commented 8 years ago

If using the plugin https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin void swizzled_pluginInitialize(id self, SEL _cmd) {...} throws an error EXC_BAD_ACCESS(code=2, address...)

nwidal commented 8 years ago

as well as https://github.com/Rohfosho/CordovaCallNumberPlugin

helgetan commented 8 years ago

Same Problem here with https://github.com/VitaliiBlagodir/cordova-plugin-datepicker

katzer commented 8 years ago

@nwidal I released v1.1.0 some days ago because I struggled about the Bad Access with the Toast Plugin.

nwidal commented 8 years ago

@katzer I was using v.1.1.0 - I tested both the 1.0. and this one and both had the exact same behaviour.

zfoltin commented 8 years ago

Same issue when using https://github.com/whiteoctober/cordova-plugin-app-version

sparsh0611 commented 8 years ago

Still not working. Throws bad access error for last plugin in

for (NSString* pluginName in self.startupPluginNames)

in CDVViewController.m Initially, it was happening with cordova-plugin-x-socialsharing. Once I removed the plugin, it started happening with local notification plugin (de.appplant.cordova.plugin.local-notification), both of which were last in self.startupPluginNames, when the error occurred.

hgo commented 8 years ago

+1

it"s still crashing during plugin initialization, For my case; phonegap-push-plugin

EvenHauger commented 8 years ago

+1 Crashing when using cordova-plugin-local-notifications during initialization

zfoltin commented 8 years ago

@hgo @ReavingDev I'm using both phonegap-push-plugin and de.appplant.cordova.plugin.local-notification with the latest cordova.ios (4.0.1). https://github.com/katzer/cordova-plugin-app-event/pull/4 seems to have solved a BAD_ACCESS issue that happened in swizzled_pluginInitialize. Your issue might be different.

EvenHauger commented 8 years ago

@zfoltin I tried to update the project's ios version from 3.9.2 to 4.0.1 with "cordova platform update ios@4.0.1" as a regular "cordova platform update ios" doesn't not move it up from 3.9.2 When i then try to build it i only get a "You may not have the required environment or OS to build this project" (see link for whole error message as i don't want to spam this issue with a long error-message). Therefore i can't really verify if upgrading to 4.0.1 fixes the problem or not since i can't build it when it has been upgraded. Got any ideas? http://pastebin.com/5hs9ygvm

zfoltin commented 8 years ago

@ReavingDev instead of update I removed and added the ios platform back as suggested here http://devgirl.org/2016/01/11/a-faster-hybrid-app-for-the-new-year/

DharmendraVaishnav91 commented 8 years ago

void swizzled_pluginInitialize(id self, SEL _cmd) {...} throws an error EXC_BAD_ACCESS(code=2, address...)

jorgecachoh commented 8 years ago

Same issue with https://github.com/Pushwoosh/pushwoosh-phonegap-plugin

Is there a fix for this?