Giter VIP home page Giter VIP logo

Comments (5)

KieronQuinn avatar KieronQuinn commented on August 12, 2024

#482

from taptap.

e-t-l avatar e-t-l commented on August 12, 2024

#482

@KieronQuinn Thanks for the quick feedback! So, what does "maximum number of sensor listeners" mean? In my case, this happened overnight while the phone was not in use and no processes should have been starting (besides whatever routine background stuff happens 24/7).

Is there any possibility that Tap Tap has a "listener leak" (like memory leak) where it registers new sensor listeners over time without properly destroying previous ones?

Some reasons to think this might be the case:

  1. I do get this Tap Tap crash every so often, and while I don't regularly reboot my phone, I do just restart Tap Tap, and I don't immediately get the crash again. In fact, I don't get a crash again for days or weeks, even if I haven't rebooted my phone in that period. That suggests that Tap Tap is the source of the majority of the sensor listeners.
  2. While I do have some other apps that utilize sensor listeners, I have never gotten a crash like this for one of them.
  3. This crash happened in the middle of the night. Tap Tap had been started many hours, maybe even days, previous. Why is Tap Tap trying to register a new sensor listener in the middle of the night, while nothing is happening on the phone? Again, it suggests that for some reason, Tap Tap is registering more listeners than expected.

Thoughts?

from taptap.

KieronQuinn avatar KieronQuinn commented on August 12, 2024

The limit is local, per app, so other apps not getting it is irrelevant.

I know it happens sometimes, but it's very much edge case - there's only been a handful of cases in the thousands of users, so it's very rare. Tracking it down would be nigh on impossible without physical device access as I've never had it happen on my test stack.

from taptap.

e-t-l avatar e-t-l commented on August 12, 2024

Oh ok, interesting. I suppose it's more complicated than, wherever in the code is the "register listener" command, to put a "delete listeners" right before it?

from taptap.

e-t-l avatar e-t-l commented on August 12, 2024

Just want to mention that this is still happening every week or so. The most recent time it was while sitting in my home, locked, charging, not being interacted with in any way.

I understand this apparently doesn't happen to many other users, but if you can help me do a little investigating into how tap tap operates, at least:

Why is Tap Tap trying to register a new sensor listener in the middle of the night, while nothing is happening on the phone?

Is registering new listeners a schedule-based event or a trigger-based one?

Is there some way Tap Tap could clear the cache, so to speak, of listeners so that it doesn't run the risk of hitting the maximum?

from taptap.

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.