Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exc_bad_access code=2 #11

Open
Montoya opened this issue Sep 21, 2015 · 7 comments
Open

exc_bad_access code=2 #11

Montoya opened this issue Sep 21, 2015 · 7 comments

Comments

@Montoya
Copy link

Montoya commented Sep 21, 2015

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
Copy link
Member

mlasak commented Sep 21, 2015

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

@Montoya
Copy link
Author

Montoya commented Sep 22, 2015

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

@mlasak
Copy link
Member

mlasak commented Sep 22, 2015

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
Copy link
Author

Montoya commented Sep 22, 2015

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
Copy link
Contributor

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
Copy link

qpwr commented Apr 6, 2017

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
Copy link

qpwr commented Apr 6, 2017

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants