Skip to content

texstudio crashing when trying to add optional argument #3936

@hseliger

Description

@hseliger

Environment

  • TeXstudio: TeXstudio 4.8.6 (git 4.8.6alpha1-1-g3c26076af)
  • Qt: 5.15.15
  • OS: Linux Fedora 41
  • TeX distribution: texlive

Expected behavior

I have a line in a TeX-file like:
\includegraphics{PE12GA0007b_Leiterschaukel.png}

Now I want to add an optional argument to the includegraphics command. So I put the cursor between the "s" and the "{" and press "[" on my keyboard. It should print "[]" and put the cursor inbetween.

Actual behavior

Crash (SIGSEGV) when typing the "[".
There seems to be some dependency on the file or active packages, as the crash does not occcur in a clean minimum file. But consistenly in my setup, even when copying the correct line, removing the optional arg and the trying to add it back in.

Backtrace:
texstudio_backtrace1.txt

How to reproduce

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions