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]: Loading my gallery throws an error which renders the gallery unusable. #1769

Closed
5 of 9 tasks
JanisPlayer opened this issue May 1, 2023 · 2 comments
Closed
5 of 9 tasks
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working duplicate This issue or pull request already exists

Comments

@JanisPlayer
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Loading my gallery throws an error which renders the gallery unusable.
I just have to scroll the gallery and I get an error:
checked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received ConsoleLogger.js:46 [ERROR] photos: Error fetching files {level: 0, app: 'photos', uid: 'janis', error: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at https://download.h…}app: "photos"error: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:3662409 at Array.forEach (<anonymous>) at h.updateFiles (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:3662222) at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2732297 at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733815 at Array.forEach (<anonymous>) at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733794 at h._withCommit (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2735624) at h.commit (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733768)message: "Unexpected end of JSON input"stack: "SyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:3662409\n at Array.forEach (<anonymous>)\n at h.updateFiles (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:3662222)\n at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2732297\n at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733815\n at Array.forEach (<anonymous>)\n at https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733794\n at h._withCommit (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2735624)\n at h.commit (https://download.heldendesbildschirms.de/apps/photos/js/photos-main.js?v=bd1bfd25-0:2:2733768)"[[Prototype]]: Errorlevel: 0uid: "janis"[[Prototype]]: Object value @ ConsoleLogger.js:46 value @ ConsoleLogger.js:72 (anonym) @ FetchFilesMixin.js:113 l @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 fetchFiles @ FetchFilesMixin.js:60 getContent @ Timeline.vue:237 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 needContent @ FilesListViewer.vue:244 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 isNearBottom @ VirtualScrolling.vue:231 Nt @ vue.runtime.esm.js:3017 e.run @ vue.runtime.esm.js:3534 An @ vue.runtime.esm.js:4121 (anonym) @ vue.runtime.esm.js:3143 jt @ vue.runtime.esm.js:3065 Promise.then (async) Bt @ vue.runtime.esm.js:3090 Gt @ vue.runtime.esm.js:3155 Fn @ vue.runtime.esm.js:4207 e.update @ vue.runtime.esm.js:3513 e.notify @ vue.runtime.esm.js:720 set @ vue.runtime.esm.js:963 Hn.Gn.set @ vue.runtime.esm.js:5356 (anonym) @ VirtualScrolling.vue:294 u @ index.js:27 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) u @ index.js:23 setTimeout (async) l @ index.js:38 FetchFilesMixin.js:114 SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at files.js:53:40 at Array.forEach (<anonymous>) at h.updateFiles (files.js:45:12) at vuex.esm.js:844:13 at vuex.esm.js:466:7 at Array.forEach (<anonymous>) at vuex.esm.js:465:11 at h._withCommit (vuex.esm.js:624:3) at h.commit (vuex.esm.js:464:8) (

Would it also be possible for you guys to perhaps go in the direction of Google Photos as far as the condition is concerned?
I have more than 17k photos and I don't want to keep scrolling halfway through the photo app to take 50 minutes to load in 2019.
People, to be honest, I have to say that feels really unfinished and there is more possible, you can see that you can ask what I did on that day last year.
That doesn't seem to be a problem, but I can't easily scroll by date in the Gallery app.
And now after an update I still have such problems that it no longer works at all.
And Mariadb and Apache don't like it when so many images needlessly need to be processed and loaded.
I'm really not kidding, I prefer to use SFTP sometimes to search for an image by date, because it doesn't load the server for no reason.
I don't have to say how crappy it is about the Android app, it usually just smears, now unfortunately the web version does it too.

Do I have to check the data for errors or where is the problem, it worked before the update?

Steps to reproduce

  1. Install Nextcloud Hub 4 (26.0.1)
  2. Scroll through the photos or videos in the Gallery app and suddenly there are no more pictures.

Expected behavior

It should actually load and not result in an error.

Installation method

Community Manual installation with Archive

Nextcloud Server version

26

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "download.heldendesbildschirms.dynv6.net",
            "download.heldendesbildschirms.net",
            "download.heldendesbildschirms.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.1.1",
        "overwrite.cli.url": "http:\/\/download.heldendesbildschirms.dynv6.net",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "theme": "",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "updater.release.channel": "stable",
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "enabledPreviewProviders": {
            "0": "OC\\Preview\\Imaginary",
            "1": "OC\\Preview\\JPEG",
            "2": "OC\\Preview\\GIF",
            "3": "OC\\Preview\\BMP",
            "4": "OC\\Preview\\XBitmap",
            "5": "OC\\Preview\\Movie",
            "6": "OC\\Preview\\PDF",
            "7": "OC\\Preview\\MP3",
            "8": "OC\\Preview\\TXT",
            "9": "OC\\Preview\\MarkDown",
            "20": "OC\\Preview\\Movie"
        },
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "jpeg_quality": "30", #WebP or AVIF would be great as I said looks ugly and unfortunately the image is also used in full screen and not simply an optional button or setting generates a better cached version at the expense of performance, with the option of displaying the original version. Wasted potential again, but I think you'll make it one day, I believe in you.
        "preview_imaginary_url": "http:\/\/[2a02:8070:b584:ea60:52eb:71ff:fe5d:25f0]:9000" #The server can only be reached by my server anyway, so don't worry that's okay, but there's still no way to protect the server with a key.
    }
}

