diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.57k stars 279 forks source link

Entertainment mode causing app/program crash #245

Closed andyman1222 closed 4 years ago

andyman1222 commented 5 years ago

When I try to set up entertainment mode from the Hue app, the app would instead crash and close on my phone. In addition, if I do have an entertainment mode already set up and try to use it in another app like Synapse or the Hue desktop app, both of those would bug out and/or crash. I have tested with a new install of Hue Emulator (deleting /opt/hue-emulator and using automatic install to reinstall) yet the crashes still occur. This has not been present in previous updates (I often update once the outdated swversion prevents programs from working correctly). On the console, HueEmulator throws an error that "connection was reset by peer."

alexyao2015 commented 5 years ago

I'm not sure if I have the same issue, but I've also noticed that sometimes the hue app would crash when trying to open the entertainment group to edit lights. Not sure if this is the same issue, but I haven't been able to reliably reproduce it so its hard to fix.

alexyao2015 commented 5 years ago

Are you able to find a way to reproduce this

andyman1222 commented 5 years ago

There's 2 ways that I know of, at least for myself

This is on a new setup of diyHue with at least one light that's compatible with Entertainment on the config. Everything else should be default.

  1. go into the app on a phone and connect to the hub (rpi)
  2. go to the entertainment menu
  3. set up the entertainment mode, up until you are done positioning lights
  4. The next window is to test the lights. Upon pressing the green button "lights are ready," the app waits about a second and then closes, without any error.
  5. Upon going back into the app, the entertainment area would show up as set up, however.

Alternate method, with Synapse. As I said, after the app on your phone crashes an entertainment area ends up being made anyways.

  1. Make sure you have Razer Synapse with Hue installed, or another program that uses entertainment mode, like the Hue Sync desktop app
  2. In that app, add the bridge as you normally would.
  3. If using Synapse, attempt to go to the hue tab, or I think the studio tab. The app should act unresponsive, and not change screens whatsoever. For the Hue Sync desktop app, it throws up an error message I believe. Other programs may vary on how they respond.

On Wed, Oct 30, 2019 at 1:59 PM alexyao2015 notifications@github.com wrote:

Are you able to find a way to reproduce this

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diyhue/diyHue/issues/245?email_source=notifications&email_token=ADM2X7C5ZTNVMU2QFYBHKZLQRHDR3A5CNFSM4JFLRAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECVGKWY#issuecomment-548037979, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2X7BRTNFJKBNU3HLNOQLQRHDR3ANCNFSM4JFLRACQ .

-- Andy

alexyao2015 commented 5 years ago

Hmm ok. I don't have a Razer Synapse so I can only try to reproduce using the first method. It works fine for me and I can test without any problems. What firmware are you using for the bulbs?

andyman1222 commented 5 years ago

I am using custom (native) bulbs. Could it be an issue with the config file? Like, same MAC addresses (which hasn't been a problem in the past) or unknown swversion or firmware for the bulbs?

On Mon, Nov 4, 2019 at 12:33 PM alexyao2015 notifications@github.com wrote:

Hmm ok. I don't have a Razer Synapse so I can only try to reproduce using the first method. It works fine for me and I can test without any problems. What firmware are you using for the bulbs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diyhue/diyHue/issues/245?email_source=notifications&email_token=ADM2X7ASNAWEM2PIXNXVP2DQSBMFRA5CNFSM4JFLRAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDACKEY#issuecomment-549463315, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2X7DMMT34L2KQHRVVNMTQSBMFRANCNFSM4JFLRACQ .

-- Andy

alexyao2015 commented 5 years ago

Potentially? Can you try flashing over to ESPHome as a test? https://github.com/diyhue/Lights/tree/master/ESPHome

Native firmware should work fine though...

GitHub
diyhue/Lights
DIY lights with support for diyHue. Contribute to diyhue/Lights development by creating an account on GitHub.
andyman1222 commented 5 years ago

The bulbs aren't bulbs, they're LED strips controlled directly on the rpi. I put some dummy value in the firmware for the bulbs. Originally, I implemented my own entertainment protocol, which received and translated the UDP connection, instead of using diyHue's entertainment service. I did this before diyHue was put in its own organization and have changed to the current entertainment service, but could it be possible that diyHue's entertainment service working with native lights is what's crashing the app, and using my own implementation might fix it?

On Mon, Nov 4, 2019 at 12:44 PM alexyao2015 notifications@github.com wrote:

Potentially? Can you try flashing over to ESPHome as a test? https://github.com/diyhue/Lights/tree/master/ESPHome

Native firmware should work fine though...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diyhue/diyHue/issues/245?email_source=notifications&email_token=ADM2X7HA5ZEQ43BHZNGORPDQSBNORA5CNFSM4JFLRAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDADKRY#issuecomment-549467463, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2X7EXUAMCIBBP6REESUTQSBNORANCNFSM4JFLRACQ .

-- Andy

alexyao2015 commented 5 years ago

Hmm I haven't been here for that long so I'm not so sure about any of that. Also I have never used the native firmware because my bulbs are not compatible so I have no way of testing. I know that ESPhome udp works perfectly since I wrote and tested that part

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 2 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed as it has not had any recent activity. Thank you for your contributions.