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

[Bug]: In the document tab only a few documents can be opened #341

Closed
granulos opened this issue Jan 1, 2024 · 3 comments · Fixed by #346
Closed

[Bug]: In the document tab only a few documents can be opened #341

granulos opened this issue Jan 1, 2024 · 3 comments · Fixed by #346
Assignees
Labels
bug Something isn't working

Comments

@granulos
Copy link

granulos commented Jan 1, 2024

What happened?

When I click on the "Documents" view in the app, I see - unfiltered - exactly 25 documents. Of these, I can open the first documents to access the details of the respective document. However, if I try to open the other documents, unfortunately nothing happens. As soon as a document does not open, opening previously intact documents no longer works either.

Update: The problem appears on the unfiltered list. I have selected a document that appears unfiltered and cannot be opened via filters. Then it can be opened at once.

Update 2: Even if I filter by correspondent (without any other filter, let alone a time window), only the first 25 documents of the result are displayed (depending on the sorting). I would expect to see all documents here.

Steps to reproduce

  1. Just login with a prepared user (all necessary permissions) to paperless-ngx
  2. Click on "Documents"
  3. The list contains exact 25 entries (in my example out of 4000+ documents)
  4. Randomly click on the documents. Only a few documents can be opened

Log output from the app

2023-12-31 15:15:38.685	DEBUG   --- [      AuthenticationCubit] - restoreSession           : Trying to restore previous session...
2023-12-31 15:15:38.686	DEBUG   --- [      AuthenticationCubit] - restoreSession           : There is nothing to restore.
2023-12-31 15:15:38.689	INFO    --- [                         ] -                          : Setting refresh rate to 120.00000762939453
2023-12-31 15:16:18.155	DEBUG   --- [      AuthenticationCubit] - login                    : Trying to log in sebastian@19***82...
2023-12-31 15:16:18.158	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Adding new user sebastian@19***82..
2023-12-31 15:16:18.158	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Fetching bearer token from the server...
2023-12-31 15:16:18.942	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Bearer token successfully retrieved.
2023-12-31 15:16:18.943	DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Trying to fetch API version...
2023-12-31 15:16:18.987	DEBUG   --- [      AuthenticationCubit] - _getApiVersion           : Successfully retrieved API version (3).
2023-12-31 15:16:18.988	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Trying to fetch remote paperless user for sebastian@19***82.
2023-12-31 15:16:19.150	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Remote paperless user successfully fetched.
2023-12-31 15:16:19.151	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Persisting user account information...
2023-12-31 15:16:19.186	DEBUG   --- [      AuthenticationCubit] - _addUser                 : User account information successfully persisted.
2023-12-31 15:16:19.186	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Persisting user app state...
2023-12-31 15:16:19.189	DEBUG   --- [      AuthenticationCubit] - _addUser                 : User state successfully persisted.
2023-12-31 15:16:19.943	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Saving user credentials inside encrypted storage...
2023-12-31 15:16:19.949	DEBUG   --- [      AuthenticationCubit] - _addUser                 : User credentials successfully saved.
2023-12-31 15:16:19.955	DEBUG   --- [      AuthenticationCubit] - _addUser                 : Added new url to list of hosts.
2023-12-31 15:16:19.956	DEBUG   --- [      AuthenticationCubit] - login                    : User sebastian@19***82 successfully logged in.
2023-12-31 15:16:19.979	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 15:16:19.979	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 15:16:20.064	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 15:16:20.064	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 15:16:20.612	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 15:16:20.981	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 15:16:21.898	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 15:16:21.900	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 15:16:22.225	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 15:16:22.227	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 15:16:22.237	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 15:16:22.519	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 15:16:36.821	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 15:16:48.980	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 15:16:50.067	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 15:16:50.643	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 15:17:06.260	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:35.766	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 16:39:35.767	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 16:39:35.768	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 16:39:36.387	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 16:39:36.793	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 16:39:36.838	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 16:39:49.472	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:50.964	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:51.881	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:53.232	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:53.632	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:39:58.542	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 16:39:58.865	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 16:40:05.808	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:40:06.338	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 16:40:18.128	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 16:40:24.581	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 16:40:24.870	DEBUG   --- [          LabelRepository] - findAllTags              : Successfully updated all tags.
2023-12-31 16:40:35.810	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:40:36.429	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 16:41:05.811	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:41:06.435	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 16:41:35.831	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:41:36.449	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 16:42:05.834	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:42:06.452	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 16:42:35.822	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...
2023-12-31 16:42:36.456	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : No new documents found in inbox.
2023-12-31 17:25:45.061	DEBUG   --- [          LabelRepository] - findAllTags              : Loading all tags...
2023-12-31 17:25:51.156	ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
Null check operator used on a null value
---END ERROR---
---BEGIN STACKTRACE---
#0      ExpansionTileController.isExpanded (package:flutter/src/material/expansion_tile.dart:50)
#1      _DocumentsPageState._buildDocumentsTab.<anonymous closure> (package:paperless_mobile/features/documents/view/pages/documents_page.dart:311)
#2      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130)
#3      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3196)
#4      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#5      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#6      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#7      _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3199)
#8      Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4762)
#9      Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60)
#10     ScrollActivity.dispatchScrollEndNotification (package:flutter/src/widgets/scroll_activity.dart:102)
#11     ScrollPosition.didEndScroll (package:flutter/src/widgets/scroll_position.dart:1010)
#12     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:976)
#13     _NestedScrollPosition.goBallistic (package:flutter/src/widgets/nested_scroll_view.dart:1386)
#14     BallisticScrollActivity._end (package:flutter/src/widgets/scroll_activity.dart:572)
#15     _rootRun (dart:async/zone.dart:1391)
#16     _CustomZone.run (dart:async/zone.dart:1301)
#17     _FutureListener.handleWhenComplete (dart:async/future_impl.dart:199)
#18     Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:810)
#19     Future._propagateToListeners (dart:async/future_impl.dart:866)
#20     Future._completeWithValue (dart:async/future_impl.dart:641)
#21     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:715)
#22     _rootRun (dart:async/zone.dart:1399)
#23     _CustomZone.run (dart:async/zone.dart:1301)
#24     _CustomZone.runGuarded (dart:async/zone.dart:1209)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:40)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)

