Author Topic: Some RCP Queries Result in a WeatherCat Crash  (Read 2924 times)

The Grand Poohbah

  • Gale
  • ****
  • Posts: 396
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Some RCP Queries Result in a WeatherCat Crash
« on: July 22, 2022, 11:36:03 PM »
[Update] It's the RCP query that causing the crash, not WeatherCatRCP. To test this I entered a RCP query for the External Temperature Basic Graph in the Safari browser. It caused WeatherCat 3.1.3 to crash. If I enter a RCP query for System Information, WeatherCat 3.1.3 doesn't crash. Here are the two queries (192.168.0.215 is the local IP address of the M1 Mini running WeatherCat 3.1.3):

http://192.168.0.215:49255/image/getBasicGraph/1 (crashes WeatherCat 3.1.3)
http://192.168.0.215:49255/discovery/systemData (retrieves WeatherCat 3.1.3 System Data)

How to replicate it on an iPhone:

1. Open WeatherCatRCP (the iOS app)
2. Select the More tab.
3. Select Basic Graphs
4. Select External Temperature

WeatherCat (the macOS app) crashes.

WeatherCatRCP is version 1.2 (190618) running on iOS 15.5 and was connected over the "Local" network to WeatherCat version 3.1.3 on a M1 Mini with Monterey 12.4.

[Update] The WeatherCat crash leaves WeatherCatRCP in "where did my server response go" limbo. Leave WeatherCatRCP alone until after WeatherCat restarts. WeatherCatRCP will find the restarted server and continue as normal.

This is very strange since WeatherCatRCP is making a Rich Client Protocol (RCP) request and waiting for WeatherCat to respond. When this occurs, WeatherCat crashes and WeatherCatRCP is abruptly disconnected.

Only a Basic Graph, Custom Graph, or CTW request causes the WeatherCat crash.

Has this happened to anyone else using WeatherCat 3.1.3 or WeatherCat 3.2?

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Dear Grand and WeatherCat troubleshooters,

I just discovered this crash situation:

1. Open WeatherCatRCP (the iOS app)
2. Select the More tab.
3. Select Basic Graphs
4. Select External Temperature

WeatherCat (the macOS app) crashes.
. . . .

Sorry, I lost this posting and haven't had a chance to try this until now.  I followed your steps and couldn't get WeatherCat 3.1.4 to crash for any graph type or Custom Text Box.  I am running the same version of WeatherCatRCP as you - version 1.2 (190618).  The only difference is that I am on an Intel Mac Mini running macOS 10.14.6 (18G9323) Mojave. 

Could this be an OS issue somehow?  Can anyone else running Monterey give this a try and see if they can reproduce the crashes? 

Cheers, Edouard

The Grand Poohbah

  • Gale
  • ****
  • Posts: 396
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #2 on: July 29, 2022, 08:12:37 PM »
I ran the same query (Basic Graphs, External Temperature) on trixology-eng.com (v3.20, Build 223 (64 bit)) and did not get a crash. The query URL syntax is "http://trixology-eng.com:49255/image/getBasicGraph/1"

Crash:
WeatherCat 3.13 Build 155 on macOS Monterey 12.4 on Mac mini (M1, 2020).

No crash:
WeatherCat 3.14 on MacOS Mojave 10.14.6 on Mac mini (Intel)
WeatherCat 3.20 on ? (trixology-eng.com)

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Curious . .. . (Re: Some RCP Queries Result in a WeatherCat Crash)
« Reply #3 on: July 29, 2022, 10:41:08 PM »
Dear Grand and WeatherCat troubleshooters,

I repeated your experiment on trixology-eng.com and it does not appear to crash the WeatherCat installation there.  So your observations stand.

Does look unfortunately like a Monterey macOS bug.

Oh well, . .  . . . Edouard

The Grand Poohbah

  • Gale
  • ****
  • Posts: 396
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #4 on: July 30, 2022, 05:43:01 PM »
Anybody using macOS Monterey willing to confirm the crash? If WeatherCat does crash, it will not be painful and will restart quickly.

The Grand Poohbah

  • Gale
  • ****
  • Posts: 396
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #5 on: July 31, 2022, 09:00:23 PM »
I ran the same query (Basic Graphs, External Temperature) on trixology-eng.com (v3.20, Build 223 (64 bit)) and did not get a crash. The query URL syntax is "http://trixology-eng.com:49255/image/getBasicGraph/1"

Crash:
WeatherCat 3.13 Build 155 on macOS Monterey 12.4 on Mac mini (M1, 2020).

No crash:
WeatherCat 3.14 on MacOS Mojave 10.14.6 on Mac mini (Intel)
WeatherCat 3.20 on ? (trixology-eng.com)

I updated the Mac mini (M1, 2020) to macOS Monterey 12.5 and it still crashed.


Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1589
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 15, WeatherCat 3.3
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #6 on: August 02, 2022, 12:23:19 AM »
I’m on Monterey on my iMAc, but not running WeatherRCP, so can’t help. Sorry.
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS
PWSweather - WeatherCloud - Facebook

The Grand Poohbah

  • Gale
  • ****
  • Posts: 396
  • Developer of WeatherCat for iOS, tvOS, and watchOS
    • EW6355 KCANEVAD43
    • Hopeful Hill Ranch
  • Station Details: Vantage Pro 2, aspirated, solar radiation, uv, soil temp and moisture
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #7 on: August 02, 2022, 05:49:25 PM »
I’m on Monterey on my iMAc, but not running WeatherRCP, so can’t help. Sorry.

You don't need to test it with WeatherCatRCP. You can test it by entering a url in your web browser. Substitute the local IP address of your iMac for the 192.168.0.215 in the following URLs:

Enter http://192.168.0.215:49255/discovery/systemData to verify that you can communicate with your local WeatherCat server. This will retrieve an XML file containing the System Data for your WeatherCat server.

Enter http://192.168.0.215:49255/image/getBasicGraph/1 to retrieve an XML file containing the temperature chart in hexadecimal. This may cause your WeatherCat server to crash.

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #8 on: August 02, 2022, 11:41:00 PM »
Mac mini, macOS Catalina (10.15.7), Intel Core i5, WC 3.20 Build 220:

The first url dumped the XML file as expected.

The second url caused WC to "quit unexpectedly" except it was expected! Crash report available, if desired.
Of course, WC Restarted on its own.  ThU32:-)
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

Raymaker

  • Gentle Breeze
  • **
  • Posts: 11
    • KFLSARA163
  • Station Details: Davis Vantage Vue
Re: Some RCP Queries Result in a WeatherCat Crash
« Reply #9 on: August 03, 2022, 01:33:36 AM »
Confirmed the crash when calling for a custom graph from WeatherCatRCP. WC V3.20 Build 224 and macOS Monterey 12.5 Mac Mini (M1 2020). Crash report attached for reference.