Crash while Streaming Live TV

Posted on
Sat Nov 24, 2018 2:14 pm
Korey offline
User avatar
Posts: 751
Joined: Jun 04, 2008
Location: Henderson, NV

Crash while Streaming Live TV

Steaming Live TV from a HD Homerun network tuner into Plex results in a crash of the plugin:

Plugin Version: 2.2.0
Plex Media Server Version:1.14.0.5468-5a0183d2c

Device 1023673505 is my Plex Server Device


Code: Select all
 Plex Media Server Manager Error Error executing effect for device id 1023673505
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDeviceResponse.py", line 187, in executeEffects
    eval(u'rpDevice.' + effect.updateParam + u'(responseObj, rpCommand)')
  File "<string>", line 1, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/plexMediaServerDevices.py", line 208, in handlePlexMediaContainerResult
    percentComplete = int(((1.0 * currentOffset) / (1.0 * contentDuration)) * 100.0)
ZeroDivisionError: float division by zero



Debug:
Code: Select all
Nov 24, 2018, 12:08:44 PM
   Plex Media Server Manager Debug Executing full status update request...
   Plex Media Server Manager Debug Processing GET operation: https|*|/|*|basic|*|xxxxxxxxx|*|xxxxxxxxxxxxxxxxx
   Plex Media Server Manager Debug Effect execution: Calling function handlePlexMediaContainerResult
   Plex Media Server Manager Debug MediaContainer Information: {'myPlexSubscription': '1', 'eventStream': '1', 'allowChannelAccess': '1', 'maxUploadBitrateReason': 'wan', 'photoAutoTag': '1', 'transcoderLyrics': '1', 'hubSearch': '1', 'sync': '1', 'multiuser': '1', 'allowMediaDeletion': '1', 'transcoderVideo': '1', 'updatedAt': '1543087762', 'transcoderVideoBitrates': '64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000', 'streamingBrainVersion': '2', 'size': '24', 'maxUploadBitrate': '3000', 'countryCode': 'usa', 'certificate': '1', 'allowTuners': '1', 'backgroundProcessing': '1', 'platform': 'MacOSX', 'version': '1.14.0.5468-5a0183d2c', 'myPlexSigninState': 'ok', 'friendlyName': 'Indigo', 'allowSync': '1', 'readOnlyLibraries': '0', 'transcoderVideoQualities': '0,1,2,3,4,5,6,7,8,9,10,11,12', 'transcoderVideoResolutions': '128,128,160,240,320,480,768,720,720,1080,1080,1080,1080', 'myPlex': '1', 'transcoderPhoto': '1', 'myPlexMappingState': 'mapped', 'transcoderActiveVideoSessions': '3', 'companionProxy': '1', 'pluginHost': '1', 'platformVersion': '10.11.6', 'allowSharing': '1', 'voiceSearch': '1', 'itemClusters': '1', 'streamingBrainABRVersion': '3', 'requestParametersInCookie': '1', 'transcoderAudio': '1', 'maxUploadBitrateReasonMessage': 'Connection is on WAN and limit is set', 'livetv': '7', 'transcoderSubtitles': '1', 'ownerFeatures': '002c9f1a-2fc0-4812-b85b-0e6140f21a0f,05690239-443e-43fb-bc1a-95b5d916ca63,0a348865-4f87-46dc-8bb2-f37637975724,1417df52-986e-4e4b-8dcd-3997fbc5c976,1844737f-1a87-45c3-ab20-01435959e63c,22d52c96-9e2b-45c0-9e2a-1d6c66ad3474,2ea0e464-ea4f-4be2-97c1-ce6ed4b377dd,300231e0-69aa-4dce-97f4-52d8c00e3e8c,32cc8bf5-b425-4582-a52d-71b4f1cf436b,3a2b0cb6-1519-4431-98e2-823c248c70eb,4b522f91-ae89-4f62-af9c-76f44d8ef61c,4ca03b04-54c1-4f9f-aea2-f813ae48f317,55b9f6ed-5d26-4d2d-a436-68882a9901b5,5b6190a9-77a4-477e-9fbc-c8118e35a4c1,5d819d02-5d04-4116-8eec-f49def4e2d6f,6380e085-02fe-43b5-8bff-380fa4f2423c,65152b75-13a9-408a-bd30-dbd23a259183,65685ff8-4375-4e4c-a806-ec1f0b4a8b7f,6f82ca43-6117-4e55-ae0e-5ea3b3e99a96,7377e4a0-d893-4403-a592-0f84c8f07043,82999dd3-a2be-482e-9f44-357879b4f603,84a754b0-d1ca-4433-af2d-c949bf4b4936,850f3d1e-3f38-44c1-9c0c-e3c9127b8b5a,86da2200-58db-4d78-ba46-f146ba25906b,96cac76e-c5bc-4596-87eb-4fdfef9aaa11,99d17487-7106-4d42-a3b1-c92f68b73165,9dc1df45-fb45-4be1-9ab2-eb23eb57f082,a19d495a-1cef-4f7c-ab77-5186e63e17f7,abd37b14-706c-461f-8255-fa9563882af3,adaptive_bitrate,b2403ac6-4885-4971-8b96-59353fd87c72,b46d16ae-cbd6-4226-8ee9-ab2b27e5dd42,b58d7f28-7b4a-49bb-97a7-152645505f28,bb50c92f-b412-44fe-8d8a-b1684f212a44,bc8d1fca-deb0-4d0a-a6f4-12cfd681002d,c55d5900-b546-416d-a8c5-45b24a13e9bc,c7ae6f8f-05e6-48bb-9024-c05c1dc3c43e,camera_upload,cloudsync,collections,content_filter,d14556be-ae6d-4407-89d0-b83953f4789a,d413fb56-de7b-40e4-acd0-f3dbb7c9e104,download_certificates,dvr,e8230c74-0940-4b91-9e20-6571eb068086,fb34e64d-cd89-47b8-8bae-a6d20c542bae,federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music_videos,news,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,session_bandwidth_restrictions,session_kick,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks', 'diagnostics': 'logs,databases,streaminglogs', 'updater': '1', 'mediaProviders': '1', 'machineIdentifier': 'ee675983a4bba68f6a692f9eabdb03616b9f5712', 'allowCameraUpload': '1', 'myPlexUsername': 'xxxxxxxx@xxxxxxxx'}
   Plex Media Server Manager Debug Processing GET operation: https|*|/status/sessions|*|basic|*|xxxxxxxx|*|xxxxxxxxxxxxxx
   Plex Media Server Manager Debug Effect execution: Calling function handlePlexMediaContainerResult
   Plex Media Server Manager Debug MediaContainer Information: {'size': '1'}
   Plex Media Server Manager Debug Found 1 active media sessions
   Plex Media Server Manager Debug MediaContainer Media Information: {'origin': 'livetv', 'videoFrameRate': 'NTSC', 'videoCodec': 'h264', 'container': 'mpegts', 'uuid': 'bb3a7baa-cd01-4564-b8f4-5b63b9e37d4d', 'selected': '1', 'height': '480', 'width': '854', 'audioChannels': '2', 'protocol': 'hls', 'videoResolution': '480p', 'id': '89316', 'audioCodec': 'aac'}
   Plex Media Server Manager Debug MediaContainer Player Information: {'profile': 'tvOS', 'product': 'Plex for Apple TV', 'vendor': 'Apple', 'title': 'Theater ATV', 'remotePublicAddress': '98.167.101.188', 'userID': '1', 'platform': 'tvOS', 'state': 'playing', 'version': '1.35', 'address': '192.168.0.245', 'device': 'Apple TV', 'model': '5,3', 'machineIdentifier': '0CF2AA08-6228-4D63-9E44-6C59CA877B40', 'local': '1', 'platformVersion': '12.1'}
   Plex Media Server Manager Debug Identified as Slot 1
   Plex Media Server Manager Debug Found 1 clients to update
   Plex Media Server Manager Debug Found client device to update for machineID: 0CF2AA08-6228-4D63-9E44-6C59CA877B40
   Plex Media Server Manager Error Error executing effect for device id 1023673505
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDeviceResponse.py", line 187, in executeEffects
    eval(u'rpDevice.' + effect.updateParam + u'(responseObj, rpCommand)')
  File "<string>", line 1, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Plex Media Server Manager.indigoPlugin/Contents/Server Plugin/plexMediaServerDevices.py", line 208, in handlePlexMediaContainerResult
    percentComplete = int(((1.0 * currentOffset) / (1.0 * contentDuration)) * 100.0)
