Skip to content

AlreadyRunning Method: documentfileaction exception, when instantiating multiple DocumentFile instances in parallel. #7

@yackers

Description

@yackers

Is there an existing issue or discussion for this?

  • I have searched the existing issues & discussions

Primary Information

- DocMan v1.1.0

Steps to Reproduce

If we build list of Documents or grid and instantiate each document, in parallel.

Expected Behavior

Can instantiate or perform actions on different DocumentFile instances in parallel.

Current/Actual Behavior

Always get exception in log example:
I/flutter ( 6031): Error loading thumbnail: AlreadyRunning Method: documentfileaction

Code sample

Screenshots or Video

Debug Information, Logs

No response

Possible Solution

Refactor `DocManQueueManager`
  1. Have to fix queue, because queue was made for activity methods, first of all.
  2. Due to DocumentFile actions, for example, which all work through Action channel & their main method is document_file.
  3. If method is DocumentFileAction just store request uri as key in queue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions