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]: Remove of scanned pages did not work #395

Open
timomatrixer opened this issue Mar 7, 2024 · 3 comments · May be fixed by #416
Open

[Bug]: Remove of scanned pages did not work #395

timomatrixer opened this issue Mar 7, 2024 · 3 comments · May be fixed by #416
Assignees
Labels
bug Something isn't working

Comments

@timomatrixer
Copy link

timomatrixer commented Mar 7, 2024

What happened?

Removing page after shoot one under scanner tab did not work

Steps to reproduce

  1. Scanner
  2. Camera symbol
  3. Shoot one site
  4. Try to remove the page

Log output from the app

No response

Screenshots

Screenshot_20240307-061029

Paperless-ng*x Version

2.5.4

Paperless-Mobile Version

3.2.1+405

Device

Pixel 7 Pro

Operating System Version

Android 14

Device Locale

German

Selected Locale

None

Additional Context

paperless_mobile_logs_2024-04-08.log

@timomatrixer timomatrixer added bug Something isn't working triage labels Mar 7, 2024
@astubenbord
Copy link
Owner

Could you please add the logs to the issue? Thanks.

@timomatrixer
Copy link
Author

Could you please add the logs to the issue? Thanks.

Done

@GregSutcliffe
Copy link

I've seen this issue and can provide logs:

2024-04-08 10:38:43.513 ERROR   --- [                         ] - main                     : An unexpected error occurred 
---BEGIN ERROR---
PathNotFoundException: Cannot open file, path = '/data/user/0/de.astubenbord.paperless_mobile/cache/scans/ea90e4e0-cab6-1f5c-a84b-d78ac31cb058.jpeg' (OS Error: No such file or directory, errno = 2)
---END ERROR---
---BEGIN STACKTRACE---
#0      _File.throwIfError (dart:io/file_impl.dart:675)
#1      _File.openSync (dart:io/file_impl.dart:490)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:574)
#3      _ScannerPageState._assembleFileBytes (package:paperless_mobile/features/document_scan/view/scanner_page.dart:400)
#4      _ScannerPageState._onPrepareDocumentUpload (package:paperless_mobile/features/document_scan/view/scanner_page.dart:254)
#5      _ScannerPageState._buildActions.<anonymous closure>.<anonymous closure> (package:paperless_mobile/features/document_scan/view/scanner_page.dart:163)
#6      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1183)
#7      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275)
#8      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:652)
#9      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:309)
#10     BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:279)
#11     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:167)
#12     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:492)
#13     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:468)
#14     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:439)
#15     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:413)
#16     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:376)
#17     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:323)
#18     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:292)
#19     _rootRunUnary (dart:async/zone.dart:1415)
#20     _CustomZone.runUnary (dart:async/zone.dart:1308)
#21     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#22     _invoke1 (dart:ui/hooks.dart:330)
#23     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:410)
#24     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

MofX pushed a commit to MofX/paperless-mobile that referenced this issue Apr 25, 2024
Removing a single file from scanned pages failed with
UnmodifiableListMixin.remove (dart:_internal/list.dart:134)

This filters the list instead of trying to remove from it.

fixes astubenbord#395
Signed-off-by: Jörg Vehlow <joerg@jv-coder.de>
@MofX MofX linked a pull request Apr 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants