sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
807 stars 39 forks source link

Glow effect may make a certain symbol become invisible #3169

Closed kapooostin closed 4 years ago

kapooostin commented 4 years ago

Description

Setting fontStyle to glow may cause a random symbol render invisible. Such symbol remains invisible if deleted and then typed in a different place within a scope the glow effect is applied. It can be reproduced in every file within said scope during a session across all open files and projects.

Here is an example with a letter j. disappearing-symbols

It happens the moment a scope with such effect is applied. disappearing-symbols-typing

The bug persists if a file or a window are closed and then reopened again. Changing scheme turns the bug on and off.

Restarting ST removes the bug with a particular letter until some other symbol becomes invisible at some point.

It does not happen every session.

Steps to reproduce

  1. Add glow effect to a scope.
  2. Check a portion of code with that scope applied.
  3. Some symbols might disappear.

Expected behavior

All symbols should be visible.

Actual behavior

A certain symbol appears to be invisible throughout all open files in a session.

Environment

BenjaminSchaaf commented 4 years ago

I've been unable to reproduce this by adding glow to monokai. You mentioned it is inconsistent, how often does it happen? What settings are you using? Could you provide the color scheme you're using and if relevant the syntax definition you're using?

BenjaminSchaaf commented 4 years ago

Also which font and which font size are you using?

kapooostin commented 4 years ago

Yes, since then I experienced it even in a plain text file. vanishing-symbols-02 A red line I added afterwards to point at the problem. Here I type in a space in front of a vanishing symbol and it appears back.

I'd say it happens once a week, maybe two. The longer is the session the more probable is the glitch to occur.

My prefs:

{
    "always_show_minimap_viewport": true,
    "auto_complete": true,
    "auto_complete_include_snippets_when_typing": true,
    "bold_folder_labels": true,
    "caret_extra_bottom": 4,
    "caret_extra_top": 4,
    "caret_extra_width": 2,
    "caret_style": "solid",
    "close_windows_when_empty": true,
    "color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
    "draw_white_space": "all",
    "ensure_newline_at_eof_on_save": false,
    "fallback_encoding": "Cyrillic (Windows 1251)",
    "font_face": "Fira Code Regular",
    "font_options":
    [
        "gray_antialias",
        "subpixel_antialias"
    ],
    "font_size": 18,
    "highlight_line": true,
    "highlight_modified_tabs": false,
    "ignored_packages":
    [
        "BracketSpacer",
        "Emmet2",
        "Rainbowth",
        "SideBarMenuAdvanced",
        "SideBarTools",
        "TabNine",
        "Vintage"
    ],
    "indent_guide_options":
    [
        "draw_active"
    ],
    "line_padding_bottom": 4,
    "line_padding_top": 4,
    "margin": 20,
    "meetio_sidebar_disclosure": true,
    "overlay_scroll_bars": "disabled",
    "show_encoding": true,
    "show_full_path": true,
    "show_line_endings": true,
    "show_rel_path": true,
    "spell_check": false,
    "tab_size": 2,
    "theme": "Meetio-Theme.sublime-theme",
    "translate_tabs_to_spaces": true
}

And the plugins I use:

    [
        "10% Too Dull for My Tastes Color Scheme",
        "A File Icon",
        "Advanced CSV",
        "AdvancedNewFile",
        "Alignment",
        "AlignTab",
        "AnySwap",
        "AutoFileName",
        "Babel",
        "Better CoffeeScript",
        "Bracketeer",
        "BracketGuard",
        "BracketHighlighter",
        "BracketSpacer",
        "Case Conversion",
        "CFG Configuration Syntax Highlighting",
        "Color Highlighter",
        "ColorHints",
        "ColorPicker",
        "Colorsublime",
        "DoxyDoxygen (evolution)",
        "EasyDiff",
        "Emmet",
        "Emmet Css Snippets",
        "Emmet2",
        "ESLint-Formatter",
        "File History",
        "FileSystem Autocompletion",
        "FindKeyConflicts",
        "FuzzyFileNav",
        "FuzzyFilePath",
        "FuzzyImports",
        "GitGutter",
        "Handlebars",
        "ImportHelper",
        "Inc-Dec-Value",
        "JsPrettier",
        "Meetio Theme",
        "Missing Palette Commands",
        "Number King",
        "Oceanic Next Color Scheme",
        "Open in Default Application",
        "OverrideAudit",
        "Package Control",
        "PackageDev",
        "PackageResourceViewer",
        "RainbowBrackets",
        "Rainbowth",
        "Sass",
        "SelectUntil",
        "SideBarEnhancements",
        "SideBarMenuAdvanced",
        "SideBarTools",
        "Slugify",
        "SublimeLinter",
        "SublimeLinter Inline Errors",
        "SublimeLinter-annotations",
        "SublimeLinter-contrib-dockerfilelint",
        "SublimeLinter-contrib-sqlint",
        "SublimeLinter-contrib-yaml-lint",
        "SublimeLinter-csslint",
        "SublimeLinter-eslint",
        "SublimeLinter-json",
        "SublimeLinter-php",
        "SublimeLinter-phplint",
        "SyncedSideBar",
        "TabNine",
        "Terminal",
        "Translit",
        "Unicode Character Highlighter",
        "UnicodeNormalizer",
        "VisualizeZeroWidthChars",
        "WakaTime"
    ]
kapooostin commented 4 years ago

I use external display connected to my macbook via eGPU, though I use this setup about a year and ST4 is the only app with such an effect.

And I never had this issue in ST3 on the same machine.

wbond commented 4 years ago

@BenjaminSchaaf My hunch is that this is OpenGL-related?

kapooostin commented 4 years ago

I switched again to the color scheme with a glow effect about a week ago. No glitches so far. ATM I have hardware_acceleration set to none. Changed to opengl to test it.

Because of eGPU I had Prefer External GPU option turned on for some time, so maybe it was causing issues. I can try testing it if you're interested.

BenjaminSchaaf commented 4 years ago

We've fixed some OpenGL rendering issues in recent releases that fix glyphs being invisible. Does this still happen using build 4086?

kapooostin commented 4 years ago

No, no glitches so far.