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

Uncaught TypeError: Cannot read property 'launch' of null #9

Open
a8ree opened this issue Jul 9, 2019 · 4 comments
Open

Uncaught TypeError: Cannot read property 'launch' of null #9

a8ree opened this issue Jul 9, 2019 · 4 comments

Comments

@a8ree
Copy link

a8ree commented Jul 9, 2019

My Windows installation (gui) is crashing regularly. I've tried to reinstall but it still occurs

Here is the log from the latest crash

parseCallbacksJson ms: 0 value: {"heartbeat":0} ms: 0 cast-web-api v1.2.1 cast-web-api running at http://127.0.0.1:3000 ms: 0 value: "" deviceUp: {"id":"78345e2e780201e6561835aa312ba0fb","name":"Bedroom tv","address":{"port":8009,"host":"192.168.1.184","rejectUnauthorized":false},"groups":[]} deviceUp: {"id":"8e73c1be6a20997a7fcacca59628c63b","name":"MIBOX3","address":{"port":8009,"host":"192.168.1.217","rejectUnauthorized":false},"groups":[]} deviceUp: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60","rejectUnauthorized":false},"groups":[]} message broadcast: false message broadcast: false message broadcast: false deviceUp: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163","rejectUnauthorized":false},"groups":[]} message broadcast: false 2019-07-09T10:20:26.687Z 028336b067a4c1601130315a40135077 CastReceiver.connect(): castDevice.castConnectionReceiver.client error: Error: read ECONNRESET ms: 0 value: "" deviceDown: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163"},"groups":[]} playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: e2ad18a5-d7ec-4622-84f1-347ee7ced06f message broadcast: true message broadcast: true ms: 0 value: "" message broadcast: true sessionIdChanged: null deviceDown: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60"},"groups":[]} deviceUp: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60","rejectUnauthorized":false},"groups":[]} message broadcast: false ms: 0 value: "" ms: 0 value: "" ms: 0 value: "" ms: 0 value: "" deviceUp: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163","rejectUnauthorized":false},"groups":[]} message broadcast: false playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: 10b9c03c-c39c-4ccc-83de-0af8d4f8ae46 message broadcast: true message broadcast: true deviceDown: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163"},"groups":[]} deviceUp: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163","rejectUnauthorized":false},"groups":[]} message broadcast: false 2019-07-09T10:49:21.361Z 028336b067a4c1601130315a40135077 CastReceiver.connect(): castDevice.castConnectionReceiver.client error: Error: read ECONNRESET ms: 0 value: "" deviceDown: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163","rejectUnauthorized":false},"groups":[]} message broadcast: true sessionIdChanged: null ms: 0 value: "" ms: 0 value: "" playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: 9f16c7ff-0ab9-4155-9e13-676d082584f4 message broadcast: true message broadcast: true ms: 0 value: "" message broadcast: true sessionIdChanged: null deviceDown: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60"},"groups":[]} deviceUp: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60","rejectUnauthorized":false},"groups":[]} message broadcast: false ms: 0 value: "" deviceUp: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163","rejectUnauthorized":false},"groups":[]} message broadcast: false message broadcast: true message broadcast: true message broadcast: true message broadcast: true ms: 0 value: "" deviceDown: {"id":"028336b067a4c1601130315a40135077","name":"kitchen tv","address":{"port":8009,"host":"192.168.1.163"},"groups":[]} ms: 0 value: "" ms: 0 value: "" playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: 4803f900-2e8a-4a07-9afe-782cf7270d6d message broadcast: true message broadcast: true ms: 0 value: "" deviceDown: {"id":"78345e2e780201e6561835aa312ba0fb","name":"Bedroom tv","address":{"port":8009,"host":"192.168.1.184"},"groups":[]} deviceUp: {"id":"78345e2e780201e6561835aa312ba0fb","name":"Bedroom tv","address":{"port":8009,"host":"192.168.1.184","rejectUnauthorized":false},"groups":[]} message broadcast: false message broadcast: true sessionIdChanged: null ms: 0 value: "" ms: 0 value: "" ms: 0 value: "" ms: 0 value: "" ms: 0 value: "" playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: 10185da4-e499-4239-808a-c00e23951340 message broadcast: true message broadcast: true deviceDown: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60"},"groups":[]} sessionIdChanged: null deviceUp: {"id":"7e7444d02f8bafc4754c155641580051","name":"Kitchen Home","address":{"port":8009,"host":"192.168.1.60","rejectUnauthorized":false},"groups":[]} message broadcast: false sessionIdChanged: 10185da4-e499-4239-808a-c00e23951340 ms: 0 value: "" message broadcast: true sessionIdChanged: null volume message broadcast: true message broadcast: true playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/front_door_has_been_left_open.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: 79545227-3f77-4365-b42b-1f20aea74529 message broadcast: true playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/ding_ding_ding_dong.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true message broadcast: true sessionIdChanged: null message broadcast: true sessionIdChanged: ebda8a6f-b804-4ae4-ac5b-3106e4d79969 2019-07-09T12:04:37.663Z CastDevice.playMedia(): this._castv2Client.close() exception: TypeError: Cannot read property 'close' of null ms: 0 value: "" volume message broadcast: true message broadcast: true playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/test.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] playMedia: [{"mediaType":"audio/mp3","mediaUrl":"http://bbcsfx.acropolis.org.uk/assets/07046013.wav","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] message broadcast: true sessionIdChanged: null message broadcast: true sessionIdChanged: f89bb4eb-bf94-4fb6-8391-74210791d705 message broadcast: true message broadcast: true message broadcast: true 2019-07-09T12:05:59.728Z CastDevice.playMedia(): this._castv2Client.close() exception: TypeError: Cannot read property 'close' of null volume group message broadcast: true playMedia: [{"mediaType":"audio/mp3","mediaUrl":"https://s3.amazonaws.com/smartapp-media/polly-tts/salli/test.mp3","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] playMedia: [{"mediaType":"audio/mp3","mediaUrl":"http://bbcsfx.acropolis.org.uk/assets/07046013.wav","mediaStreamType":"BUFFERED","mediaTitle":"SmartThings","mediaSubtitle":"SmartThings playback","mediaImageUrl":"https://lh3.googleusercontent.com/nQBLtHKqZycERjdjMGulMLMLDoPXnrZKYoJ8ijaVs8tDD6cypInQRtxgngk9SAXHkA=w300"}] Uncaught TypeError: Cannot read property 'launch' of null message broadcast: true sessionIdChanged: null

@vervallsweg
Copy link
Owner

The issue is known in cast-web-api, just didn't know it was crashing the windows gui. Thanks for letting me know.
Sadly if the issue is the one indicated in the logs, it won't be fixed in some time. I need to fork and fix a library I'm using. I cannot give you an eta on that, but it will be fixed.

@a8ree
Copy link
Author

a8ree commented Jul 17, 2019

@vervallsweg

Does this issue affect all platforms? Can I work around it by doing the manual node.js or running on Android? Or will I get the same issue?

Cheers

@vervallsweg
Copy link
Owner

Well, if you install cast-web-api-cli manually, it'll restart from crashes on it's own. The desktop app isn't as robust, due to limitations in electron.

Android is a mess right now. The node version dory comes with is outdated. The developer put some instructions in the app description in the play store, but I haven't tested it.

@a8ree
Copy link
Author

a8ree commented Jul 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants