Open w-ap-admin opened 3 months ago
Hi,
This is unlikely to be related to Mercure as the stack trace shows a CGO crash and Mercure doesn't use CGO.
It's likely FrankenPHP or a PHP extension that crashes.
Could you try to gather a debug stack trace by following these instructions? https://frankenphp.dev/docs/contributing/#debugging-segmentation-faults-with-static-builds
Could you also try if the problem persists with the Debian variant of the Docker image? Alpine is known to be less stable with FrankenPHP.
Thanks!
Thank you for your answer. I will try both of your recommandation: debug stack trace and try with another distro.
Do you want let this issue open ? I can open a new one on FrakenPHP.
@w-ap-admin I transferred the issue to the FrankenPHP repo.
Hello,
I'm developing an API using the latest dockerize with the Alpine version of FrankenPHP (
dunglas/frankenphp:latest-alpine
) and I use Mercure to synchronize data with my front-end application built with React. But I encountered the error bellow which seems to be trigger randomly when the front application subscribe to the the topic.The PHP app is not directly exposes to internet, because I have many others applications which are running in containers on the server. The PHP app is connected to an containerized load-balancer build with Caddy2 which expose the service.
When I disconnect and then take a few seconds before reconnecting, everything works as expected. However, if the reconnection happens too quickly, it leads to a server crash. I have implemented a debounce mechanism to ensure that the subscription only occurs once each time the app is reloaded.
Could this problem be related to an issue with the front-end implementation? Is there something I might have overlooked?
Thank you for your assistance.