ZeroDivisionError: float division by zero
   Plex Media Server Manager Debug Processing GET operation: https|*|/clients|*|basic|*|xxxxxxxx|*|xxxxxxxxxxxxxxx
   Plex Media Server Manager Debug Effect execution: Calling function handlePlexMediaContainerResult
   Plex Media Server Manager Debug MediaContainer Information: {'size': '1'}
   Plex Media Server Manager Debug Found 1 clients
   Plex Media Server Manager Debug Found client with Machine Id: 0CF2AA08-6228-4D63-9E44-6C59CA877B40


Device dump:
Code: Select all
   Plex Media Server Manager       Dumping details for DeviceID: 1964373821
   Plex Media Server Manager       address : 0CF2AA08-6228-4D63-9E44-6C59CA877B40
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : plexMediaClient
displayStateId : clientConnectionStatus
displayStateImageSel : SensorOff
displayStateValRaw : disconnected
displayStateValUi : disconnected
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1501775312
globalProps : MetaProps : (dict)
     com.duncanware.plexMediaServerManager : (dict)
          address : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
          mediaServer : 1023673505 (string)
          plexClientId : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
id : 1964373821
lastChanged : 2018-11-23 21:09:19
lastSuccessfulComm : 2018-11-23 21:09:19
model : Plex Media Client
name : Plex - Theatre
ownerProps : com.duncanware.plexMediaServerManager : (dict)
     address : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
     mediaServer : 1023673505 (string)
     plexClientId : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
