discuss.cocos2d-x.org Open in urlscan Pro
184.169.198.12  Public Scan

URL: https://discuss.cocos2d-x.org/t/application-violated-contract-by-causing-uiapplicationmain-to-return-this-incident-will-be-rep...
Submission: On October 12 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

POST /login

<form id="hidden-login-form" method="post" action="/login" style="display: none;">
  <input name="username" type="text" id="signin_username">
  <input name="password" type="password" id="signin_password">
  <input name="redirect" type="hidden">
  <input type="submit" id="signin-button" value="Log In">
</form>

Text Content

Skip to main content
Log In
 * 
 * 


APPLICATION VIOLATED CONTRACT BY CAUSING UIAPPLICATIONMAIN() TO RETURN. THIS
INCIDENT WILL BE REPORTED

cocos2d-x





You have selected 0 posts.

select all

cancel selecting


ebouchard
2
Feb '21


I just realized that when I run my games on the emulator and quit the game (by
killing the emulator, not by using the Square in XCode to kill it), the game
crashes and I receive this warning from within the assembly code where it
crashed. Anyone else seeing this? Any idea? This is with version 3.17. I first
thought it was linked to my new MAC, but no, it has been there for quite a
while.

It crashes here: with this code: Thread 1: signal SIGTERM
int main(int argc, char *argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, @“AppController”); Crash here
}
}

when I go to assembly I see this:

0x7fff2469bba8 <+101>: leaq 0x7f3624(%rip), %rdi ; “Application violated
contract by causing UIApplicationMain() to return. This incident will be
reported.”

EDIT: I can reproduce it with the hello world cocos app

Crash appears on; MAC OS Big Sur, XCode 12.4, Emulator with 14.4







Reply


SUGGESTED TOPICS

Topic Replies Views Activity Don’t see cpp folder in Android Studio
cocos2d-x
0 260 Oct '22 How does cocos2d-x-4 cross-compile? I compiled cocos2d-x-4 on
aarch64 ubuntu system unsuccessfully?
cocos2d-x
1 212 Nov '22 Please anyone can help to solve this cocos2dx game **Crash**
cocos2d-x
3 338 Dec '22 How to make cocos 2d window big (windows)
cocos2d-x
1 203 Dec '22 Error trying to implement tiled map
cocos2d-x
5 278 Dec '22


WANT TO READ MORE? BROWSE OTHER TOPICS IN COCOS2D-X OR VIEW LATEST TOPICS.

Share






Invalid date Invalid date