C++ API many crash reports

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

tyagunov
Posts: 9
Joined: 08 Dec 2016, 12:39

C++ API many crash reports

Postby tyagunov » 10 Mar 2017, 07:56

Hi,
we have latest C++ Smarfox API inside game client for iOS and Android. We found that API is not stable. We have many crash reports from crashlytics from our users.

My question is: these problems only at C++ API and we should move to native iOS / Android API?

1. ipv6 force config not worked it's worked only if set directly at smartfox class (found in test at ipv6 network)
2. disable BlueBox not worked too. Smartfox tried connect by Bluebox anyway (making 400 threads and crash check attached screenshots)
3. BlueBox has many crashes. (we sent crash reports by email week ago)

P.S. We have full license for one server.

Regards,
Andrey
Attachments
Screen Shot 2017-03-10 at 10.37.16.jpg
(246.9 KiB) Not downloaded yet
Screen Shot 2017-03-10 at 10.36.46.jpg
(217.78 KiB) Not downloaded yet
Screen Shot 2017-03-10 at 10.32.50.jpg
(245.43 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 20099
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: C++ API many crash reports

Postby Lapo » 10 Mar 2017, 08:55

Hi Andrey,
thanks for reporting. We're currently working on the list you have sent. Unfortunately reproducing these issues in C++ requires a significant amount of work, due to testing and reproducing on the specific platforms.

As regards your question about stability, C++ is the latest addition to our family of API and the complexity of porting and running on a wide number of runtimes certainly makes it harder to provide full test coverage on all platforms.

With this said we have a good number of clients working on C++ projects and have tested a good selection of apps with no outstanding issues or particular stability problems.

To finish answering your question, native Objective-C and Java API are perfectly stable.

We'll investigate the issues you have described and report back.
Lapo
--
gotoAndPlay()
...addicted to flash games
tyagunov
Posts: 9
Joined: 08 Dec 2016, 12:39

Re: C++ API many crash reports

Postby tyagunov » 10 Mar 2017, 09:54

Hi, Lapo

Thank you for you answer. We will think about move to native libs. And send more crashreports C++ API for your information.

Regards,
Andrey
User avatar
Lapo
Site Admin
Posts: 20099
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: C++ API many crash reports

Postby Lapo » 11 Mar 2017, 09:55

As regards this issue:
2. disable BlueBox not worked too. Smartfox tried connect by Bluebox anyway (making 400 threads and crash check attached screenshots)

It's not clear how this could happen. Especially the numerous thread count. It sounds like you're calling multiple times the "Connect" method or something like that...

Can you please explain under which circumstances does this happen exactly?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
nesv021
Posts: 3
Joined: 24 Apr 2018, 05:52

Re: C++ API many crash reports

Postby nesv021 » 03 May 2018, 06:18

Hi,
we have latest C++ Smarfox API inside game client for iOS. We have many same crash reports from our users.

Thanks.
Attachments
Screenshot at May 02 15-54-54.png
(166.6 KiB) Not downloaded yet
Screenshot at May 03 09-47-36.png
(176.2 KiB) Not downloaded yet
Screenshot at May 03 11-12-03.png
(211.17 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 20099
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: C++ API many crash reports

Postby Lapo » 03 May 2018, 15:49

Hi,
thanks. Unfortunately the images are too low-res to be fully readable and the stack traces are not entirely visible.

It would be better if you could post the complete details for each exception along with a bit of context (i.e. what you're doing, if it can be reproduced and with which steps)

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
nesv021
Posts: 3
Joined: 24 Apr 2018, 05:52

Re: C++ API many crash reports

Postby nesv021 » 04 May 2018, 06:55

Some information about my bugs

My APP (Game) : Card and Casino Game
Technologies I am using : Cocos2dx 3.16, SFS2X C++ API 1.7.5, Xcode version 9.3.

All of Bugs happening were “Crash bug”: While I was playing card game in table (My game is forced to stop suddenly and get off to Home screen of Phone) .
I am setting my game that: When players do anything activities in room, all of request will be send to server for processing and wait for returning from server.


But when I run game and play for a while in table (card playing room in game), these crash bugs will appear frequently, But I don’t know where these bug came from of which parts, or from which operations?



1. When I run game and play for a while, these bugs are still happened parts concerning “Thread”

Image

2. Sometimes these bugs appeared while calling “ProcessEvents”
Image

3. When I run game and play for a while, “Sending request” meets some errors frequently
Image


4. Error happened when I run game process concerning “connecting to Server”
Image
Image


Note: Actually I don’t know what these errors are, then I would like to send you the above information. If you find out some signal that which these errors are and want to make clearer, please ask me to send more information.
I am very grateful for your support.
Thanks and best regards
nesv021
Posts: 3
Joined: 24 Apr 2018, 05:52

Re: C++ API many crash reports

Postby nesv021 » 09 May 2018, 00:52

Dear Mr Lapo,
I am still confused with these errors. Can you give me some information what I should do? or Do I have to wait for your investigation in smartfox?. Actually I love to use this smartfox server for my APP but I am still waiting for your respondence. Could you let me know as soon as possible because my customer is complaining about being late release of my APP. Pardon me for this urgent request and hope for your cooperation

Yours sincerely.
User avatar
Lapo
Site Admin
Posts: 20099
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: C++ API many crash reports

Postby Lapo » 09 May 2018, 16:25

Hi,
yes we've been investigating, sorry for the delay. Almost all these error seem to deal with "bad" pointers accessing an invalid memory location. Unfortunately it's pretty difficult to understand what is going on and where exactly the problem occurs without a debugging session.

We have many customers working with C++ and we don't have reports of similar issues, so in order to understand this better we should be able to reproduce them.

If any of these problems can be reproduced could you send us a code snippet and a description of how we can re-create them?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 1 guest