-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
HA non-responsive with LIRC enabled #2266
Comments
Yikes. Sorry about that. I'm not sure why that would happen. I did an unrelated error handling PR just a minute ago (#2267) but that would only help if you saw an exception in the log related to a The whole LIRC component is in its own separate thread so it's indeed surprising that this happened. Are there any other useful log files? Does LIRC work well if you just shut down home-assistant and use the |
There is actually no exception in the log file related to the lirc is working well with the Also, there doesn't seem to be any other logs generated which can indicate any issue. |
Fascinating. Can you attach the output of |
Also, output from |
Here it is...
|
Ok I think the home-assistant.log here was truncated after you removed |
Actually I put back the lirc: in the configuration.yaml and restarted ha Rgds/KP On 10 June 2016 at 19:40, Nick Touran [email protected] wrote:
|
Very strange. In that case lirc isn't even starting up at all for you. Here's what mine gives after starting hass, pressing some buttons, and stopping hass, so this is the expected behavior
The log you mention would be helpful. UPDATE: I accidentally included this line but that's in my unpushed code. You won't have this:
Also, it's clear that when you go to the command line stop it it doesn't stop. But just to clarify, you're saying that HA freezes on start completely? No UI, nothing? |
Hi, I have now performed the following steps:
Now if you check the journal, HA process is stuck at
It stops again at 16:03:22 till I press another key. Finally when I repeatedly keep pressing the keys on the IR remote, the interface is able to do something, but most of the processes are already timed out. Finally I issued a I have attached the log and the journalctl output as per below links. |
Also to add, you are right, when i say HA is frozen it means no UI or anything till i press a key on the IR. If i keep pressing keys on my remote, i can get HA to work, it will stop responding as soon as i stop pressing any key! What i feel is, somehow in my HA installation, LIRC is starting up, but its not being forked in its own thread somehow! |
Check this out: tompreston/python-lirc#2 (comment). In the
This was apparently fixed in python-lirc 1.2.1. What version of that library do you have?
If you have an older version, run NOTE: The dependency system of hass should have caught this but we put it as a non-forced installation because not everyone has the lirc libraries required to build this module. If this fixes your problem I will add a step to the installation instructions to ensure people have the proper version. |
You are right.. Its seems to be the same issue, however its not being fixed by the Looks like it was installed in my system using a debian package and its now conflicting with the installation in python somehow. Trying to clean the package mess now! Will let know the update so that other might not face similar fate. Thanks a lot for your help :) Cheers Mate ! |
Awesome. Yeah try uninstalling the package through debian and then installing with the |
Actually
Post this I installed Actually this seems to be a knows issue Python Lirc blocks code even when blocking is off I managed to solve this by modifying the following line in Original Line: Modified Line: So Finally I am able to use LIRC component on HA... Cheers 👍 |
It's interesting this solves it for you as we explicitly pass in |
Correct, I saw that.. Actually I am also wondering why this might be the On 11 June 2016 at 10:41, Paulus Schoutsen [email protected] wrote:
|
Home Assistant release (
hass --version
):hass --version
0.21.0
Python release (
python3 --version
):python3 --version
Python 3.4.2
Component/platform:
lirc
Description of problem:
With LIRC enabled, the HA instance completely freezes. Even 'systemctl restart home-assistant' doesn't work and it ends up killing the instance after a timeout waiting for the process to end graciously.
However, in case you keep pressing some button on the IR remote, the HA instance doesn't freeze. ex:
Froze for 4 minutes at the below line:
Jun 10 00:31:10 pi2 hass[446]: INFO:homeassistant.components.mysensors:Adding new devices: <Entity Thermostat 8 0: None>
After I pressed a key on my IR remote, it started up again for some seconds and froze again.
I had to keep the IR remote key depressed for a long time to successfully start and then stop the ha instance and remove lirc from the config.
Expected:
HA instance doesn't freeze with LIRC enabled.
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
N/A
Additional info:
The text was updated successfully, but these errors were encountered: