[GH-ISSUE #2466] The app crashes while working in background #1103

Open
opened 2026-10-13 20:34:25 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @peaanti on GitHub (Apr 11, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2466

Describe the bug
The app silently stops working in the background, no errors or messages like 'the application stopped working'. The icon of vpn connection stops displaying in the upper right corner and that's it. Each time it takes different amount of time for the app to stop working, I guess. Needs to be restarted now several multiple times a day despite it worked properly a week ago.

Log files
04-11 12:33:52.921Z 3000 3000 D [main] AmneziaActivity: Pause Amnezia activity
04-11 12:33:52.925Z 3000 3059 D [qtMainLoopThread] AmneziaQt: QML: Application going to background, state: 2
04-11 12:33:52.926Z 3000 3000 D [main] AmneziaActivity: Window focus changed: hasFocus=false
04-11 12:33:53.542Z 3000 3136 W [QtThread] AmneziaQt: makeCurrent(): no EGLSurface, likely Surface destroyed by Android.
04-11 12:33:53.544Z 3000 3136 W [QtThread] AmneziaQt: QRhiGles2: Failed to make context current. Expect bad things to happen.
04-11 12:33:53.546Z 3000 3136 W [QtThread] AmneziaQt: Failed to start frame
04-11 12:33:53.560Z 3000 3000 D [main] AmneziaActivity: Stop Amnezia activity
04-11 12:33:53.562Z 3000 3000 D [main] AmneziaActivity: Unbind service
04-11 12:33:53.564Z 3143 3143 D [main] AmneziaVpnService: Handle action: UNREGISTER_CLIENT
04-11 12:33:53.568Z 3143 3143 D [main] AmneziaVpnService: Messenger client 'Activity' was unregistered
04-11 12:33:53.569Z 3143 3143 D [main] AmneziaVpnService: onUnbind by Intent { cmp=org.amnezia.vpn/.XrayService }
04-11 12:37:53.870Z 3143 3143 D [main] AmneziaVpnService: Stop traffic stats update
04-11 12:42:15.713Z 3143 3143 D [main] AmneziaVpnService: Start traffic stats update

Smartphone (please complete the following information):

  • Device: Xiaomi Redmi 9
  • OS: Android 10
  • Version: 4.8.14.5 (Google Play Market)

Server (please complete the following information):

  • OS: Ubuntu 24.04
Originally created by @peaanti on GitHub (Apr 11, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2466 **Describe the bug** The app silently stops working in the background, no errors or messages like 'the application stopped working'. The icon of vpn connection stops displaying in the upper right corner and that's it. Each time it takes different amount of time for the app to stop working, I guess. Needs to be restarted now several multiple times a day despite it worked properly a week ago. **Log files** 04-11 12:33:52.921Z 3000 3000 D [main] AmneziaActivity: Pause Amnezia activity 04-11 12:33:52.925Z 3000 3059 D [qtMainLoopThread] AmneziaQt: QML: Application going to background, state: 2 04-11 12:33:52.926Z 3000 3000 D [main] AmneziaActivity: Window focus changed: hasFocus=false 04-11 12:33:53.542Z 3000 3136 W [QtThread] AmneziaQt: makeCurrent(): no EGLSurface, likely Surface destroyed by Android. 04-11 12:33:53.544Z 3000 3136 W [QtThread] AmneziaQt: QRhiGles2: Failed to make context current. Expect bad things to happen. 04-11 12:33:53.546Z 3000 3136 W [QtThread] AmneziaQt: Failed to start frame 04-11 12:33:53.560Z 3000 3000 D [main] AmneziaActivity: Stop Amnezia activity 04-11 12:33:53.562Z 3000 3000 D [main] AmneziaActivity: Unbind service 04-11 12:33:53.564Z 3143 3143 D [main] AmneziaVpnService: Handle action: UNREGISTER_CLIENT 04-11 12:33:53.568Z 3143 3143 D [main] AmneziaVpnService: Messenger client 'Activity' was unregistered 04-11 12:33:53.569Z 3143 3143 D [main] AmneziaVpnService: onUnbind by Intent { cmp=org.amnezia.vpn/.XrayService } 04-11 12:37:53.870Z 3143 3143 D [main] AmneziaVpnService: Stop traffic stats update 04-11 12:42:15.713Z 3143 3143 D [main] AmneziaVpnService: Start traffic stats update **Smartphone (please complete the following information):** - Device: Xiaomi Redmi 9 - OS: Android 10 - Version: 4.8.14.5 (Google Play Market) **Server (please complete the following information):** - OS: Ubuntu 24.04
Author
Owner

@Vitalik93 commented on GitHub (Apr 11, 2026):

I've encountered this several times on Android when the phone was idle and the VPN was enabled. I had to restart it. Previously, I could easily leave it overnight, and the VPN connection would work in the morning.

<!-- gh-comment-id:4230006395 --> @Vitalik93 commented on GitHub (Apr 11, 2026): I've encountered this several times on Android when the phone was idle and the VPN was enabled. I had to restart it. Previously, I could easily leave it overnight, and the VPN connection would work in the morning.
Author
Owner

@peaanti commented on GitHub (Apr 11, 2026):

Previously, I could easily leave it overnight

Yup, same. However I've no idea what has happened, because the other devices work as before except the one that made me open this issue...

<!-- gh-comment-id:4230030775 --> @peaanti commented on GitHub (Apr 11, 2026): > Previously, I could easily leave it overnight Yup, same. However I've no idea what has happened, because the other devices work as before except the one that made me open this issue...
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1103
No description provided.