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

Very high CPU usage when it should be idle #325

Open
w-ensink opened this issue Feb 19, 2025 · 0 comments
Open

Very high CPU usage when it should be idle #325

w-ensink opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@w-ensink
Copy link
Member

w-ensink commented Feb 19, 2025

After scanning a QR code the CPU usage goes up to 75-100%, even when back on the home screen doing nothing.
Before scanning a QR code for the first time, the app is at around 3% on the home screen, which is to be expected in debug mode.

I measured it in Xcode on a physical iOS device.

Issue seems to be this for loop: https://github.com/privacybydesign/irmago/blob/5ab0cec50ba16e921c1be95c6d7e414e4512d195/wait_status.go#L31-L33

It's caused by SSE, which is marked as experimental:
https://github.com/privacybydesign/irmago/blob/5ab0cec50ba16e921c1be95c6d7e414e4512d195/server/conf.go#L51-L52

Tried replicating by spinning up an irma server with

go run . server --allow-unsigned-callbacks --sse --url http://172.20.10.7:8088 --no-tls -v

And creating a session with

go run . session --pairing --issue irma-demo.MijnOverheid.ageLower=yes,yes,yes,no  -v --server http://172.20.10.7:8088

SSE seems to work this way, so it's not broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant