sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.34k stars 1.04k forks source link

Invalid connection identifier (web process failed to launch) #2460

Closed MacThings closed 10 months ago

MacThings commented 10 months ago

Description of the problem

Xcode 15.0 macOS 14.0

Update itself is working fine. But there is no Text to see in the Webview.

Do you use Sandboxing in your app?

No

Version of Sparkle.framework in the latest version of your app

2.5.1

Sparkle's output from Console.app

0x11c000c00 - [PID=0] WebProcessProxy::didFinishLaunching: Invalid connection identifier (web process failed to launch)
0x11c000c00 - [PID=0] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
0x7fab5503e020 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason=Crash
0x7fab5503e020 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason=Crash
Failed to load data from web view: Error Domain=SUSparkleErrorDomain Code=1006 "(null)"

Steps to reproduce the behavior

Re-Assigned Update Button/Connection Reset Packages Cache

zorgiepoo commented 10 months ago

The WebKit process seems to have been crashed/terminated.

Are there any webkit crashes generated on your system in Console app? Did this ever work before? If so, can you narrow which change caused this to occur? Can you rule out if it's something specific to your HTML/CSS? Are you able to share a repro case? Etc.

Currently this is not very actionable.

zorgiepoo commented 10 months ago

Another thought is to try and see if it's an issue in Sparkle 2.4.2

MacThings commented 10 months ago

I have another App where the problem does not appear. 2.1.5 is working flawless there. Anyway here is the repo:

https://github.com/MacThings/anymacos https://www.sl-soft.de/extern/software/anymacos/appcast.xml https://www.sl-soft.de/extern/software/anymacos/anymacos.html

grafik

zorgiepoo commented 10 months ago

Thanks for the repro case. No version of Sparkle that uses WKWebView works. It seems something specific to your app setup. The appcast/release notes can be loaded properly from other apps. I'll have to investigate this more.

zorgiepoo commented 10 months ago

The issue is your CFBundleDisplayName ('Bundle Display Name') in your Info.plist if empty/blank. I'll keep open to see if this is a Sparkle issue or a WebKit bug. In the mean time, please populate it properly.

MacThings commented 10 months ago

Thanks. That fixed it. What a stupid mistake from me.