OpenSprinkler Forums OpenSprinkler Mobile and Web App Run-Once Program stalls

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #22775

    Anonymous
    Inactive

    Hi,

    when I select the Run-Once Program on my HTC Desire S, running Android 2.2, the ‘busy’ icon rotates without ever going the function screen. All other functions work perfectly. The Run-Once Program does work via Chrome browser access to the application. ‘Native’ access to my OS unit works fine from mobile and browser for the Run-Once Program.

    Any thoughts or advice would be appreciated.

    Regards,
    Mark

    #26112

    Samer
    Keymaster

    I will have to test against android 2.2 and let you know. I will get back to you soon.

    Update: I fired up an Android 2.2 Froyo emulator and tried this out. Seems the run-once ran without issues. Based on your description I am a bit confused when the error is occuring. Are you able to change into the runonce page? If so, is the error occuring after you hit submit?

    If it’s the second one (error submitting), it seems like a jQuery mobile issue since I don’t show a spinner on submission only on page request. If it happening during the opening of the runonce page then most likely some incompatible javascript on my part. Let me know which end so we can dive deeper into this issue. Thanks!

    #26113

    Anonymous
    Inactive

    Thanks Samer for your help.

    When Run-Once is selected on the main page, the ‘busy’ icon starts rotating and continues indefinitely. The Run-Once page never appears. When the busy icon is sitting there rotating, I can select another function without problem, and the busy icon goes away.

    #26114

    Samer
    Keymaster

    Okay good, now we know it’s my code 🙂 I reviewed the lines of code in question and nothing stands out as a culprit.

    It has to be a Javascript error and not a major syntax one. Some function isn’t available on Android 2.2 and the program is just stopping. This can be seen in the console log however I am unsure on how to get that information from you. If you can, it would be ideal to use the Chrome remote debugging tools combined with Android’s USB debugging to get the specific error message. That way I can resolve it. Otherwise, I might have to come up with a way to get error’s to me since this is the second bug I can’t really put a finger on.

    Thanks.

    #26115

    Anonymous
    Inactive

    Thanks. It looks like I cannot use the Chrome remote debug tools on And 2.2 (requires 4.0 and above). I’m not sure if I’m on the right track for retrieving the right error messages, but I downloaded an app to view logcat messages – are these the messages you need? If so, this is what I got from the viewer app over the short time that I initiated the Run-Once Program. The ‘E’ and ‘W’ are Error and Warning messages respectively.

    03-02 08:13:55.418 W/IInputConnectionWrapper(22214): showStatusIcon on inactive InputConnection
    03-02 08:13:56.958 W/IInputConnectionWrapper(198): showStatusIcon on inactive InputConnection
    03-02 08:13:59.388 E/browser (22535): Console: Uncaught illegal access http://192.168.1.118/sprinklers/:798
    03-02 08:14:00.058 E/ClockWidget(198): weatherClock onReceive~ mUseAnimation:false
    03-02 08:14:00.058 E/ClockWidget(198): handleUiMessage~ in pause. msg:36867
    03-02 08:14:00.058 E/ClockWidget(198): weatherClock onReceive~ mUseAnimation:false
    03-02 08:14:00.658 W/IInputConnectionWrapper(22535): showStatusIcon on inactive InputConnection
    03-02 08:14:00.658 W/InputManagerService(92): Starting input on non-focused client [email protected] (uid=10018 pid=22535)

    #26116

    Samer
    Keymaster

    That was perfect! Thank you! I just pushed a fix please let me know if this helps.

    #26117

    Anonymous
    Inactive

    Thankyou again. A small problem on startup. I got the new install page and filled in the basic details, and was redirected to the login page. Entered Userid and password – busy icon rotates momentarily then disappears, with login Welcome dialog box sitting there. I did a second reinstall and restarted WAMP – same result.

    The Apache log entries are:

    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Notice: Undefined index: data in C:\wamp\www\sprinklers\sprinklers.php on line 218, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Stack trace:, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 1. {main}() C:\wamp\www\sprinklers\index.php:0, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 2. require_once() C:\wamp\www\sprinklers\index.php:9, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 3. call_user_func() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.882761 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 4. login() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 5. include_once() C:\wamp\www\sprinklers\main.php:1762, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Notice: Undefined index: data in C:\wamp\www\sprinklers\sprinklers.php on line 222, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Stack trace:, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 1. {main}() C:\wamp\www\sprinklers\index.php:0, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 2. require_once() C:\wamp\www\sprinklers\index.php:9, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 3. call_user_func() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 4. login() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.921763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 5. include_once() C:\wamp\www\sprinklers\main.php:1762, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.924763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Notice: Undefined index: data in C:\wamp\www\sprinklers\sprinklers.php on line 403, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.924763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP Stack trace:, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.924763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 1. {main}() C:\wamp\www\sprinklers\index.php:0, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.925763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 2. require_once() C:\wamp\www\sprinklers\index.php:9, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.925763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 3. call_user_func() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.925763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 4. login() C:\wamp\www\sprinklers\main.php:108, referer: http://localhost/sprinklers/index.php
    [Sun Mar 02 11:29:19.925763 2014] [:error] [pid 5780:tid 1492] [client 127.0.0.1:49781] PHP 5. include_once() C:\wamp\www\sprinklers\main.php:1762, referer: http://localhost/sprinklers/index.php

    #26118

    Samer
    Keymaster

    This is an interesting error and the same one posted by @guylior earlier. Let me use your logs to try and find a solution. It seems to be isolated to WAMP users or at least Windows Apache stacks.

    Update: I posted an update, could you please try it and let me know?

    #26119

    Anonymous
    Inactive

    Hi thanks for the quick updates but no luck – same symptoms. There are no OpenSprinkler error messages in the log – did a full WAMP restart.

    #26120

    Samer
    Keymaster

    Okay I’ll just install WAMP (latest) and try this out. Seems it should instantly present itself. From there should be easier to test and fix. I’ll let you know.

    #26121

    Anonymous
    Inactive

    Thanks again. I’ve reverted to my last working install and now logging in ok – that version was downloaded and installed around 19 Feb 2014, so possibly a change since then?

    #26122

    Samer
    Keymaster

    Yea there was a change to attempt to help @guylior but it made it worse for him and yourself. I will try and track this down soon.

    #26123

    Samer
    Keymaster

    I believe this has been fixed. Let me know how it works now if you don’t mind.

    Thanks!

    Update: The problem was two fold. One you don’t have gettext and I have a bug for users without gettext. This has been fixed. Secondly, I had a

    #26124

    Anonymous
    Inactive

    Excellent! All working, including Run-Once Program on Android. As an aside on gettext, remember from our recent bug diagnosis, that WAMP has the gettext extension disabled by default and it is a simple matter to enable it in the PHP extension list.

    Thanks again for such quick response in tracking down and fixing the issues. Keep up the good work!

    #26125

    Samer
    Keymaster

    Thanks! Glad to hear the issue is resolved. Appreciate your logs, made it a lot easier.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Mobile and Web App Run-Once Program stalls