Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmNinja stops responding when Timeline selected (some android devices?) #1006

Closed
Alf626 opened this issue Oct 19, 2020 · 9 comments
Closed

Comments

@Alf626
Copy link

Alf626 commented Oct 19, 2020

zmNinja stops responding when Timeline is selected. Occurs every time, so very reproducible.

zmNinja 1.6.000
Android 10 (Galaxy S10e)
ZoneMinder 1.34.21

Screenshot_20201018-175945_zmNinja

@lucasnz
Copy link
Contributor

lucasnz commented Oct 19, 2020

I get this too - if you click wait it eventually loads... I wonder if we should change the default to 1 hour or something shorter? Also, ideally we'd update the logic so it doesn't lock up the app while loading.

@pliablepixels
Copy link
Member

pliablepixels commented Oct 19, 2020

There is a setting in Developer settings where you can reduce the # of events it tries to retrieve. This behavior is device dependent. Max Items for Timeline - reduce it to 500

@lucasnz
Copy link
Contributor

lucasnz commented Oct 19, 2020

I had to reduce it to 50. But that resolves the issue.. But it probably shouldn't lock up the app.

@pliablepixels
Copy link
Member

My guess is it’s happening inside visjs if it’s locking. 50 is way too less. I’m regularly viewing 2000 on my iPhone with 7 monitors 3 of which are on continuous record for 45min segments. They load and render in <4 secs.

@lucasnz
Copy link
Contributor

lucasnz commented Oct 20, 2020

I set it back to 2000 to test. It appears to render the graph (takes about 2 seconds), then freezes the app for about 15 seconds. Nothing visually changes excepted a snapshot appears. I haven't looked at the code. What happens between after the graph is rendered?

@pliablepixels
Copy link
Member

pliablepixels commented Oct 20, 2020

Nothing as far as I know. The entire user interaction is handled by Visjs. There were performance issues I had raised in 2015 that got resolved later. See almende/vis#1158. Might be time to look at recent versions of visjs

My guess is you are getting locked in touch interactions.

@Alf626
Copy link
Author

Alf626 commented Oct 22, 2020

I had to drop it down to 100, but that did seem to fix the issue. Thanks.

@pliablepixels
Copy link
Member

This is troubling. Anything less than 1000 locking up a device is odd. I'll investigate.

@pliablepixels pliablepixels changed the title zmNinja stops responding when Timeline selected zmNinja stops responding when Timeline selected (some android devices?) Oct 23, 2020
@stale
Copy link

stale bot commented Dec 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 19, 2020
@stale stale bot closed this as completed Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants