sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
273 stars 14 forks source link

Crashing with `.hdr` images #1793

Open LDAP opened 10 months ago

LDAP commented 10 months ago

Version info

Description

SM crashes when clicking on the .hdr file.

Steps to reproduce

Steps to reproduce the behavior:

  1. Open repository that contains a .hdr in the working directory
  2. Click Untracked Files, then on the file. SM attempts to render the first lines of the files, then crashes.

Expected behavior

SM does not crash.

Debug Information

=== App Version Information ===
Build: 2089

=== Git Version Information ===
Using Git: git (system)
git version 2.41.0
PATH: /usr/local/bin:/usr/bin:/home/lucas/.local/bin:/home/lucas/go/bin:/home/lucas/Android/Sdk/platform-tools:/usr/local/sbin:/usr/bin/vendor_perl:/home/lucas/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/core_perl:/usr/lib/rustup/bin

=== Browse Page Information ===
HEAD: 0b99f85aa4b09c22903d9a17ed6effaa09e76609
Is in merge: 0
Is in cherry_pick: 0
Is in rebase: 0
Is in revert: 0

=== Git Status Information ===

=== Our Status Information ===

=== Git Config Information ===
branch.main.merge=refs/heads/main
branch.main.remote=origin
commit.gpgsign=true
core.bare=false
core.editor=nano
core.filemode=true
core.logallrefupdates=true
core.repositoryformatversion=0
core.worktree=<removed>
credential.helper=store
gpg.program=gpg
http.cookiefile=/home/lucas/.gitcookies
init.defaultbranch=main
pull.rebase=true
rebase.autostash=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=<removed>
submodule.src/ext/imgui.active=true
submodule.src/ext/imgui.url=https://github.com/ocornut/imgui
submodule.subprojects/VulkanMemoryAllocator.active=true
submodule.subprojects/VulkanMemoryAllocator.url=https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
submodule.subprojects/spdlog.active=true
submodule.subprojects/spdlog.url=https://github.com/gabime/spdlog
submodule.subprojects/tinygltf.active=true
submodule.subprojects/tinygltf.url=https://github.com/syoyo/tinygltf
submodule.subprojects/tinyobjloader.active=true
submodule.subprojects/tinyobjloader.url=https://github.com/tinyobjloader/tinyobjloader
user.email=<removed>
user.name=<removed>
user.signingkey=<removed>

=== Our Config Information ===
Git Config Path Information
Using config path: /etc/gitconfig
Using config path: /home/lucas/.config/git/config
Using config path: /home/lucas/.gitconfig
Using config path: <removed>

Our config output is identical to the Git config output

=== Git Attributes Information ===
git check_attr --all output

=== Our Modified Files Newline Normalisation and EOL Information ===

=== Our Modified Files Flag Information ===
Ignoring symlinks: 0

Screenshots

dpjohnst commented 9 months ago

Hi @LDAP,

Thanks for reporting this issue.

I haven't been able to reproduce this issue so far. Could you confirm if the repository / .hdr file is public? Additionally, could you confirm if this happens for you on all .hdr files or just a specific file?

Kind regards, - Dylan from Sublime HQ

LDAP commented 9 months ago

Hi,

The repository is private. Here's an HDR file that crashed SM:

image.zip

Couldn't reproduce today, maybe it's because I updated to 2090 or maybe because the files were not exported while SM/ST being open (normally I use https://github.com/nothings/stb/blob/master/stb_image_write.h, but today I tried copying a file into the repo).