Announcement

Collapse
No announcement yet.

a nill instance was returned

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bsobel
    replied
    Here you go. Saw that the Massage Room device was already duplicated, also noticed that the player table didn't have names for many and IPs for some devices...
    Attached Files

    Leave a comment:


  • dcorsus
    replied
    Originally posted by bsobel View Post
    Here is a thread from the python imp called SoCo (used to use it prior to your plugin), seems to be same issue:

    https://github.com/SoCo/SoCo/issues/518

    Key takeaway is once the errors occurs, may have to go to the device directly with a get request to get the page instead of relying on UPnP. Maybe a Sonos UPnP bug... Any chance you could consider testing that option, if you receive a 501 fall back to a direct request with the player instead of via UPnP?
    I suspect that the 501 error is a Sonos UPNP bug. Wouldn't be surprised that their internal buffer isn't big enough (or the UPNP buffer size is exceeded) because it returns quite a bit of info ....

    Unfortunately, I use that info for alarms and pairing info, so that might be an issue.

    I'm also wondering whether the duplicate players has perhaps something to do with HS. I see you have about 560 devices belonging to this PI, wonder if there is some other bug lurking somewhere. Long time ago, another user found and issue when # devices being >10000. Another source could be the cashing of .ini by HS, I wonder if it starts failing functions if some of the sections become too large. Need to think how I can figure this out.
    I may need a longer term log.

    Here's what I might need:
    a/ set the pi debug log (not superdebug)
    b/ set the log to disk flag
    c/ rather than deleting the .ini file use the "delete all players button at the bottom of the config page". This will cause the PI to restart
    d/ let it run for say an hour (maybe we'll need to let it run until we see a duplicate player)
    e/ turn log to disk off
    f/ post log and ini file

    Dirk

    Leave a comment:


  • bsobel
    replied
    Here is a thread from the python imp called SoCo (used to use it prior to your plugin), seems to be same issue:

    https://github.com/SoCo/SoCo/issues/518

    Key takeaway is once the errors occurs, may have to go to the device directly with a get request to get the page instead of relying on UPnP. Maybe a Sonos UPnP bug... Any chance you could consider testing that option, if you receive a 501 fall back to a direct request with the player instead of via UPnP?

    Leave a comment:


  • bsobel
    replied
    On the menu you can see that the duplicates are showing in some but not all cases I think, also (not sure related) the stereo pairs show up (the _RF units). I would think those should collapse into one unit hiding the pair, like the Sonos app, no?
    Click image for larger version  Name:	Screen Shot 2018-09-16 at 11.22.57 AM.png Views:	2 Size:	351.0 KB ID:	1247719
    Attached Files

    Leave a comment:


  • bsobel
    replied
    Originally posted by dcorsus View Post

    WOW ....
    How many players?
    I already see duplicated players in the table. I guess this was not after you deleted the sonos.ini file, right? How long ago was that? I wonder if this a load/timing thing
    I reset the configuration a few days ago, so this is the current sonos.ini. I do see some name errors that come up with stereo pairs (I started a thread about that, don't think you responded to that one yet) No idea why the zones are 'duplicating'...

    On the zone count, yeah this house is pushing the limits with Sonos (my others all have < 10 zones). Have been in discussions in the past with their CEO on moving the zone limit to 64, but no luck yet

    Leave a comment:


  • bsobel
    replied
    Fyi, looking at the log, I see the GetZoneGroupState 500 errors, if I go to those URL's directly with a browser they render the XML just fine... Not sure what that suggests yet, but FYI...

    Leave a comment:


  • dcorsus
    replied
    Originally posted by bsobel View Post
    Here is a printout of the full settings page...
    WOW ....
    How many players?
    I already see duplicated players in the table. I guess this was not after you deleted the sonos.ini file, right? How long ago was that? I wonder if this a load/timing thing

    Leave a comment:


  • bsobel
    replied
    While I am a Sonos beta member, I am not currently running a beta. I am on 9.1 release build 45156150

    Sonos about info:


    Associated ZP: 10.1.3.126

    ---------------------------------

    Boost: Boost Living

    Serial Number: B8-E9-37-0C-58-CA:0

    Version: 9.1 (build 45156150)

    Hardware Version: 1.12.1.2-1

    Series ID: A100

    IP Address: 10.1.3.100

    WM: 0

    ---------------------------------

    Boost: Boost Screening

    Serial Number: B8-E9-37-0E-5C-96:5

    Version: 9.1 (build 45156150)

    Hardware Version: 1.12.1.2-1

    Series ID: A100

    IP Address: 10.1.3.143

    WM: 0

    ---------------------------------

    Play:3: Breakfast Room

    Serial Number: 00-0E-58-F8-AF-C0:6

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.1.2-1

    Series ID: A100

    IP Address: 10.1.3.106

    WM: 0

    OTP:

    ---------------------------------

    Play:5: Casita Living

    Serial Number: 00-0E-58-55-11-CA:1

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.4.1-1

    Series ID: P100

    IP Address: 10.1.3.130

    WM: 0

    OTP: 1.1.1(1-16-4-zp5s-0.5)

    ---------------------------------

    ZP80: Deck Lower

    Serial Number: 00-0E-58-20-16-22:6

    Version: 9.1 (build 45156150)

    Hardware Version: 1.1.16.3-1

    Series ID: S100

    IP Address: 10.1.3.123

    WM: 0

    r8: 16.0-7

    ---------------------------------

    Connect:Amp: Deck Upper

    Serial Number: 00-0E-58-30-FF-32:G

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.3.1-1

    Series ID: P100

    IP Address: 10.1.3.117

    WM: 0

    OTP: 1.1.1(1-16-3-0.9)

    ---------------------------------

    Play:3: Dining Room

    Serial Number: 00-0E-58-71-94-B6:4

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.1.2-1

    Series ID: A100

    IP Address: 10.1.3.103

    WM: 0

    OTP:

    ---------------------------------

    ZP80: Game Room

    Serial Number: 00-0E-58-20-18-14:B

    Version: 9.1 (build 45156150)

    Hardware Version: 1.1.16.3-1

    Series ID: S100

    IP Address: 10.1.3.122

    WM: 0

    r8: 16.0-7

    ---------------------------------

    Connect:Amp: Great Tree

    Serial Number: 00-0E-58-3A-B9-44:8

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.3.1-1

    Series ID: P100

    IP Address: 10.1.3.132

    WM: 0

    OTP: 1.1.1(1-16-3-0.9)

    ---------------------------------

    Play:1: Guest Upper 1

    Serial Number: B8-E9-37-5F-5E-DC:5

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.110

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Guest Upper 2

    Serial Number: 5C-AA-FD-6D-4C-06:2

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.111

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Gym Bathroom

    Serial Number: B8-E9-37-B6-71-14

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.124

    WM: 0

    OTP:

    ---------------------------------

    Play:3: Kitchen

    Serial Number: 00-0E-58-7B-82-DA:F

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.1.2-1

    Series ID: A100

    IP Address: 10.1.3.105

    WM: 0

    OTP:

    ---------------------------------

    Play:5: Living Room

    Serial Number: 00-0E-58-81-28-F8:C

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.4.1-1

    Series ID: P100

    IP Address: 10.1.3.102

    WM: 0

    OTP: 1.1.1(1-16-4-zp5s-0.5)

    ---------------------------------

    Connect:Amp: Main House Front

    Serial Number: 00-0E-58-3A-B9-00:8

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.3.1-1

    Series ID: P100

    IP Address: 10.1.3.101

    WM: 0

    OTP: 1.1.1(1-16-3-0.9)

    ---------------------------------

    Play:1: Massage Room (L)

    Serial Number: B8-E9-37-EB-A1-EC:7

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.125

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Massage Room (R)

    Serial Number: B8-E9-37-EA-E5-98:7

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.126

    WM: 0

    OTP:

    ---------------------------------

    One: Master Bathroom

    Serial Number: 78-28-CA-05-CE-40:1

    Version: 9.1 (build 45156150)

    Hardware Version: 1.21.1.8-1

    Series ID: A100

    IP Address: 10.1.3.139

    WM: 0

    ---------------------------------

    Playbar: Master Bedroom

    Serial Number: 00-0E-58-BF-DF-24:B

    Version: 9.1 (build 45156150)

    Hardware Version: 1.9.1.10-1

    Series ID: A100

    IP Address: 10.1.3.112

    Audio In:

    WM: 0

    OTP:

    ---------------------------------

    Sub: Master Bedroom

    Serial Number: 5C-AA-FD-80-9E-D6:5

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.2.5-1

    Series ID: A100

    IP Address: 10.1.3.113

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Master Sun Room (L)

    Serial Number: B8-E9-37-54-15-5C:E

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.115

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Master Sun Room (R)

    Serial Number: B8-E9-37-55-49-DA:6

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.114

    WM: 0

    OTP:

    ---------------------------------

    ZP100: Pool

    Serial Number: 00-0E-58-10-92-14:F

    Version: 9.1 (build 45156150)

    Hardware Version: 1.1.3.2-1

    Series ID: S100

    IP Address: 10.1.3.135

    WM: 0

    m16: 1.0-12170 r8: 0.8-16

    ---------------------------------

    ZP100: Pool Spa

    Serial Number: 00-0E-58-10-39-A4:2

    Version: 9.1 (build 45156150)

    Hardware Version: 1.1.3.0-1

    Series ID: S100

    IP Address: 10.1.3.136

    WM: 0

    m16: 1.0-12170 r8: 0.8-16

    ---------------------------------

    Playbar: Screening Room

    Serial Number: 00-0E-58-B1-CF-69:G

    Version: 9.1 (build 45156150)

    Hardware Version: 1.9.1.10-1

    Series ID: A100

    IP Address: 10.1.3.121

    Audio In:

    WM: 0

    OTP:

    ---------------------------------

    Play:5: Small Bar

    Serial Number: 00-0E-58-52-53-BA:E

    Version: 9.1 (build 45156150)

    Hardware Version: 1.16.4.1-1

    Series ID: P100

    IP Address: 10.1.3.104

    WM: 0

    OTP: 1.1.1(1-16-4-zp5s-0.5)

    ---------------------------------

    Play:1: TV Room (R)

    Serial Number: 78-28-CA-6F-DB-34:6

    Version: 9.1 (build 45156150)

    Hardware Version: 1.20.1.6-1

    Series ID: A200

    IP Address: 10.1.3.138

    WM: 0

    ---------------------------------

    Play:1: TV Room (L)

    Serial Number: 78-28-CA-6F-DB-3C:E

    Version: 9.1 (build 45156150)

    Hardware Version: 1.20.1.6-1

    Series ID: A200

    IP Address: 10.1.3.137

    WM: 0

    ---------------------------------

    Play:3: TV Sun Room

    Serial Number: 00-0E-58-F8-34-96:B

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.1.2-1

    Series ID: A100

    IP Address: 10.1.3.108

    WM: 0

    OTP:

    ---------------------------------

    Play:1: Wine Cellar

    Serial Number: 5C-AA-FD-6D-4D-46:G

    Version: 9.1 (build 45156150)

    Hardware Version: 1.8.3.7-1

    Series ID: A101

    IP Address: 10.1.3.118

    WM: 0

    OTP:

    Leave a comment:


  • dcorsus
    replied
    Originally posted by bsobel View Post
    Attached is the zipped log file and my ini file. Good hunting!
    another question: are you on the sonos beta program or running release sonos SW?
    I see so many errors in the log, never ever seen that on a simple GetZoneGroupState

    Leave a comment:


  • bsobel
    replied
    Here is a printout of the full settings page...
    Attached Files

    Leave a comment:


  • dcorsus
    replied
    Originally posted by bsobel View Post
    Attached is the zipped log file and my ini file. Good hunting!
    any chance to post your player table

    Leave a comment:


  • bsobel
    replied
    Attached is the zipped log file and my ini file. Good hunting!
    Attached Files

    Leave a comment:


  • dcorsus
    replied
    Originally posted by bsobel View Post
    Question; I assumed you meant a text log file created by the plugin. I enabled debug, super debug, and log to file. Rebooted but I cant find a log file associated with the plugin, I turned off log to file and rebooted and have plenty of log messages in the HS log, but not sure how to capture that?
    Don't enable superdebug, just debug.
    The log file is created under <hsroot>\html\sonos\logs but only written to when you turn the logging to disk off.

    So here are the steps:
    a/ HS is running
    b/ turn PI debug on and logging to disk
    c/ restart hs
    d/ wait until restart and init is complete
    e/ turn logging to disk off
    f/ go to <hsroot>\html\sonos\logs
    g/ upload log to posting

    Dirk

    Leave a comment:


  • bsobel
    replied
    Question; I assumed you meant a text log file created by the plugin. I enabled debug, super debug, and log to file. Rebooted but I cant find a log file associated with the plugin, I turned off log to file and rebooted and have plenty of log messages in the HS log, but not sure how to capture that?

    Leave a comment:


  • bsobel
    replied
    Originally posted by dcorsus View Post

    Could you turn debug on, restart HS, capture log and post here together with .ini file?
    You got it, I probably won't be able to do this until tomorrow, but I'll posts here as soon as I can.

    Leave a comment:

Working...
X