constant exceptions on UWP

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

creat326
Posts: 87
Joined: 13 Jun 2010, 09:50

constant exceptions on UWP

Postby creat326 » 27 Feb 2018, 15:02

Hi

I'm building for UWP from unity. On the editor everything is fine, i see no exceptions. But when I compile and run on visual studio, a master release. I keep getting these:
Exception thrown: 'System.Collections.Generic.KeyNotFoundException' in SmartFox2X.dll

The game keeps working but I get one of those every 5 or 10 seconds. On debug built on visual studio, they don't show up. So I don't know if something is getting removed or something is messed up with the code. Since we have no access to the client source code there is no way for us to debug this.

Any ideas?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: constant exceptions on UWP

Postby Lapo » 28 Feb 2018, 15:20

Hi,
what version of the C# API are you running?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
creat326
Posts: 87
Joined: 13 Jun 2010, 09:50

Re: constant exceptions on UWP

Postby creat326 » 28 Feb 2018, 16:15

the latest you have on the web site as of today: 1.7.5
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: constant exceptions on UWP

Postby Lapo » 01 Mar 2018, 08:38

Thanks. Do you have an idea of how is the error triggered?
For example, if you just connect and login to the server does this happen? Or do you need to send a specific request to see the problem in action?

In other words, can you point to any specific request that consistently causes the exception? This will help us narrow down where the problem could be.

Also can you tell me the Windows and Visual Studio versions you're running?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
creat326
Posts: 87
Joined: 13 Jun 2010, 09:50

Re: constant exceptions on UWP

Postby creat326 » 01 Mar 2018, 13:48

I just login into lobby and ask for game room, then join.
The message doesn't display on debug mode or on editor. It only shows up on UWP when built for Master (to release to the store).
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: constant exceptions on UWP

Postby Lapo » 01 Mar 2018, 13:54

Ok, thanks. We'll look into it.
When you say "It only shows up on UWP" you mean inside Visual Studio, right?

Also, you didn't ask my previous question:
Also can you tell me the Windows and Visual Studio versions you're running?


Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
creat326
Posts: 87
Joined: 13 Jun 2010, 09:50

Re: constant exceptions on UWP

Postby creat326 » 06 Mar 2018, 17:34

It happens on visual studio 2015 and 2017. Community and Pro editions.
Windows 10 pro with latest updates.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: constant exceptions on UWP

Postby Bax » 07 Mar 2018, 09:27

A few questions:

- When you build the Release version in Visual Studio, where do you see those exceptions printed?

- Did you test with one of our examples? Is the behavior the same?

- Could you provide a VS2015 example project we can test?
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 22 guests