OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Run-Once Program stalls
- This topic is empty.
-
AuthorPosts
-
February 28, 2014 at 6:38 am #22775
AnonymousInactiveHi,
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,
MarkFebruary 28, 2014 at 12:58 pm #26112
SamerKeymasterI 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!
February 28, 2014 at 9:04 pm #26113
AnonymousInactiveThanks 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.
March 1, 2014 at 12:57 am #26114
SamerKeymasterOkay 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.
March 1, 2014 at 9:42 pm #26115
AnonymousInactiveThanks. 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 com.android.internal.view.IInputMethodClient$Stub$Proxy@467bfcb8 (uid=10018 pid=22535)March 1, 2014 at 10:48 pm #26116
SamerKeymasterThat was perfect! Thank you! I just pushed a fix please let me know if this helps.
March 2, 2014 at 12:35 am #26117
AnonymousInactiveThankyou 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.phpMarch 2, 2014 at 12:57 am #26118
SamerKeymasterThis 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?
March 2, 2014 at 1:39 am #26119
AnonymousInactiveHi thanks for the quick updates but no luck – same symptoms. There are no OpenSprinkler error messages in the log – did a full WAMP restart.
March 2, 2014 at 1:43 am #26120
SamerKeymasterOkay 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.
March 2, 2014 at 1:53 am #26121
AnonymousInactiveThanks 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?
March 2, 2014 at 2:03 am #26122
SamerKeymasterYea 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.
March 2, 2014 at 2:40 am #26123
SamerKeymasterI 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 start tag in sprinklers.php instead of a
March 2, 2014 at 4:55 am #26124
AnonymousInactiveExcellent! 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!
March 2, 2014 at 5:54 am #26125
SamerKeymasterThanks! Glad to hear the issue is resolved. Appreciate your logs, made it a lot easier.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Run-Once Program stalls