Push2Run crashes whenever text is received and references WebSocket4Net

Here you are welcome to report any Push2Run bugs you may have encountered

if you know of a workaround, it would be great if you would mention that too
Post Reply
DaveC
Posts: 3
Joined: Wed Dec 11, 2019 11:59 am

Push2Run crashes whenever text is received and references WebSocket4Net

Post by DaveC »

Push2Run looks like a great program but I have not been able to get it to work. I am an IT tech and I have installed my registered Pushbullet and put in the API token code. Whenever I send a text via PushBullet the text shows up on the computer in PushBullet and then Push2Run immediately closes. It does not matter what text I send. I am using the plain setup after install so only has the demo calculator.

I am running Win10 Pro ver 1809 and also tried it in ver 1909 on other computers.
Push2Run log stops at "Connection with Pushbullet Established" because it crashes before it can go further. It does show Pushbullet connection is good! Ran SFC checkers (sfc /scannow & DISM /Online /Cleanup-Image /CheckHealth) and malware scans and no issues there.

I have tired running in admin mode, with UAC off, with firewalls off, anti-virus off, closed all other tasks that are not needed at the moment. Have installed Push2Run and PushBullet on another computer that has a clean and basic fresh Win10 setup and have the same exact issue.

Windows Event log always shows these 3 entries. First occurring to last order
* Event ID 1026 - Application: Push2Run.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceExceptionat -.dje_zFLTUF3F75AQYSZLDHHHAC_ejd.#=zmdqD_ATPDN2gTNGmaOrQxUCTEeBHY9XUp1A8S_M=(WebSocket4Net.WebSocket, WebSocket4Net.MessageReceivedEventArgs) ..etc etc
* Event ID 1000 -
Faulting application name: Push2Run.exe, version: 2.5.2.0, time stamp: 0x5de428c1
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005 Fault offset: 0x0ec8a575 Faulting process id: 0x2464
Faulting application start time: 0x01d5b04032ecaf4d
Faulting application path: C:\Program Files\Push2Run\Push2Run.exe
Faulting module path: unknown
* and an information event
Fault bucket 1293614368494521362, type 5
Event Name: CLR20r3 Response: Not available Cab Id: 0
Problem signature: P1: Push2Run.exe P2: 2.5.2.0
--
I have googled them a "lot" and nothing has helped.
Appears to have something to do with Net Framework or WebSocket4Net or CLR.
Out of ideas - Please Help! TIA
DaveC
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by RobLatour »

Interesting, the error is being thrown in the routine that receives the message.

On the Push2Run main window, on the menu bar at top, can you please go to Actions - Options - Session Log, and check the option 'Write Session Log to Disk'.

Then issue a command, and if it fails. Restart it and go to Actions - Options - Session Log and click on the session log filename, it will open the session log, does it show any more information about the error?

Also, can you access this site https://stream.pushbullet.com/ with your internet browser?
DaveC
Posts: 3
Joined: Wed Dec 11, 2019 11:59 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by DaveC »

Hi Rob,

Thanks for the speedy response!

As directed, I restarted P2R and went to Actions - Options - Session Log, and checked the option 'Write Session Log to Disk'.
Then issued command (well I sent a text for my phone in Pushbullet) and it popped up on the computer in its PushBullet and Push2Run (that I had up on the screen) disappeared as did the tray icon.
Windows Event logs shows the same issues occurred at this time as I mentioned in prior post.

I then restarted Push2Run and wen to Actions - Options - Session Log and clicked on the entry there
and open the log which contains
2019-12-11 19:03:11.045 - Incoming Pushbullet push ...
2019-12-11 19:03:11.045 - <Title>
2019-12-11 19:03:11.061 - <Body> Test

I would have thought the Title would say P2R since that is what I hav for Title in IFTTT and in Push2Runs Settings

I did another test (sent another test message from pushbullet on my Android) and it crashed again and I restarted P2R and the log then showed.
2019-12-11 19:03:11.045 - Incoming Pushbullet push ...
2019-12-11 19:03:11.045 - <Title>
2019-12-11 19:03:11.061 - <Body> Test
2019-12-11 19:03:27.016 - Push2Run version 2.5.2.0 started
2019-12-11 19:03:27.031 - Windows UAC notify feature is on
2019-12-11 19:03:27.047 - Normal privileges are in effect
2019-12-11 19:03:27.203 - Current network adapter Is Ethernet
2019-12-11 19:03:27.265 - Network status is up
2019-12-11 19:03:31.453 - Connection with Pushbullet established
2019-12-11 19:08:17.777 - Incoming Pushbullet push ...
2019-12-11 19:08:17.794 - <Title>
2019-12-11 19:08:17.799 - <Body> test
2019-12-11 19:08:22.781 - Push2Run version 2.5.2.0 started
2019-12-11 19:08:22.812 - Windows UAC notify feature is on
2019-12-11 19:08:22.812 - Normal privileges are in effect
2019-12-11 19:08:22.968 - Current network adapter Is Ethernet
2019-12-11 19:08:23.031 - Network status is up
2019-12-11 19:08:24.266 - Connection with Pushbullet established

Yes I can get to https://stream.pushbullet.com/ in my browser (Chrome).
Pushbullet Streaming Test Page
websocket connected in 0.24 seconds
streaming connected in 0.06 seconds

If you can resolve this for me I will gladly make a nice donation.
TIA
DaveC
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by RobLatour »

Can you please go to your IFTTT account, and edit the applet which you are using. Please double-check what you have entered in the Push a note Title field - you've said above it is 'P2R' but it appears from what is being sent from Pushbullet that it is blank?
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by RobLatour »

I was able to recreate the problem, if the title field is blank on the IFTTT applet then the program will crash. How embarrassing. I will have a fix up shortly.
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by RobLatour »

Ok - an updated version of Push2Run (version 2.5.3) is now available in general release.

If you have visited the Push2Run site lately, you may have to refresh your browser (usually F5) to see the changes to the web site page(s).

If you have downloaded Push2Run recently when you download it now please ensure you either use a different browser to download the program than you did the first time, or clear the cache on your current browser - this will help ensure you are getting the most current version of the program (as opposed to one you browser has cached somewhere on your system).

To check the version number on the file you downloaded, just right click on it, and select Properties, and then click on the Details tab.

The product version number should be 2.5.3.

With this new version, if the IFTTT applet's title field is left blank, there will simply be a message in the session log saying that is the case.
DaveC
Posts: 3
Joined: Wed Dec 11, 2019 11:59 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by DaveC »

I am a newbie with Push2Run,Oushbullet, IFTTT.
I was testing from phone in PushBullet and that seems to bypass IFTTT.
I installed latest version and it no longer crashes! The log shows no title when I send from Phone using PushBullet. If I go thru phone's Google Assistant that seems to go through IFTTT and then the P2R log shows the title and up comes the test calculator app! Maybe I don’t even need Pushbullet on phone, just on PC? Appreciate all your timely help. Case closed. I just made a donation!
Thanks
DaveC
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: Push2Run crashes whenever text is received and references WebSocket4Net

Post by RobLatour »

Thank you for your very kind donation.

As for Pushbullet on your phone; I have it on mine and it doesn't seem to impact things, that is to say Push2Run and IFTTT work fine when my phone is on and active, on and locked, or totally powered down.
Post Reply