GithubHelp home page GithubHelp logo

Comments (3)

google-oss-bot avatar google-oss-bot commented on September 23, 2024

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

from firebase-unity-sdk.

argzdev avatar argzdev commented on September 23, 2024

Hey @lmt385, thanks for reaching out. I'm trying to test your scenario using our quickstart repo but it seems to work just fine. I'm testing with version Firebase Realtime Database 11.9.0 and Unity Editor 2022.3.24f1. That said, could you answer the following:

  1. You mentioned in [3] that "Error is triggered referencing persistent_connection.cc". Are you saying after adding ValueChanged callback, the error is already triggered?
  2. Can you provide a MCVE so that we can check if there's a difference in setup that's causing this issue"

Thanks in advance!

from firebase-unity-sdk.

lmt385 avatar lmt385 commented on September 23, 2024

Hello,
The error triggers upon the callback being registered, yes.

I'll see what I can do in terms of providing a MCVE.

Edit: While digging deeper, it doesn't seem to be triggering upon the listeners being registered, but at a later point related to the initial callbacks when calling GetValueAsync.

The general flow is:

  1. 3 OnValueChanged callbacks assigned, followed by 7 more once those are finished
  2. The ValueChanged callbacks in turn call a method that uses GetValueAsync for a child reference, if the value returned by the callback meets a condition
    a. So, it goes: ValueChanged Callback associated with reference.Child("attribute") -> Callback checks if condition is met -> Method that calls await reference.Child("setting").GetValueAsync()
  3. On the Mac Editor, GetValueAsync is triggering the persistent_connection.cc error if present in this flow. When commented out, the code executes without issue. GetValueAsync does not cause an error if it is not associated with the callback.

from firebase-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.