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

Crash on IOS8 [in combination with Pusher plugin] #196

Closed
Moussawi7 opened this issue Mar 4, 2015 · 5 comments
Closed

Crash on IOS8 [in combination with Pusher plugin] #196

Moussawi7 opened this issue Mar 4, 2015 · 5 comments

Comments

@Moussawi7
Copy link

Hi,
The plugin work excellent on Android devices, and IOS7-, but it crash randomly on IOS8.
After debugging, i found the following exception on Xcode:

libobjc.A.dylib`objc_msgSend:
0x11021e000:  testq  %rdi, %rdi
0x11021e003:  jle    0x11021e068               ; objc_msgSend + 104  
0x11021e005:  movq   (%rdi), %r11
0x11021e008:  movq   %rsi, %r10   Thread 6:EXC_BAD_ACCESS( code =EXC_I386_GPFLT)
0x11021e00b:  andl   0x18(%r11), %r10d
0x11021e00f:  shlq   $0x4, %r10
0x11021e013:  addq   0x10(%r11), %r10

Thank you.

@brodycj
Copy link
Contributor

brodycj commented Mar 4, 2015

Unfortunately this is not enough information. A stack trace to show how objc_msgSend was called would help find the cause. A small test program to demonstrate the issue would be especially helpful.

@Moussawi7
Copy link
Author

Hi @brodybits ,
In fact, It's too complicated to create a small program, specially that the application call server many times during initialization.
but i discovered that if i prevent pusher from running, the issue disappears. so I think that there are something cause conflicts between pusher and your plugin!!.
Thanks.

@Moussawi7
Copy link
Author

Hi @brodybits ,
when i reported the issue to you, I also reported the issue to pusher, and this was the response:
" _try calling SQLite and Pusher functions in separate ticks (using setTimeout with 0 timeout)_ ".
and this trick work for me.
pusher/pusher-js#103 (comment)
Thank you

@brodycj
Copy link
Contributor

brodycj commented Mar 16, 2015

Thanks @Moussawi7. This "trick" will be documented (when I get a chance).

brodycj pushed a commit that referenced this issue Apr 21, 2015
… with app name (ref: #243); possible stability issue with SockJS client (ref: #196); retrieve of large data set can be too slow due to JSON (ref: #127); memory issue when adding large numbers of records (ref: #18)
@brodycj
Copy link
Contributor

brodycj commented Apr 21, 2015

Documented as a known issue in README.md

@brodycj brodycj closed this as completed Apr 21, 2015
@brodycj brodycj changed the title Crash on IOS8 Crash on IOS8 [in combination with Pusher plugin] May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants