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

swapBuffers on ios 11 #18510

Open
deguilardi opened this issue Nov 27, 2017 · 13 comments
Open

swapBuffers on ios 11 #18510

deguilardi opened this issue Nov 27, 2017 · 13 comments

Comments

@deguilardi
Copy link

  • cocos2d-x version: 3.14.1
  • developing environments
    • Xcode version: 9.1

Steps to Reproduce:
Happens on ios 11 only
This error is being caught by crashlytics, I don't know what exactly is causing it.
It is happening on ALL my apps.

Link to the crashlytics full report:
http://crashes.to/s/c049fb56d08

@EricDDK
Copy link
Contributor

EricDDK commented Dec 5, 2017

I have the same crash in my apps . IOS 11+ occupy 90 percents

@EricDDK
Copy link
Contributor

EricDDK commented Dec 5, 2017

My measures is add Director::getInstance()->stopAnimation() and Director::getInstance()->startAnimation(); in applicationDidEnterBackground and applicationWillEnterForeground func , but I haven't update . so I do not know how effective it is。

@dumganhar
Copy link

screen shot 2017-12-08 at 10 32 24

I notice that there is a line
MyDelegate.swift line 18
which is a swift source code. It doesn't belong to cocos2d-x source code.
So you modified some thing right?
Could you reproduce this bug on your iOS 11 devices?

@deguilardi
Copy link
Author

Actually a lot of random crashes will also trigger this error.
The MyDelegate is nothing more than the delegate of the app (where the app starts from).
To you guys have an idea, I could reduce this error rate by 50% when I applied the following patch: 25c2403#diff-4e41f257e5233b8a616f60b0d86b5af8

Because of that missing colon, the app was crashing right there and it was a nightmare to figure it out. But anyways, there are still random things triggering this error.

@shaniamjad
Copy link

Guys, any update on fixing this crash? I am having a similar crash on crashlytics for my app as well.

screen shot 2018-05-31 at 12 21 48 pm

@umair6
Copy link
Contributor

umair6 commented Mar 19, 2019

Any update on this crash? Facing this crash in my games too.

@qoozta
Copy link

qoozta commented Apr 10, 2019

This crash is getting a serious trend in our app, especially after iOS 12, any idea?

@EricDDK
Copy link
Contributor

EricDDK commented Apr 10, 2019

This crash is getting a serious trend in our app, especially after iOS 12, any idea?

update the engine to 3.17.1

@xubing
Copy link

xubing commented Jun 14, 2019

This crash is getting a serious trend in our app, especially after iOS 12, any idea?

update the engine to 3.17.1

I don't think it's a good idea.. Maybe there is the same crash in the latest version.
I met this crash, I move some third sdk initial after the game start, the crash disappear.

@umair6
Copy link
Contributor

umair6 commented Jun 14, 2019

@xubing Can you please elaborate your solution a bit?
Which SDK you moved from start?

@deguilardi
Copy link
Author

This error is trending like never before. Any updates?

@minggo
Copy link
Contributor

minggo commented Dec 19, 2019

May be should update doCaller in CCDirectorCaller-ios.mm as latest v3 codes

if (cocos2dxContext != [EAGLContext currentContext])
glFlush();
[EAGLContext setCurrentContext: cocos2dxContext];

@deguilardi
Copy link
Author

Well, I can't recompile cocos libs as I am still getting the error #18667 opened almost two years ago.

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

8 participants