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]: NC25RC3 Error when trying to view HEIC images #1317

Closed
6 of 9 tasks
jakepi84 opened this issue Oct 6, 2022 · 2 comments
Closed
6 of 9 tasks

[Bug]: NC25RC3 Error when trying to view HEIC images #1317

jakepi84 opened this issue Oct 6, 2022 · 2 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@jakepi84
Copy link

jakepi84 commented Oct 6, 2022

⚠️ 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

The Photos app in 25 RC3 will not display HEIC images. The thumbnail exists, but clicking the image produces an error. JPG images load fine. I do not see any error messages server side but I do have one in the console in Firefox.

Steps to reproduce

  1. Open the photos app
  2. Click on a HEIC image
  3. Get Error Loading XXX.HEIC

Expected behavior

Image should load as previewed.

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

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

Fresh Nextcloud Server install

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": [
            "nextcloud.server",
            "nextcloud.jakepi.net"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.0.15",
        "overwriteprotocol": "https",
        "overwritehost": "nextcloud.jakepi.net",
        "overwritecondaddr": "^192\\.168\\.100\\.50$",
        "overwrite.cli.url": "http:\/\/nextcloud.server",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "US",
        "updater.release.channel": "beta",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "app_install_overwrite": [
            "onlyoffice",
            "richdocumentscode"
        ],
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\HEVC",
            "OC\\Preview\\MP4"
        ],
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "preview_imaginary_url": "http:\/\/127.0.0.1:9000"
    }
}

List of activated Apps

Enabled:
  - activity: 2.17.0
  - camerarawpreviews: 0.8.0
  - circles: 25.0.0-alpha.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 5.0.0-rc.1
  - contactsinteraction: 1.6.0
  - dashboard: 7.5.0
  - dav: 1.24.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - fileslibreofficeedit: 1.1.0
  - firstrunwizard: 2.14.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - nextcloud_announcements: 1.14.0
  - notifications: 2.13.1
  - oauth2: 1.13.0
  - password_policy: 1.15.0
  - photos: 1.7.1
  - previewgenerator: 5.1.0
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - recognize: 3.0.0-beta.3
  - recommendations: 1.4.0
  - related_resources: 1.0.0
  - richdocuments: 7.0.0-beta.2
  - richdocumentscode: 22.5.502
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - support: 1.8.0
  - survey_client: 1.13.0
  - systemtags: 1.15.0
  - text: 3.6.0
  - theming: 2.0.0
  - twofactor_backupcodes: 1.14.0
  - twofactor_totp: 7.0.0
  - updatenotification: 1.15.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - weather_status: 1.5.0
  - workflowengine: 2.7.0
Disabled:
  - admin_audit
  - bruteforcesettings
  - encryption
  - files_external
  - suspicious_login
  - user_ldap

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"mdkjSt5eYzLd8nGpwDxT","level":2,"time":"2022-10-05T17:20:01+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/mnt/ncdata/data/nextcloud.log\" was over 104857600 bytes, moved to \"/mnt/ncdata/data/nextcloud.log.1\"","userAgent":"--","version":"25.0.0.14","data":{"app":"OC\\Log\\Rotate"}}
{"reqId":"ysjMHYz50PPdOEY4t4I6","level":3,"time":"2022-10-05T17:20:01+00:00","remoteAddr":"192.168.1.250","user":"jake","app":"PHP","method":"PUT","url":"/remote.php/webdav/Photos/ByYear/2020/IMG_1410.HEIC","message":"exif_read_data(): File not supported at /var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php#20","userAgent":"rclone/v1.53.3-DEV","version":"25.0.0.14","exception":{"Exception":"Error","Message":"exif_read_data(): File not supported at /var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php#20","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php","line":20,"function":"exif_read_data"},{"file":"/var/www/nextcloud/lib/private/Metadata/MetadataManager.php","line":76,"function":"execute","class":"OC\\Metadata\\Provider\\ExifProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Metadata/FileEventListener.php","line":101,"function":"generateMetadata","class":"OC\\Metadata\\MetadataManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OC\\Metadata\\FileEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":118,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":106,"function":"postWrite","class":"OC\\Files\\Node\\HookConnector","type":"->"},

Additional info

Error loading /files/jake/Photos/InstantUpload/Camera/20221001_170800.heic
error { target: img.viewer__file--hidden.viewer__file, isTrusted: true, srcElement: img.viewer__file--hidden.viewer__file, eventPhase: 0, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, timeStamp: 82449, … }

bubbles: false

cancelBubble: false

cancelable: false

composed: false

currentTarget: null

defaultPrevented: false

eventPhase: 0

explicitOriginalTarget: <img class="viewer__file--hidden viewer__file" data-v-f8325930="" data-v-85ccb06c="" alt="Content of "20221001_170800.heic"" style="margin-top: 0px; margin-… 100%; max-width: 100%;" src="https://nextcloud.jakepi…era/20221001_170800.heic">

isTrusted: true

originalTarget: <img class="viewer__file--hidden viewer__file" data-v-f8325930="" data-v-85ccb06c="" alt="Content of "20221001_170800.heic"" style="margin-top: 0px; margin-… 100%; max-width: 100%;" src="https://nextcloud.jakepi…era/20221001_170800.heic">

returnValue: true

srcElement: <img class="viewer__file--hidden viewer__file" data-v-f8325930="" data-v-85ccb06c="" alt="Content of "20221001_170800.heic"" style="margin-top: 0px; margin-… 100%; max-width: 100%;" src="https://nextcloud.jakepi…era/20221001_170800.heic">

target: <img class="viewer__file--hidden viewer__file" data-v-f8325930="" data-v-85ccb06c="" alt="Content of "20221001_170800.heic"" style="margin-top: 0px; margin-… 100%; max-width: 100%;" src="https://nextcloud.jakepi…era/20221001_170800.heic">

timeStamp: 82449

type: "error"

<get isTrusted()>: function isTrusted()

: EventPrototype { composedPath: composedPath(), stopPropagation: stopPropagation(), stopImmediatePropagation: stopImmediatePropagation(), … }
Mime.js:111:10
mounted Mime.js:111

@jakepi84 jakepi84 added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Oct 6, 2022
@blizzz blizzz transferred this issue from nextcloud/server Oct 6, 2022
@pulsejet
Copy link
Member

Belongs to viewer, reported at nextcloud/viewer#1408
Possible fix in nextcloud/viewer#1409

@pulsejet
Copy link
Member

@jakepi84 this should be fixed with RC4

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
Projects
None yet
Development

No branches or pull requests

3 participants