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

Ia7 v1.3.560 #620

Merged
merged 29 commits into from
Oct 2, 2016
Merged

Ia7 v1.3.560 #620

merged 29 commits into from
Oct 2, 2016

Conversation

hplato
Copy link
Collaborator

@hplato hplato commented Sep 21, 2016

Bring the Scheduler UI and object logger components into master. The collections.json updater is now in a lib file, which doesn't require the user to enable a common code module for the authorization updates to apply. The common code module will need to be removed.

Also includes an older version of Wayne's schedule.pm, which should be updated with his revised version.

hplato and others added 29 commits August 8, 2016 17:30
…_dir to the floorplan base image directory. For example

floorplan_basedir_img : /ia7_floorplans

$config_parm{html_alias_ia7_floorplans} = "/usr/local/floorplans"
…g_poll fetch

utility subroutine works with new format, and revised UI for displaying on object modal
There were some occurrences of URLHash.show_pos missed during the change
to an explicit developer mode
…icker dates to YYYY-MM-DD, added graph= for json history to allow for tabular display
Fixed jqCron needing 1-7 for DOW. added in conversion subroutine. Included Tobi's fixes for datepicker.
@hollie hollie added this to the MisterHouse v4.2 milestone Sep 26, 2016
@hollie
Copy link
Owner

hollie commented Sep 27, 2016

Hello Howard,

I'm trying this pull request out, and I was able to crash MisterHouse by clicking the buttons in the web interface. The thing is: I can't reproduce it reliably. Maybe a missing error/safety check?

I do have an error log:

Can't use string ("") as a HASH ref while "strict refs" in use at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412.
 at mh line 31.
    main::__ANON__("Can't use string (\"\") as a HASH ref while \"strict refs\" in us"...) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412
    main::json_get("GET", ARRAY(0x7fa942909c28), HASH(0x7fa941af5a20), undef) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 99
    main::json() called at /Users/lieven/projects/mrhouse/master/bin/../lib/http_server.pl line 544
    main::http_process_request(IO::Socket::INET=GLOB(0x7fa94239c670)) called at mh line 2745
    main::check_for_socket_data_http called at mh line 1821
    main::check_for_action called at mh line 4037
    main::monitor_commands called at mh line 8217
mh rc=1
-n mh had an unexpected exit
 ... sleep a bit, then restarting

@hplato
Copy link
Collaborator Author

hplato commented Sep 27, 2016

Weird, if I look at line 412 on the v1.3.560 commit is in the RRD section

 $data{'last_update'} = $xml_info->{'last_update'} * 1000 if ( defined $xml_info->{'last_update'} );

I think this error is that there is a null reference in a hash. The above line doesn’t have a variable as a hash reference.

What were you doing when it happened? That line is close to the new object logger stuff. Maybe add a print line after "if ( $path[0] eq 'history') {“ so we can narrow down the area?

On Sep 27, 2016, at 1:59 PM, Lieven Hollevoet [email protected] wrote:

Hello Howard,

I'm trying this pull request out, and I was able to crash MisterHouse by clicking the buttons in the web interface. The thing is: I can't reproduce it reliably. Maybe a missing error/safety check?

I do have an error log:

Can't use string ("") as a HASH ref while "strict refs" in use at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412.
at mh line 31.
main::ANON("Can't use string ("") as a HASH ref while "strict refs" in us"...) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412
main::json_get("GET", ARRAY(0x7fa942909c28), HASH(0x7fa941af5a20), undef) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 99
main::json() called at /Users/lieven/projects/mrhouse/master/bin/../lib/http_server.pl line 544
main::http_process_request(IO::Socket::INET=GLOB(0x7fa94239c670)) called at mh line 2745
main::check_for_socket_data_http called at mh line 1821
main::check_for_action called at mh line 4037
main::monitor_commands called at mh line 8217
mh rc=1
-n mh had an unexpected exit
... sleep a bit, then restarting

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #620 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AExbSHK1kPvPUUcrTsUGqcLNzJFePhuvks5quXWugaJpZM4KCXj8.

@hplato
Copy link
Collaborator Author

hplato commented Sep 29, 2016

Were you able to reproduce the error? I've been using the new code on my production setup for the past few weeks without any crashes.

Sent from my mobile device.

On Sep 27, 2016, at 1:59 PM, Lieven Hollevoet [email protected] wrote:

Hello Howard,

I'm trying this pull request out, and I was able to crash MisterHouse by clicking the buttons in the web interface. The thing is: I can't reproduce it reliably. Maybe a missing error/safety check?

I do have an error log:

Can't use string ("") as a HASH ref while "strict refs" in use at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412.
at mh line 31.
main::ANON("Can't use string ("") as a HASH ref while "strict refs" in us"...) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 412
main::json_get("GET", ARRAY(0x7fa942909c28), HASH(0x7fa941af5a20), undef) called at /Users/lieven/projects/mrhouse/master/bin/../lib/json_server.pl line 99
main::json() called at /Users/lieven/projects/mrhouse/master/bin/../lib/http_server.pl line 544
main::http_process_request(IO::Socket::INET=GLOB(0x7fa94239c670)) called at mh line 2745
main::check_for_socket_data_http called at mh line 1821
main::check_for_action called at mh line 4037
main::monitor_commands called at mh line 8217
mh rc=1
-n mh had an unexpected exit
... sleep a bit, then restarting

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@hollie
Copy link
Owner

hollie commented Oct 1, 2016

Hello Howard,

no, I was not able to reproduce it. I'd not wait to merge this pull request.

Best regards,
Lieven.

@hplato hplato merged commit ef08d21 into hollie:master Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants