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

Crash on '{{ }}' in template #71

Open
poelzi opened this issue Feb 8, 2021 · 1 comment
Open

Crash on '{{ }}' in template #71

poelzi opened this issue Feb 8, 2021 · 1 comment

Comments

@poelzi
Copy link

poelzi commented Feb 8, 2021

We use grantlee to generate user configureable filenames where the user sets the pattern in a qtextedit.
While testing we noticed that the pattern '{{ }}' crashes the engine, while '{{}}' does not. It must contain at least one space for the crash to occure.

--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 ".mixxx-wrapped" received signal SIGSEGV, Segmentation fault.
0x00007ffff7ec9c16 in Grantlee::Parser::takeNextToken() () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
(gdb) bt
#0  0x00007ffff7ec9c16 in Grantlee::Parser::takeNextToken() () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#1  0x00007ffff7eca442 in Grantlee::ParserPrivate::parse(QObject*, QStringList const&) () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#2  0x00007ffff7ecab82 in Grantlee::Parser::parse(Grantlee::TemplateImpl*, QStringList const&) () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#3  0x00007ffff7ed2fc1 in Grantlee::TemplatePrivate::compileString(QString const&) () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#4  0x00007ffff7ed31c7 in Grantlee::TemplateImpl::setContent(QString const&) () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#5  0x00007ffff7eb6693 in Grantlee::Engine::newTemplate(QString const&, QString const&) const () from /nix/store/360v6zacms0cdxyq0wxjkjjrsli20q4m-grantlee-5.2.0/lib/libGrantlee_Templates.so.5
#6  0x0000000000b5c8b9 in TrackExportWorker::updateTemplate (this=0x7ffe934eb880) at /home/poelzi/Projects/mixxx-export/src/library/export/trackexportworker.cpp:139
#7  0x0000000000b58103 in TrackExportDlg::updatePreview (this=0x7ffe934e41d0) at /home/poelzi/Projects/mixxx-export/src/library/export/trackexportdlg.cpp:222
#8  0x00007ffff55b8f7e in ?? () from /nix/store/nwgzcffcjscw62lrfbijkcjbbay6647i-qtbase-5.15.2/lib/libQt5Core.so.5
#9  0x00007ffff6fee092 in QLineEdit::textChanged(QString const&) () from /nix/store/nwgzcffcjscw62lrfbijkcjbbay6647i-qtbase-5.15.2/lib/libQt5Widgets.so.5
#10 0x00007ffff6ff485b in ?? () from /nix/store/nwgzcffcjscw62lrfbijkcjbbay6647i-qtbase-5.15.2/lib/libQt5Widgets.so.5
#11 0x00007ffff55b8fb0 in ?? () from /nix/store/nwgzcffcjscw62lrfbijkcjbbay6647i-qtbase-5.15.2/lib/libQt5Core.so.5
@poelzi
Copy link
Author

poelzi commented Feb 18, 2021

I now understand that this is only triggered when smartTrimEnabled is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant