Bug #2148
Viewing log in strongswan android app during reconnect is extremely slow
Description
Scenario:
Successful VPN connection established with the strongswan app. If the strongswan app tries to reestablish the connection during an outage, an animated progress bar will be shown on the main app screen.
On my Motorola Moto E 2015, clicking on "View Log" and scrolling through the log is extremely slow during that reconnect. It can take multiple seconds between using the touchscreen and any result (start of log viewer, scrolling through logs).
This slowness only happens during automatic reconnection attempts, but never while the tunnel is active or not started at all.
Android app version 1.6.2.
Related issues
Associated revisions
History
#1 Updated by Tobias Brunner over 5 years ago
- Status changed from New to Feedback
On my Motorola Moto E 2015, clicking on "View Log" and scrolling through the log is extremely slow during that reconnect. It can take multiple seconds between using the touchscreen and any result (start of log viewer, scrolling through logs).
This slowness only happens during automatic reconnection attempts, but never while the tunnel is active or not started at all.
Could be because the log is longer then. Other than that there should be no difference.
#2 Updated by Carl-Daniel Hailfinger over 5 years ago
I know that with large logs (multiple days of VPN connection) scrolling sometimes is a bit slow, but in this case the log was reasonably short (only 2 hours of VPN connection).
Once the reconnect is successful, scrolling the log works fine again. Scrolling the log also works fine if I abort the reconnect.
#3 Updated by Tobias Brunner about 5 years ago
During a reconnect more messages are logged than usual, so maybe it's the automatic update of the log view that slows things down (each new line causes two Runnables to get queued, see source:src/frontends/android/app/src/main/java/org/strongswan/android/ui/LogFragment.java#L126, definitely not ideal if there's lots of new content).
#4 Updated by Tobias Brunner about 5 years ago
- Related to Issue #2291: Android client hangs when I try to view the log added
#5 Updated by Tobias Brunner almost 5 years ago
- Tracker changed from Issue to Bug
- Assignee set to Tobias Brunner
- Target version set to 5.6.0
- Resolution set to Fixed
That's hopefully addressed with the referenced commit.
#6 Updated by Tobias Brunner almost 5 years ago
- Status changed from Feedback to Closed
android: Make log view more efficient
This bunches several log messages together before posting Runnables.
Fixes #2148.