Code Monkey home page Code Monkey logo

zmninja's Issues

Android: Http problem

I'm facing an odd problem - after a while ,http requests don't seem to be reaching my server when using the only Android device I have - Galaxy S3. I have no idea if this is a crosswalk issue or not - need to investigate.

app causes ZM crash/bad behavior after it's been asleep for a while

This issue is much better now ( it only puts about 1 error message every second or 2 ), but still occurs on a regular bases when I lock my phone while zmNinja is running. Now I have to wait a longer time it seems, but the errors still show up in syslog when I unlock my phone and view the montage. This one even caused a back trace to occur:

Sep 16 15:49:05 myZoneMonitor nph-zms[14021]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:05 myZoneMonitor nph-zms[14021]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:05 myZoneMonitor zms[14018]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:07 myZoneMonitor nph-zms[14040]: ERR [Can't insert log entry: Lost connection to MySQL server during query]
Sep 16 15:49:07 myZoneMonitor nph-zms[14040]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:07 myZoneMonitor nph-zms[14041]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Got signal 6 (Aborted), crashing]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Signal address is 0x21000036dc, from 0x7fbee34e4cc9]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x72) [0x7fbee70b5e72]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fbee5f1c340]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 2: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7fbee34e4cc9]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 3: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fbee34e80d8]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 4: /lib/x86_64-linux-gnu/libc.so.6(+0x73394) [0x7fbee3521394]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(+0x7f66e) [0x7fbee352d66e]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 6: /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18(end_server+0x35) [0x7fbee57c8c75]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 7: /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18(mysql_close+0x61) [0x7fbee57cab81]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 8: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN6Logger9terminateEv+0x79) [0x7fbee7030af9]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 9: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN6LoggerD1Ev+0x10) [0x7fbee7030e20]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 10: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z7logTermv+0x15) [0x7fbee7031035]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 11: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0x7a9) [0x7fbee7020c49]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 12: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fbee34cfec5]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: ERR [Backtrace 13: /usr/lib/zoneminder/cgi-bin/nph-zms(+0x1fb37) [0x7fbee7021b37]]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: INF [Backtrace complete, please execute the following command for more information]
Sep 16 15:49:07 myZoneMonitor nph-zms[14044]: INF [addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x7fbee70b5e72 0x7fbee5f1c340 0x7fbee34e4cc9 0x7fbee34e80d8 0x7fbee3521394 0x7fbee352d66e 0x7fbee5
7c8c75 0x7fbee57cab81 0x7fbee7030af9 0x7fbee7030e20 0x7fbee7031035 0x7fbee7020c49 0x7fbee34cfec5 0x7fbee7021b37]
Sep 16 15:49:09 myZoneMonitor zms[14074]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:11 myZoneMonitor nph-zms[14098]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:15 myZoneMonitor nph-zms[14142]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:15 myZoneMonitor nph-zms[14142]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:15 myZoneMonitor nph-zms[14148]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:15 myZoneMonitor zms[14143]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:15 myZoneMonitor nph-zms[14154]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:15 myZoneMonitor nph-zms[14154]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:17 myZoneMonitor nph-zms[14183]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:17 myZoneMonitor nph-zms[14183]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:17 myZoneMonitor nph-zms[14187]: ERR [Can't insert log entry: MySQL server has gone away]
Sep 16 15:49:17 myZoneMonitor nph-zms[14187]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:19 myZoneMonitor zms[14222]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:21 myZoneMonitor zms[14252]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:21 myZoneMonitor zms[14256]: INF [Got signal 15 (Terminated), exiting]
Sep 16 15:49:23 myZoneMonitor zms[14287]: INF [Got signal 15 (Terminated), exiting]
S

apk Download of zmNinja

Hi,
sorry me for opening an issue, but I have not another way to contact you.
I would like to install zmNinja to my Android Tablet and Phone, but I cannot find the apk.
I'm not able to compile my version at this point, I need to invest lot of effort to prepare the enviroment to compile.
Is there a repository where Can I download the apk?

Thanks

When images are loaded over a slow connection, there is a white screen till it loads

When images are loaded over a slow connection, there is a white screen till it loads --> on tracing logs it seems that nph-zms sends a blank HTTP 200 OK immediately and then transmits the image. Switching to just zms (as suggested by @knnniggett) alleviates this issue. The next issue to tackle is the delay in loading of the image - if its a large image, it still takes 4-5 seconds at times, depending on network and zms performance

app gets into weird state that prevents timeline from populating and syslog goes nuts from montage

Here is a 1 second sample of syslog when this is happening:

Aug 26 17:28:18 myZoneMonitor zms[6011]: FAT [Unable to load monitor id 1 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6012]: FAT [Unable to load monitor id 2 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6010]: INF [Got signal 15 (Terminated), exiting]
Aug 26 17:28:18 myZoneMonitor zms[6009]: FAT [Unable to load monitor id 3 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12519 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12524 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12515 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12516 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12521 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12523 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6004]: INF [Got signal 15 (Terminated), exiting]
Aug 26 17:28:18 myZoneMonitor zms[6005]: INF [Got signal 15 (Terminated), exiting]
Aug 26 17:28:18 myZoneMonitor zms[6006]: FAT [Unable to load monitor id 3 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12529 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12526 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6010]: FAT [Unable to load monitor id 4 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12517 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12522 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6005]: FAT [Unable to load monitor id 4 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6004]: FAT [Unable to load monitor id 2 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12520 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12527 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12525 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12528 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6014]: FAT [Unable to load monitor id 2 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6013]: FAT [Unable to load monitor id 1 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12531 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12533 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12530 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12532 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6015]: FAT [Unable to load monitor id 3 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12534 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12535 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6016]: FAT [Unable to load monitor id 4 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12536 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12537 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6018]: FAT [Unable to load monitor id 4 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12538 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12542 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor zms[6020]: FAT [Unable to load monitor id 1 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6019]: FAT [Unable to load monitor id 2 for streaming]
Aug 26 17:28:18 myZoneMonitor zms[6022]: FAT [Unable to load monitor id 2 for streaming]
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12539 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12540 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12545 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12548 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12541 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)
Aug 26 17:28:18 myZoneMonitor mysqld: 150826 17:28:18 [Warning] Aborted connection 12546 to db: 'zm' user: 'zmuser' host: 'localhost' (Unknown error)

Android client: System Status view returns HTTP error

@alager reports that when viewing the "System Status" screen, the HTTP APIs return an "error" like ZM returned nothing. However, he looked at logs of ZM and the request does not get there.

My hypothesis is this:
Chrome has a limit of 6 concurrent connections to one domain - when you view System Status, it shoots off 4 APIs in parallel (4 HTTP connections). In the event there are other HTTP connections that have not yet terminated in zmNinja, this may be resulting in a hang state.

In the past I've observed when you hit this limit, Chrome (the web view the client is using) does not recover well from this. In addition, I make HTTP timeouts for the system status requests long. I don't know if this adds to the issue.

This issue will track this problem as I take @alager's help to characterize this better

Latest Events panel doesn't initialize correctly on first use.

When I bring up the yellow slider for "latest events" I tap on one of the 4 choices (1 hour summary, 1 day summary, 1 week summary or 1 month summary) and nothing happens.
I then tried the '...'->filter by date-> reset and now am presented with camera names under each of the aforementioned summary groups.

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.