---END STACKTRACE---
2023-12-31 17:26:15.102	INFO    --- [               InboxCubit] - refreshItemsInInboxCount : Checking for new documents in inbox...

Screenshots

No response

Paperless-ng*x Version

2.2.1

Paperless-Mobile Version

3.1.8

Device

Google Pixel 8 Pro

Operating System Version

Android 14 (latest stable)

Device Locale

german

Selected Locale

None

Additional Context

No response

@astubenbord
Copy link
Owner

Hi,
so I looked into the code and I think I know where the issue may come from.

Regarding the 25 entries: This is a result of the error that is thrown but not caught; The app will listen to scroll changes (i.e. if the user has scrolled farther than X pixels) to collapse/hide the saved views panel at the top if it is in expanded state. In this case, an error is thrown when trying to access the isExpanded property of this panel (probably related to flutter/flutter#137831 and therefore flutter/flutter#138153). This check happens in the same code block as the "if user has scrolled to nearly the bottom, load the next page of 25 entries" logic. Since an error is thrown here, the "load more" code is never executed and this is probably why you're only seeing 25 documents.
Long story short, I'll just implement a workaround which will catch the error that is thrown so the following code is not affected. This isn't optimal but it should fix the behavior you're seeing.

I cannot say for sure, but I also assume that the errors cause the details page to not load correctly for some reason. I'll leave this open, keep an eye out for updates and maybe report back if you can confirm that this fixed your issue.

Cheers

@astubenbord astubenbord moved this from 🆕 New to ✅ Done in Paperless Mobile Board Jan 3, 2024
@astubenbord astubenbord removed the triage label Jan 3, 2024
@granulos
Copy link
Author

granulos commented Jan 3, 2024

Hi, thank you very much for the detailed explanation and the very quick response.

I also played around with different filter settings and realised that some of the "lower" documents are not opened in detail view even when filtering is set. This fits very well with the "scroll" bug, which is independent of the filtering. It makes much more sense this way.

Thanks again. I am very excited about the next update 😃

@granulos
Copy link
Author

granulos commented Jan 7, 2024

Hi, quick feedback and a question: Reloading documents and displaying the detail view is now working again. But what does not work (anymore): If I click on the thumbnail of a document (no matter in which tab), the "Viewer" opens, but remains empty. The correct number of pages is displayed and I can also navigate through the document, but the view is always empty.

Should I create a new bug as this is closed and it is a different problem? In any case, it was still working before the last update.
share_5355482953141276880

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: Done
Development

Successfully merging a pull request may close this issue.

2 participants