List of activated Apps

Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.3
  - circles: 26.0.0
  - cloud_federation_api: 1.9.0
  - comments: 1.16.0
  - contacts: 5.2.0
  - contactsinteraction: 1.7.0
  - dashboard: 7.6.0
  - dav: 1.25.0
  - deck: 1.9.0
  - encryption: 2.14.0
  - end_to_end_encryption: 1.12.4
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_external: 1.18.0
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - firstrunwizard: 2.15.0
  - integration_google: 1.0.9
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - mail: 3.1.1
  - maps: 1.0.2
  - nextcloud_announcements: 1.15.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - onlyoffice: 7.8.0
  - password_policy: 1.16.0
  - photos: 2.2.0
  - previewgenerator: 5.2.4
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - recognize: 4.0.1
  - recommendations: 1.5.0
  - related_resources: 1.1.0-alpha1
  - richdocuments: 8.0.1
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - spreed: 16.0.3
  - support: 1.9.0
  - survey_client: 1.14.0
  - systemtags: 1.16.0
  - text: 3.7.2
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - updatenotification: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - richdocumentscode: 22.5.802 (installed 22.5.802)
  - suspicious_login: 4.4.0
  - twofactor_totp: 8.0.0-alpha.0
  - user_ldap: 1.16.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

nextcloud.log Trash:
https://pastebin.com/7GZSiukV

Additional info

No response

@JanisPlayer JanisPlayer added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels May 1, 2023
@szaimen szaimen transferred this issue from nextcloud/server May 1, 2023
@JanisPlayer
Copy link
Author

I tried using files:scan --all to scan for non-existing files and now I get this error in the browser developer console right when I call it and the gallery app isn't loading anymore.
Before that it loaded at least the first images.
But at least videos work.
I also tried clearing the browser cache, same problem.
If anyone has the same problem, that's definitely not the solution.
If someone has a solution, bring it on. :D
new errors:
RelatedResourcesPanel.js:2 Uncaught (in promise) TypeError: (0 , o.getLanguage) is not a function at e.value (NcRelatedResourcesPanel.js:2:120320) at 932 (CancelToken.js:31:5) at a (floating-vue.es.js:1489:30) at floating-vue.es.js:1513:44 at floating-vue.es.js:1790:10 at 9234 (floating-vue.es.js:1790:35) at a (bootstrap:19:32) at a.t (create fake namespace object:10:23) value @ NcRelatedResourcesPanel.js:2 932 @ CancelToken.js:31 a @ floating-vue.es.js:1489 (anonym) @ floating-vue.es.js:1513 (anonym) @ floating-vue.es.js:1790 9234 @ floating-vue.es.js:1790 a @ bootstrap:19 a.t @ create fake namespace object:10 Promise.then (async) (anonym) @ main.js:39 ConsoleLogger.js:46 [ERROR] photos: Error fetching files {level: 0, app: 'photos', uid: 'janis', error: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at https://download.h…} value @ ConsoleLogger.js:46 value @ ConsoleLogger.js:72 (anonym) @ FetchFilesMixin.js:113 l @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 fetchFiles @ FetchFilesMixin.js:60 getContent @ Timeline.vue:237 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 needContent @ FilesListViewer.vue:244 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 isNearBottom @ VirtualScrolling.vue:231 Nt @ vue.runtime.esm.js:3017 e.run @ vue.runtime.esm.js:3534 An @ vue.runtime.esm.js:4121 (anonym) @ vue.runtime.esm.js:3143 jt @ vue.runtime.esm.js:3065 Promise.then (async) Bt @ vue.runtime.esm.js:3090 Gt @ vue.runtime.esm.js:3155 Fn @ vue.runtime.esm.js:4207 e.update @ vue.runtime.esm.js:3513 e.notify @ vue.runtime.esm.js:720 set @ vue.runtime.esm.js:963 Hn.Gn.set @ vue.runtime.esm.js:5356 (anonym) @ VirtualScrolling.vue:261 FetchFilesMixin.js:114 SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at files.js:53:40 at Array.forEach (<anonymous>) at h.updateFiles (files.js:45:12) at vuex.esm.js:844:13 at vuex.esm.js:466:7 at Array.forEach (<anonymous>) at vuex.esm.js:465:11 at h._withCommit (vuex.esm.js:624:3) at h.commit (vuex.esm.js:464:8) (anonym) @ FetchFilesMixin.js:114 l @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 Promise.then (async) k @ FetchFilesMixin.js:2 a @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 (anonym) @ FetchFilesMixin.js:2 fetchFiles @ FetchFilesMixin.js:60 getContent @ Timeline.vue:237 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 needContent @ FilesListViewer.vue:244 Nt @ vue.runtime.esm.js:3017 n @ vue.runtime.esm.js:1815 Nt @ vue.runtime.esm.js:3017 e.$emit @ vue.runtime.esm.js:3716 isNearBottom @ VirtualScrolling.vue:231 Nt @ vue.runtime.esm.js:3017 e.run @ vue.runtime.esm.js:3534 An @ vue.runtime.esm.js:4121 (anonym) @ vue.runtime.esm.js:3143 jt @ vue.runtime.esm.js:3065 Promise.then (async) Bt @ vue.runtime.esm.js:3090 Gt @ vue.runtime.esm.js:3155 Fn @ vue.runtime.esm.js:4207 e.update @ vue.runtime.esm.js:3513 e.notify @ vue.runtime.esm.js:720 set @ vue.runtime.esm.js:963 Hn.Gn.set @ vue.runtime.esm.js:5356 (anonym) @ VirtualScrolling.vue:261 download.heldendesbildschirms.de/:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

@umgfoin umgfoin added the duplicate This issue or pull request already exists label May 2, 2023
@umgfoin
Copy link
Contributor

umgfoin commented May 2, 2023

duplicate of #1753

@umgfoin umgfoin closed this as completed May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants