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] TypeError: Cannot read properties of undefined(reading'eventName') #365

Open
1 task done
lipengju530 opened this issue Dec 9, 2024 · 10 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@lipengju530
Copy link

Which app is your issue for

Document Scanner

Version

1.13.0 Build 106

What platform are you using?

Android

OS Version

MIUI12.5.2(Android10)

What happened?

A bug happened!
Question 1: When I open the software, the synchronization icon rotates and it prompts "TypeError: Cannot read properties of undefined (reading'eventName')", and the scanned file cannot be synchronized to webdav.
Screenshot_2024-12-09-16-45-00-250_com akylas documentscanner

Question 2: Sometimes the synchronization is successful, but as long as the scanned file is modified, a folder will appear on the webdav side, which contains the original image and some data files. Can I adjust not to synchronize this folder, and only synchronize the image or PDF regardless of adding or modifying it? Question 2 is a problem with the previous version. The current version cannot be synchronized, and it is impossible to confirm whether this problem still exists.

Thank you and your hard work.

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lipengju530 lipengju530 added the bug Something isn't working label Dec 9, 2024
@lipengju530
Copy link
Author

Some additional explanations for question 2:
I just tried it again, and it didn't sync automatically after scanning, so I pressed the sync button to sync manually. In addition to the set pictures and PDFs, the content synchronized to webdav also showed a folder with the same name as the picture. The folder contained a folder with a digital name and a data.json data file. The digital name folder contained the original scanned photo and the cropped original photo.
Can I adjust it to not sync this folder, and only sync pictures and PDFs regardless of adding or modifying them?
Thank you.
image
image
image

@farfromrefug
Copy link
Collaborator

@lipengju530 about the first error. I dont have enough data. where did you install from? can you share a logcat?

about the second issue. You added a "sync app data" which will sync internal app data. This is used to sync data between multiple phones. I gues it is not what you want. Either sync "images" or "PDF"

@lipengju530
Copy link
Author

@farfromrefug

After I turned off the "sync app data" function, there was no more prompt TypeError: Cannot read properties of undefined (reading'eventName').

But two new problems arose:

  1. After I scanned the file, it was automatically synchronized, but only the PDF was successfully synchronized, and the pictures and local files I set were not synchronized.

  2. So, I clicked the synchronization icon and synchronized manually, and PDF and local files could be synchronized, but the prompt "TypeError: Cannot read properties of undefined (reading'map')" appeared again.

  3. I closed the software and reopened it, and it automatically checked the synchronization, and in this case, PDF, pictures, and local files were all synchronized, but the prompt "TypeError: Cannot read properties of undefined (reading'map')" appeared.

Forgive me for not being able to capture logcat, and can only provide these limited information, sorry.

Screenshot_2024-12-09-20-29-37-668_com akylas documentscanner

@lipengju530
Copy link
Author

@farfromrefug I would like to give you feedback. I have turned off PDF synchronization and only kept the local and webdav synchronization of the images. There is no "TypeError: Cannot read properties of undefined (reading'map')" prompt, but it will not synchronize immediately after scanning. You need to synchronize manually or exit the software and enter it again to synchronize automatically.

@farfromrefug
Copy link
Collaborator

@lipengju530 i need to understand. What syncs have you set up?

@lipengju530
Copy link
Author

@farfromrefug
When syncing application data is turned off and local syncing of images, webdav syncing, and PDFwebdav syncing are turned on, there is no TypeError: Cannot read properties of undefined (reading'eventName').

When local syncing of images, webdav syncing, and PDFwebdav syncing are turned on, only PDF can be successfully synchronized, and local syncing of images and webdav do not work. At this time, if you synchronize manually, "TypeError: Cannot read properties of undefined (reading 'map')" will be prompted again. Restart the software and enter again, and "TypeError: Cannot read properties of undefined (reading 'map')" will still be prompted.

When PDFwebdav syncing is turned off and only local syncing of images and webdav syncing are turned on, there is no "TypeError: Cannot read properties of undefined (reading 'map')" prompt, but automatic synchronization still does not work and manual synchronization is required.

@farfromrefug
Copy link
Collaborator

@lipengju530 just ran some tests. Sadly i cant reproduce your issue with TypeError: Cannot read properties of undefined... (though i know there is an issue!).
Could you share a logcat? If you cant maybe you could try to install the app from the playstore and reproduce the issue? That way i would receive a bug report automatically

Now about the not syncing. Did you enable auto-sync for all your sync services? You need to if you want automatic update.
I tried it here with webdav/local services and all worked fine. Maybe the sync does not happen because of the TypeError: Cannot read properties of undefined... errors

@lipengju530
Copy link
Author

@farfromrefug
You can't reproduce the problem. I guess the reason is that we are using different Android versions. I am using the older Android 10.
Regarding sharing logs, I am sorry, I am not a developer, I don't know the specific method to export logs, and my phone cannot use Google Play. I installed it directly from the APK installation package downloaded from GitHub.
If the synchronization function is not turned on, everything is perfect for this software, but the synchronization function always has this or that unknown error. The synchronization settings are all correct. However, it doesn't matter. I will not use the synchronization function for the time being until the unknown error is resolved. Thank you very much for providing such a perfect software.

In addition, if the function of submitting logs in the software is added in the next version, it will be perfect, so as to avoid the communication barriers caused by newbies like me who don't know how to export logs.

Thank you again and wish you good luck.

@farfromrefug
Copy link
Collaborator

@lipengju530 i found the issue with eventName, fix is coming. For the other one TypeError: Cannot read properties of undefined (reading 'map') not sure how to reproduce it.
I get you cant install google play version and i am actually not sure the logcat would help. Will see if i can reproduce it

@lipengju530
Copy link
Author

@farfromrefug
OK, thank you very much. I wish you all the best.

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

2 participants