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

[Bug]: http crash after switching from cocoapods to SPM #7819

Open
1 of 3 tasks
aeharding opened this issue Dec 28, 2024 · 0 comments
Open
1 of 3 tasks

[Bug]: http crash after switching from cocoapods to SPM #7819

aeharding opened this issue Dec 28, 2024 · 0 comments
Labels

Comments

@aeharding
Copy link

aeharding commented Dec 28, 2024

Capacitor Version

➜ voyager git:(spm) npx cap doctor
πŸ’Š Capacitor Doctor πŸ’Š

Latest Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

Installed Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

[info] Using Gemfile: RubyGems bundle installed
[success] iOS looking great! πŸ‘Œ
[success] Android looking great! πŸ‘Œ

Other API Details

➜  voyager git:(spm) npm --version
10.9.0
➜  voyager git:(spm) node --version
v22.11.0

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

On certain requests (it doesn't happen all the time, just certain requests) I get an app crash with the following trace to handleCapacitorHttpRequest:

Screenshot 2024-12-28 at 11 15 10β€―AM

This started happening after I migrated my project to SPM, specifically this PR: aeharding/voyager#1785

Expected Behavior

No crash

Project Reproduction

https://github.com/aeharding/voyager/tree/spm

Additional Information

Unfortunately I am not sure what is causing the crash so I can't get a minimum reproduction right now. It seems to stem from capacitor http logic, and only started after my SPM migration. When I test on cocoapods the problem does NOT reproduce. I will continue investigating.

For a full repro with my app, install setup https://github.com/aeharding/voyager with the "spm" branch. Login to multiple Lemmy accounts. Switch between the lemmy accounts by holding down on the "account" tab bar button and selecting the other account. You should see a crash.

If you would like some Lemmy accounts to test with, message me on Discord (@aeharding)

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

No branches or pull requests

1 participant