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

Stuck on 'Restoring Session' #436

Open
ScubyG opened this issue Jul 10, 2024 · 3 comments
Open

Stuck on 'Restoring Session' #436

ScubyG opened this issue Jul 10, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ScubyG
Copy link

ScubyG commented Jul 10, 2024

What happened?

When closing the app and reopening it, the Restoring Session screen continously displays with the spinner

Steps to reproduce

  1. Open app
  2. Close app
  3. Reopen app

Log output from the app

---BEGIN ERROR---
S.delegate failed to load unsupported locale "en_GB". This is likely an issue with the localizations generation tool. Please file an issue on GitHub with a reproducible sample app and the gen-l10n configuration that was used.
---END ERROR---
---BEGIN STACKTRACE---
#0      lookupS (package:paperless_mobile/generated/l10n/app_localizations.dart:2566)
#1      _SDelegate.load (package:paperless_mobile/generated/l10n/app_localizations.dart:2537)
#2      AuthenticationCubit.restoreSession (package:paperless_mobile/features/login/cubit/authentication_cubit.dart:283)
#3      _GoRouterShellState.initState.<anonymous closure> (package:paperless_mobile/main.dart:272)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1264)
#6      SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:978)
#7      _rootRun (dart:async/zone.dart:1391)
#8      _CustomZone.run (dart:async/zone.dart:1301)
#9      _CustomZone.runGuarded (dart:async/zone.dart:1209)
#10     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#11     _rootRun (dart:async/zone.dart:1399)
#12     _CustomZone.run (dart:async/zone.dart:1301)
#13     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1233)
#14     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
#15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)
#16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)
#17     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)

---END STACKTRACE---
2024-07-10 10:41:39.026	INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453

Screenshots

Screenshot_20240710-105123

Paperless-ng*x Version

2.10.2

Paperless-Mobile Version

3.2.1

Device

Pixel 6 Pro

Operating System Version

GrapheneOS

Device Locale

En_GB

Selected Locale

English (UK)

Additional Context

No response

@DSchougaard
Copy link

Any updates on this?

@BeastleeUK
Copy link

I had this issue just now, after being fine for months. I've had to clear the data for the app and log back in. Seems to be something to do with the login process when restoring the session. Hopefully a one-off.

@cromelex
Copy link

cromelex commented Dec 1, 2024

I am facing this issue now, and it happens every single time the app is reopened. It does not happen with the default en_US locale.

2024-12-01 09:05:25.670	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2024-12-01 09:05:25.670	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Verifying user identity...
2024-12-01 09:05:25.671	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
S.delegate failed to load unsupported locale "en_GB". This is likely an issue with the localizations generation tool. Please file an issue on GitHub with a reproducible sample app and the gen-l10n configuration that was used.
---END ERROR---
---BEGIN STACKTRACE---
#0      lookupS (package:paperless_mobile/generated/l10n/app_localizations.dart:2566)
#1      _SDelegate.load (package:paperless_mobile/generated/l10n/app_localizations.dart:2537)
#2      AuthenticationCubit.restoreSession (package:paperless_mobile/features/login/cubit/authentication_cubit.dart:283)
#3      _GoRouterShellState.initState.<anonymous closure> (package:paperless_mobile/main.dart:272)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1264)
#6      SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:978)
#7      _rootRun (dart:async/zone.dart:1391)
#8      _CustomZone.run (dart:async/zone.dart:1301)
#9      _CustomZone.runGuarded (dart:async/zone.dart:1209)
#10     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#11     _rootRun (dart:async/zone.dart:1399)
#12     _CustomZone.run (dart:async/zone.dart:1301)
#13     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1233)
#14     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18)
#15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)
#16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)
#17     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)

---END STACKTRACE---
2024-12-01 09:05:25.672	INFO    --- [                         ] -                          : Setting refresh rate to 90.0

I've not tried it multiple times and it seems to happen all the time.
This didn't happen previously.
I did change my setup, so I am now using a .pfx certificate for mTLS.

It works absolutely fine in the default locale, but once it's changed to en_GB (which I do because of the date format), once the app is closed and reopen it gets stuck in this status without any solution.
Clearing cache etc doesn't help. I need to clear all data and relogin from start.

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
Status: 🆕 New
Development

No branches or pull requests

5 participants