pluginId : com.duncanware.plexMediaServerManager
pluginProps : com.duncanware.plexMediaServerManager : (dict)
     address : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
     mediaServer : 1023673505 (string)
     plexClientId : 0CF2AA08-6228-4D63-9E44-6C59CA877B40 (string)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     clientAddress :  (string)
     clientConnectionStatus : disconnected (string)
     clientConnectionStatus.buffering : false (bool)
     clientConnectionStatus.connected : false (bool)
     clientConnectionStatus.disconnected : true (bool)
     clientConnectionStatus.paused : false (bool)
     clientConnectionStatus.playing : false (bool)
     clientPort : 0 (integer)
     currentUser :  (string)
     currentlPlayingTitleYear :  (string)
     currentlyPlayingArtUrl :  (string)
     currentlyPlayingContentLengthDisplay :  (string)
     currentlyPlayingContentLengthMS : 0 (integer)
     currentlyPlayingContentLengthOffset : 0 (integer)
     currentlyPlayingContentLengthOffsetDisplay :  (string)
     currentlyPlayingContentPercentComplete : 0 (integer)
     currentlyPlayingContentRating :  (string)
     currentlyPlayingContentResolution :  (string)
     currentlyPlayingGenre :  (string)
     currentlyPlayingGrandparentArtUrl :  (string)
     currentlyPlayingGrandparentKey :  (string)
     currentlyPlayingGrandparentThumbnailUrl :  (string)
     currentlyPlayingGrandparentTitle :  (string)
     currentlyPlayingKey :  (string)
     currentlyPlayingMediaType : unknown (string)
     currentlyPlayingMediaType.album : false (bool)
     currentlyPlayingMediaType.artist : false (bool)
     currentlyPlayingMediaType.clip : false (bool)
     currentlyPlayingMediaType.comic : false (bool)
     currentlyPlayingMediaType.episode : false (bool)
     currentlyPlayingMediaType.movie : false (bool)
     currentlyPlayingMediaType.person : false (bool)
     currentlyPlayingMediaType.photo : false (bool)
     currentlyPlayingMediaType.photoAlbum : false (bool)
     currentlyPlayingMediaType.picture : false (bool)
     currentlyPlayingMediaType.playlistItem : false (bool)
     currentlyPlayingMediaType.season : false (bool)
     currentlyPlayingMediaType.show : false (bool)
     currentlyPlayingMediaType.track : false (bool)
     currentlyPlayingMediaType.trailer : false (bool)
     currentlyPlayingMediaType.unknown : true (bool)
     currentlyPlayingParentKey :  (string)
     currentlyPlayingParentThumbnailUrl :  (string)
     currentlyPlayingParentTitle :  (string)
     currentlyPlayingStarRating :  (string)
     currentlyPlayingSummary :  (string)
     currentlyPlayingThumbnailUrl :  (string)
     currentlyPlayingTitle :  (string)
     playerDeviceTitle :  (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None
   Plex Media Server Manager       Dumping details for DeviceID: 1023673505
   Plex Media Server Manager       address : 192.168.0.4:32400
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : plexMediaServer
displayStateId :
displayStateImageSel : None
displayStateValRaw : None
displayStateValUi :
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1501775312
globalProps : MetaProps : (dict)
     com.duncanware.plexMediaServerManager : (dict)
          address : 192.168.0.4:32400 (string)
          httpAddress : 192.168.0.4 (string)
          httpPort : 32400 (string)
          loginRequired : true (bool)
          plexPassword : xxxxxxxxxxxxxxxxxx (string)
          plexUsername : xxxxxxxxxxxxx (string)
          pollInterval : 20 (string)
          requestMethod : https (string)
id : 1023673505
lastChanged : 2018-11-24 12:11:25
lastSuccessfulComm : 2018-11-24 12:11:25
model : Plex Media Server
name : Plex Server
ownerProps : com.duncanware.plexMediaServerManager : (dict)
     address : 192.168.0.4:32400 (string)
     httpAddress : 192.168.0.4 (string)
     httpPort : 32400 (string)
     loginRequired : true (bool)
     plexPassword : xxxxxxxxxxxxxxxx (string)
     plexUsername : xxxxxxxx (string)
     pollInterval : 20 (string)
     requestMethod : https (string)
pluginId : com.duncanware.plexMediaServerManager
pluginProps : com.duncanware.plexMediaServerManager : (dict)
     address : 192.168.0.4:32400 (string)
     httpAddress : 192.168.0.4 (string)
     httpPort : 32400 (string)
     loginRequired : true (bool)
     plexPassword : xxxxxxxxxxxxxx (string)
     plexUsername : xxxxxxxxx (string)
     pollInterval : 20 (string)
     requestMethod : https (string)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
     activeSessionsCount : 1 (integer)
     connectedClientCount : 0 (integer)
     connectionState : Connected (string)
     serverVersion : 1.14.0.5468-5a0183d2c (string)
     transcoderActiveVideoSessions : 2 (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None
   Plex Media Server


Let me know if I can be of assistance.

--
Korey

Posted on
Tue Nov 27, 2018 9:38 pm
RogueProeliator offline
User avatar
Posts: 2474
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Crash while Streaming Live TV

Steaming Live TV from a HD Homerun network tuner into Plex results in a crash of the plugin:

Hey Korey... I don't know that I've ever seen live streaming on it, so having to do a bit of in-the-dark coding, at least from a testing perspective. The debug information you provided gets us through that particular error, though, thanks from providing that.

Can you give this version a try before I do a formal release to the store:
https://github.com/RogueProeliator/Indi ... tag/v2.3.3

Thanks!
Adam

Posted on
Fri Nov 30, 2018 11:39 am
RogueProeliator offline
User avatar
Posts: 2474
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Crash while Streaming Live TV

Hey @Korey, just checking back in - did you get a chance to try out this new version for the streaming update issue?

Adam

Posted on
Fri Nov 30, 2018 12:29 pm
Korey offline
User avatar
Posts: 751
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Crash while Streaming Live TV

Sorry, somehow I missed your reply :?

I will try it today and post back!

Thanks!

--
Korey

Posted on
Fri Nov 30, 2018 2:13 pm
Korey offline
User avatar
Posts: 751
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Crash while Streaming Live TV

RogueProeliator wrote:
Hey @Korey, just checking back in - did you get a chance to try out this new version for the streaming update issue?

Adam


Your updated version fixes the issue with live TV! :D

Thanks Adam!

--
Korey

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest