Created attachment 201385 [details] File to reproduce the crash Open attached file. Click on cell D2. Then click into the input line and edit the formula so that you exchange 9 with 5. Finish editing by clicking on the OK-icon. => crash I see the assertion in my debug build Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 23621ef302bf2e6a4dfae827ce83f31be2cd6056 CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: en-US Calc: threaded
Created attachment 201386 [details] Errormessage and Call Stack of VS 2022
I did not reproduce it on Mac: Version: 25.2.4.3 (AARCH64) / LibreOffice Community Build ID: 33e196637044ead23f5c3226cde09b47731f7e27 CPU threads: 10; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
I cannot confirm with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 09a1a5b8c8331437f88230f169bbb36cb83ed922 CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded
Hello Regina Henschel, I cannot confirm that the bug is present in master. Version: 25.2.2.2 (X86_64) / LibreOffice Community Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (en_FI); UI: en-US Calc: threaded
Tried to replicate with the following environment: Version: 25.2.4.3 (X86_64) Build: 33e196637044ead23f5c3226c Environment: CPU Threads: 8 OS Windows 7 Service Pack 1 X86_64 (6.1 build 7601) User Interface: UI render: Skia/Raster; VCL:win Locale: en-US (en_US); UI: en-US Misc: Calc:threaded Could not replicate. Exchanged the 9 for a 5 in three different places as follows: 1. directly in the input line 2. by selecting the Function button to open the function dialog and then made the change in the Result vector field and pressing OK button 3. by selecting the Function button to open the function dialog and then made the change in the Formula field and pressing OK button In no case did the change result in a crash.
Do you have used a debug build for testing? The problem is, that commit e1972743d692c8d8611912c31aae2cb08ae7636d has exchanged the OSL_ENSURE in ImpEditEngine::PaMtoEditCursor() with an assert(). And assert() crashes in a debug build, but not an OSL_ENSURE. The modern equivalent to an OSL_ENSURE would be a SAL_WARN_IF. If I disable the assert(), I can work with the input line in Calc without problems. There might be other places, where IsUpdateLayout() may not be false, but not for the Calc input line. Unfortunately, I do not find, where UpdateLayout is set to false in this case.
Fixed with https://git.libreoffice.org/core/commit/f6c809b021312dbda2964aa98beebb872bdbd81a in bug 168674 *** This bug has been marked as a duplicate of bug 168674 ***