fraunhoferfokus / cordova-plugin-presentation

Create native multiscreen apps in minutes with the Cordova (W3C) Presentation API Plugin.
http://fraunhoferfokus.github.io/cordova-plugin-presentation/
Apache License 2.0
49 stars 32 forks source link

exc_bad_access code=2 #11

Open Montoya opened 8 years ago

Montoya commented 8 years ago

I am getting this error in the iOS simulator when posting large messages to the display and I have no idea why. The last log in console is: Called presentationSessionPostMessage. Here's a screenshot of the break, from libobjc.A.dylib`objc_msgSend: screen shot 2015-09-21 at 2 32 32 pm

I don't get this error when posting smaller messages. Any ideas?

mlasak commented 8 years ago

Hi, thanks for pointing out. Could you please specify "large" messages more detailed, e.g. in the form of size in bytes. BR

Montoya commented 8 years ago

Hi, the message I'm attempting to send is 141,886 characters long (apparently 141,886 bytes then).

mlasak commented 8 years ago

Ok, that's a value. But bear in mind that 1 character is not always 1 byte. Example: "I♥NY" are 4 characters, but 6 bytes ;) Anyway, we will have a look on that issue and let you know soon. BR

Montoya commented 8 years ago

Just an update, I figured I would try breaking up the postMessage into smaller messages and I'm still seeing issues, maybe because I'm posting too many messages in a row. The messages are still kind of large (a few thousand characters each) and the latest crash I got showed the following in xcode:

screen shot 2015-09-22 at 1 08 37 pm

Just a reminder, this is running the iOS Simulator with the iPad 2 as the simulated device.

louaybassbouss commented 7 years ago

FYI: The W3C Presentation (https://www.w3.org/TR/presentation-api/) will become a Recommendation soon (end of the year) and we will then publish a new version of the plugin that is fully compatible with the new version which also bring some new features which are not supported in the current version which implements an older version of the Presentation API Specification (https://www.w3.org/2014/secondscreen/presentation-api/20140721/)

qpwr commented 7 years ago

Did you solve this issue for you by any chance, @Montoya? I'm running into the same issue with my app and it doesn't seem to be deterministic.

qpwr commented 7 years ago

@louaybassbouss, I see that you answer almost all issues with the same text, pointing to a "maybe" future new version of the plugin. Besides the fact that this is not how maintaining a plugin should work: do you have any new information about the progress?