BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

Null reference "BoltCore.DisableLanBroadcast ()" #124

Closed M1raclee closed 5 years ago

M1raclee commented 5 years ago

How to reproduce issue

  1. Call "BoltNetwork.Connect" on some devices

Error:

NullReferenceException: Object reference not set to an instance of an object BoltCore.DisableLanBroadcast () BoltCore.Connect (UdpKit.UdpSession session, IProtocolToken token) BoltNetwork.Connect (UdpKit.UdpSession session, IProtocolToken token)

About 1,2k users got this error (Analytics data) for a week

(Same problem like #39)

Configuration

ramonmelo commented 5 years ago

Hello @ByvDeveloper,

Could you elaborate more about what you mean by "some devices"? Are you enabling the LAN Broadcast (calling BoltNetwork.EnableLanBroadcast()) before trying to connect to the server? Do you have any complete log of when this occurs (from both server and client)?

M1raclee commented 5 years ago

Hello, @ramonmelo. No, i'm not using EnableLanBroadcast or DisableLanBroadcast (maybe it's internal call). And i'm not have logs, cause it's errors i'm got from analytics data (firebase). Last time got this error 2 hours ago (Galaxy J6+, Android 9, Bolt 1.2.9). I and our testers personally have never been able to reproduce this error.

ramonmelo commented 5 years ago

Thanks for your feedback!

Fixed on the next release.