{"id":16487152,"url":"https://github.com/vsimko/corel-asp3-dng-bug","last_synced_at":"2026-03-03T21:01:55.741Z","repository":{"id":89839481,"uuid":"78731745","full_name":"vsimko/corel-asp3-dng-bug","owner":"vsimko","description":"Reproducible example showing a bug within Corel Aftershot Pro 3 when working with DNG files","archived":false,"fork":false,"pushed_at":"2017-01-30T20:02:03.000Z","size":38606,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:51:30.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsimko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-12T10:01:15.000Z","updated_at":"2017-01-12T11:47:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cbe7ffc-0ba9-4893-a179-dabdeaf8163b","html_url":"https://github.com/vsimko/corel-asp3-dng-bug","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"f004bd7a2c750ad7d89ca0caa301e05bac5b0bf8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vsimko/corel-asp3-dng-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fcorel-asp3-dng-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fcorel-asp3-dng-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fcorel-asp3-dng-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fcorel-asp3-dng-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsimko","download_url":"https://codeload.github.com/vsimko/corel-asp3-dng-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fcorel-asp3-dng-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T13:32:52.798Z","updated_at":"2026-03-03T21:01:55.721Z","avatar_url":"https://github.com/vsimko.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corel Aftershot Pro 3 DNG bug\nReproducible example showing a bug within Corel Aftershot Pro 3 when working with DNG files\n\n**UPDATE (2017-01-30):** It seems that Aftershot Pro 3 and 2 contain another bug causing severe memory leaks when generating previews for imported DNG files. On a machine with 32 GB RAM, the memory is exhausted after approx. 1000 previews.\nIf swap is disabled, the application crashes. With swap enabled, the whole OS slows down tremendously.\nThis only happens with DNG files and not with other raw formats (e.g PEF, ARW, CR2, ...) \n\n\n# Introduction\n\nWe are going to demonstrate the bug in a fresh linux box based on the latest Ubuntu 16.04 (Xenial) running inside a virtual machine.\nTo make the setup reproducible, we use [vagrant](https://www.vagrantup.com/) + [virtualbox](https://www.virtualbox.org/).\nThe steps involve:\n- installing the linux\n- downloading and installing Aftershot\n- downloading sample DNG and PEF files from the same camera\n- running Aftershot\n\nRealted GIST describing the problem in detail: https://gist.github.com/vsimko/57714a842a3785ce1a2c3e91471dd213\n\n# Prerequisites (inside the host machine)\n- **VirtualBox** installed (tested with VirtualBox 5.1)\n- **Vagrant** installed (tested with vagrant 1.9.1)\n\n# Installation of a fresh virtual machine\nUsing vagrant, we setup a fresh linux environment - the latest Ubuntu 16.04 Xenial as follows:\n\n```sh\nmkdir corel-bug-vm\ncd corel-bug-vm\nvagrant init ubuntu/xenial64\nvagrant up\nvagrant ssh -- -X\n```\n\nNow, we are connected to the virtual machine.\n(Note: The `-X` option allows us to run applications that require connection to the X server.)\n\n```sh\n# we use gdebi tool to install deb files including all dependencies\nsudo apt-get --assume-yes install gdebi\n\n# downloading the latest Aftershot\nwget http://dwnld.aftershotpro.com/updates/v3/AfterShotPro3.deb\n\n# installing Aftershot (including dependencies)\nsudo gdebi --non-interactive AfterShotPro3.deb\n\n# additional requirements for Aftershot (doesn't work without it)\nsudo apt-get install libxslt1.1\n\n# now, we download the sample DNG and PEF files to demonstrate the bug\nwget https://github.com/vsimko/corel-asp3-dng-bug/raw/master/SAMPLE-PENTAX.DNG\nwget https://github.com/vsimko/corel-asp3-dng-bug/raw/master/SAMPLE-PENTAX.PEF\n\n# finally, we can run Aftershot\nAfterShot3X64\n```\n\nYou can also run Afterhost with super-user privileges as suggested by the Corel technical support.\nJust use `sudo AfterShot3X64`. However, the bug is still there even when running as root.\n\n# Running Aftershot\nIn the first dialog, click OK.\n\n![Dialog 1](aftershot-dialog1.png)\n\nIn the second dialog, click \"Try Corel AfterShot Pro 3\".\n\n![Dialog 2](aftershot-dialog2.png)\n\nWe can now navigate to the downloaded PEF and DNG files inside the \"File System\" tab.\n\n![LensId in PEF](app-findfiles.png)\n\nNow, we open the PEF image \"SAMPLE-PENTAX.PEF\" and go to the \"Lens Correction\" tab.\nHere, we can see that Aftershot correctly identified the lens as \"smc PENTAX-DA 18-135mm f/3.5-5.6 ED AL [IF] DC WR\"\n\n![LensId in PEF](app-lens-in-pef.png)\n\nIf we do the same with the DNG version \"SAMPLE-PENTAX.DNG\", we can see that Aftershot did not correctly identify the lens.\n\n![LensId in DNG](app-lens-in-dng.png)\n\n\n# Using exiftool to browse EXIF data from the images\n\n```sh\n# first, we need to install exiftool into our VM\nsudo apt-get install exiftool\n```\n\nNow we can list all metadata containing \"lens\" string (first PEF, second DNG)\n```sh\nubuntu@ubuntu-xenial:~$ exiftool SAMPLE-PENTAX.PEF|grep -i lens\nLens Type                       : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR\nLens Focal Length               : 18.1 mm\nLens ID                         : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR\n```\n\n```sh\nubuntu@ubuntu-xenial:~$ exiftool SAMPLE-PENTAX.DNG|grep -i lens\nLens Type                       : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR\nLens Focal Length               : 40.0 mm\nLens ID                         : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsimko%2Fcorel-asp3-dng-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsimko%2Fcorel-asp3-dng-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsimko%2Fcorel-asp3-dng-bug/lists"}