Skip to content

iOS crash when loading data via JS fetch #61

@kutothe

Description

@kutothe

What were you trying to do?

Load some data via JS fetch.

What happened?

iOS device/simulator crash.

How to reproduce the bug

This was weird to reproduce, but I was able to setup a simple test app that does just that. If you click on Test Page, it will go to a new page that initiates a JS call of fetch. That just pulls in a view and returns it in JSON format. It only started happening with 3.1 and it doesn't happen on Android. 3.1.1 did not fix it either.

This is the test project that should easily reproduce it:
https://github.com/kutothe/nativephp-bugtest

Debug Output

INFO NativePHP Mobile.

+--------------------+--------+
| Package Version | 3.1.1 |
| PHP Version (Host) | 8.4.19 |
| OS | Darwin |
| OS Version | 25.3.0 |
| Embedded PHP | 8.4 |
+--------------------+--------+

INFO Installed Plugins.

None

INFO Development Tools.

+----------------+--------------------------------------+
| Xcode | Xcode 26.3 |
| Android Studio | Android Studio AndroidStudio2025.3.2 |
| Gradle | Gradle 8.13 |
| Java | openjdk version "17.0.15" 2025-04-15 |
| CocoaPods | CocoaPods 1.16.2 |
+----------------+--------------------------------------+

Which operating systems have you seen this occur on?

macOS

Which platforms were you trying to build for?

iOS (Simulator), iOS (Device)

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions