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
Assertion [cpMax <= pdoc->Length()] failed at ../src/Editor.cpp 6096 #2611
Comments
|
Thanks for the bug report @manisandro. 😄 |
|
@manisandro As a note, that Bugzilla report isn't public. Going to that url gives: ... even when logged in using a (non-Red-Hat) Bugzilla account. |
|
Indeed, I've made it public |
|
Thanks @manisandro. 😄 |
|
This seems to be the problem:
It should be around 158 instead of -10704. Unfortunately I can't reproduce this here. @manisandro Could you assist us by building a custom build with extra debug information? Hopefully that would provide us with enough information to fix this issue properly. If that's not feasible, I think we can work around this issue to some extent but it might break the query logger then. |
|
I'm happy to assist by build custom builds, just let me know what you need. |
|
Same here. # https://github.com/sqlitebrowser/sqlitebrowser/releases
SQLITEBROWSER_VERSION=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/sqlitebrowser/sqlitebrowser/releases/latest | sed -E 's!.+/tag/!!'`
wget -O sqlitebrowser-latest.zip https://github.com/sqlitebrowser/sqlitebrowser/archive/${SQLITEBROWSER_VERSION}.zip
unzip sqlitebrowser-latest.zip
rm sqlitebrowser-latest.zip
mv sqlitebrowser* sqlitebrowser-latest
cd sqlitebrowser-latest
perl -pe "s|endif\(EXTRAPATH\)|endif(EXTRAPATH)
# add extra library path for custom sqlite build on Linux:
set(EXTRAPATH MATCHES \"Linux\")
if(EXTRAPATH)
find_library(LIBSQLITE \\\${LIBSQLITE_NAME} HINTS `echo ${PWD} | sed -e 's!sqlitebrowser-latest!build!'`/.libs)
set(ADDITIONAL_INCLUDE_PATHS `echo ${PWD} | sed -e 's!sqlitebrowser-latest!build!'`)
endif(EXTRAPATH)
|" -i CMakeLists.txt
mkdir build
cd build
# cmake -DFORCE_INTERNAL_QSCINTILLA=ON -Dsqlcipher=0 -Wno-dev ..
cmake -Dsqlcipher=0 -Wno-dev ..
make
cp sqlitebrowser ../../build/
cd -
cd .. |
|
This is fixed with 367665e EDIT: https://github.com/sqlitebrowser/sqlitebrowser/blob/v3.12.x/src/MainWindow.cpp#L1221 |
|
We're probably overdue to making a 3.13.0 release anyway. 😉 |
👍 But let's try to get rid of qmake before, so distributors are forced to use cmake just like we do. I guess most of them already are but I'd like to avoid getting bug reports on qmake after removing it 😄 |
|
Is there a workaround for this issue until the 3.13.0 release? On Ubuntu 20.10. This happens about every 60 seconds while using the application. It used to be stable though. Is there a known earlier version I can downgrade to? |
|
Works in Kubuntu 20.04 with the latest continuous build: wget -O sqlitebrowser-continuous.zip https://github.com/sqlitebrowser/sqlitebrowser/archive/refs/tags/continuous.zip
unzip sqlitebrowser-continuous.zip
rm sqlitebrowser-continuous.zip
mv sqlitebrowser* sqlitebrowser-continuous
cd sqlitebrowser-continuous
mkdir build
cd build
cmake -Dsqlcipher=0 -Wno-dev ..
make
./sqlitebrowser &
cd -
cd .. |
Reported downstream at https://bugzilla.redhat.com/show_bug.cgi?id=1919573, reproduced with
sqlitebrowser-3.12.1-2.fc34.x86_64andqscintilla-qt5-2.11.5-2.fc34.x86_64:Open 2020k_demot.db:
2020k_demot.db.zip
Execute this query:
Execute this query (same as in the step 2. except for the the missing semicolon):
Results in
Stacktrace:
The text was updated successfully, but these errors were encountered: