Apache OpenOffice (AOO) Bugzilla – Issue 17359
Crash on the text-style font selection.
Last modified: 2004-01-28 16:54:43 UTC
a. Choose to create my own text style based on default, "mydefault". b. Apply this style to me document. c. Go back to modify it, and attempt to choose a different font for CTL (Arabic). I kepp pressing the down arrow to see the various fonts. d. OO Crashes with a dialog box saying : "Main memory shortage. Please quit other applications or close some windows before continuing" e. Then I get another dialog saying : an unrecoverable error has occured. All mofified files have been saved and can probably be recovered at program restart. f. I get the following dump from OO [kefah@power4me ~]$ ./OpenOffice.org1.1rc1/soffice Application ErrorApplication Error Fatal exception: Signal 6 Stack: /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2e2a] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2fb4] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb307a] /lib/libpthread.so.0[0x4112fd0d] /lib/libc.so.6[0x412ea4f8] /lib/libpthread.so.0(raise+0x2b)[0x4112c90b] /lib/libc.so.6(gsignal+0x44)[0x412ea364] /lib/libc.so.6(abort+0x18b)[0x412eb89b] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so[0x402b78e5] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11Application5AbortERK6String+0x1f)[0x400e51bb] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop9ExceptionEt+0x4a)[0x8062f24] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN23ImplVCLExceptionHandler6signalEP13oslSignalInfo+0xb2)[0x400ea12a] /usr/local/OpenOffice.org1.1rc1/program/libvos3gcc3.so(_ZN3vos28_cpp_OSignalHandler_FunctionEPvP13oslSignalInfo+0x18)[0x40b1aa9e] /usr/local/OpenOffice.org1.1rc1/program/libvos3gcc3.so(_Z24_OSignalHandler_FunctionPvP13oslSignalInfo+0x26)[0x40b1aa7e] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2ed4] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb305b] /lib/libpthread.so.0[0x4112fd0d] /lib/libc.so.6[0x412ea4f8] /lib/libpthread.so.0(raise+0x2b)[0x4112c90b] /lib/libc.so.6(gsignal+0x44)[0x412ea364] /lib/libc.so.6(abort+0x18b)[0x412eb89b] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so[0x402b78e5] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11Application5AbortERK6String+0x1f)[0x400e51bb] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop9ExceptionEt+0x156)[0x8063030] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_Z18SfxNewHandler_Implv+0x60)[0x468b067a] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin[0x80845e0] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_Znaj+0x2f)[0x8084773] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN16GenericSalLayout14KashidaJustifyEli+0x9b)[0x401bda55] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN16ServerFontLayout12AdjustLayoutER14ImplLayoutArgs+0x95)[0x402d0217] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN14MultiSalLayout12AdjustLayoutER14ImplLayoutArgs+0x2b8)[0x401be5a4] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZNK12OutputDevice10ImplLayoutERK6StringttRK5PointlPKl+0x8a0)[0x4016ad8e] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN12OutputDevice15DrawStretchTextERK5PointmRK6Stringtt+0x150)[0x4016a4bc] /usr/local/OpenOffice.org1.1rc1/program/libsvx645li.so(_ZNK7SvxFont8DrawPrevEP12OutputDeviceP7PrinterRK5PointRK6Stringtt+0x1b3)[0x45d3a2cf] /usr/local/OpenOffice.org1.1rc1/program/libsvx645li.so(_ZN16FontPrevWin_Impl8DrawPrevEP12OutputDeviceP7PrinterR5PointR7SvxFont+0xce)[0x45e8e30a] /usr/local/OpenOffice.org1.1rc1/program/libsvx645li.so(_ZN17SvxFontPrevWindow5PaintERK9Rectangle+0xa4d)[0x45e8f92f] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x3d6)[0x40211950] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x49d)[0x40211a17] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x49d)[0x40211a17] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x49d)[0x40211a17] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window13ImplCallPaintEPK6Regiont+0x49d)[0x40211a17] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window20ImplCallOverlapPaintEv+0x6a)[0x40211b46] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window18ImplHandlePaintHdlEPv+0x2c)[0x40211bda] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Window26LinkStubImplHandlePaintHdlEPvS0_+0x26)[0x40211ba6] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN5Timer7TimeoutEv+0x1f)[0x400eaf6b] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_Z21ImplTimerCallbackProcv+0x82)[0x400eacba] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZNK7SalData7TimeoutEv+0x12)[0x402af29a] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN7SalXLib12CheckTimeoutEb+0xd6)[0x402aede6] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN7SalXLib5YieldEh+0x2e7)[0x402af0db] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11SalInstance5YieldEh+0x34)[0x402b7f70] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11Application5YieldEv+0x61)[0x400e53c9] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN6Dialog7ExecuteEv+0x1dc)[0x401d6666] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN12SfxTabDialog7ExecuteEv+0x42)[0x4688c45e] /usr/local/OpenOffice.org1.1rc1/program/libsw645li.so[0x480b9fc5] /usr/local/OpenOffice.org1.1rc1/program/libsw645li.so[0x480b9813] /usr/local/OpenOffice.org1.1rc1/program/libsw645li.so[0x480aace0] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN13SfxDispatcher9Call_ImplER8SfxShellRK7SfxSlotR10SfxRequesth+0x5a3)[0x467d65cb] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN13SfxDispatcher8_ExecuteER8SfxShellRK7SfxSlotR10SfxRequestt+0x18c)[0x467d78a4] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN13SfxDispatcher7ExecuteEttPPK11SfxPoolItemtS3_+0x28b)[0x467d8807] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN28SfxCommonTemplateDialog_Impl12Execute_ImplEtRK6StringS2_ttPtPKt+0x276)[0x46892f2e] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN28SfxCommonTemplateDialog_Impl7EditHdlEPv+0x111)[0x46893cd7] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN28SfxCommonTemplateDialog_Impl13MenuSelectHdlEP4Menu+0x92)[0x46894506] /usr/local/OpenOffice.org1.1rc1/program/libsfx645li.so(_ZN28SfxCommonTemplateDialog_Impl21LinkStubMenuSelectHdlEPvS0_+0x26)[0x4689446c] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so[0x402281a2] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_Z19ImplWindowFrameProcPvP8SalFrametPKv+0x437)[0x4022898d] Aborted g. Then I try to start OO again and instruct it to recover the error, no UI appears and I get the following dump : [kefah@power4me ~]$ ./OpenOffice.org1.1rc1/soffice Fatal exception: Signal 11 Stack: /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2e2a] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2fb4] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb307a] /lib/libpthread.so.0[0x4112fd0d] /lib/libc.so.6[0x412ea4f8] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop9ExceptionEt+0x7b)[0x8062f55] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN23ImplVCLExceptionHandler6signalEP13oslSignalInfo+0xb2)[0x400ea12a] /usr/local/OpenOffice.org1.1rc1/program/libvos3gcc3.so(_ZN3vos28_cpp_OSignalHandler_FunctionEPvP13oslSignalInfo+0x18)[0x40b1aa9e] /usr/local/OpenOffice.org1.1rc1/program/libvos3gcc3.so(_Z24_OSignalHandler_FunctionPvP13oslSignalInfo+0x26)[0x40b1aa7e] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb2ed4] /usr/local/OpenOffice.org1.1rc1/program/libsal.so.3[0x40bb305b] /lib/libpthread.so.0[0x4112fd0d] /lib/libc.so.6[0x412ea4f8] /usr/local/OpenOffice.org1.1rc1/program/libcppu.so.3(uno_type_any_assign+0x2f)[0x40b7db5b] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop11OpenClientsEv+0xa01)[0x8066735] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop16OpenClients_ImplEPv+0x11)[0x8065949] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop24LinkStubOpenClients_ImplEPvS1_+0x18)[0x8065934] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so[0x402281a2] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_Z19ImplWindowFrameProcPvP8SalFrametPKv+0x437)[0x4022898d] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN12SalFrameData19HandleClientMessageEP19XClientMessageEvent+0xb3)[0x4028866f] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN12SalFrameData8DispatchEP7_XEvent+0x4f2)[0x402890b8] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN10SalDisplay8DispatchEP7_XEvent+0x28f)[0x402b4919] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN10SalDisplay5YieldEh+0xf1)[0x402b4667] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so[0x402b0647] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN7SalXLib5YieldEh+0x39a)[0x402af18e] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11SalInstance5YieldEh+0x34)[0x402b7f70] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11Application5YieldEv+0x61)[0x400e53c9] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_ZN11Application7ExecuteEv+0x35)[0x400e52db] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN7desktop7Desktop4MainEv+0x1acc)[0x8064eac] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(_Z6SVMainv+0x49)[0x400ea197] /usr/local/OpenOffice.org1.1rc1/program/libvcl645li.so(main+0x1c)[0x402adb7c] /lib/libc.so.6(__libc_start_main+0xc7)[0x412d7917] /usr/local/OpenOffice.org1.1rc1/program/soffice.bin(_ZN6Window11RequestHelpERK9HelpEvent+0x3d)[0x805e311] Aborted h. I have no limits on memory or system resources : ulimit -aH and ulimit -aS gives me unlimited. I also still have plenty of memory space around 500 MB are still avaliable. I have arabic fonts downloaded from arabeyes.org. Got Redhat 9.0. I uninstalled OO 1.0.2 that comes with it. and installed OO RC1 in network mode / client mode.
Additional info: I have enabled CTL to support ARABIC (Saudi Arabia). The problem seems to happen exactly when I move from a font that supports arabic to a font that does not. I have tried several times, and it was confirmed. Do not hesitate to ask me any question. as the case is reproducable at any time. Thanks.
Raised priority to P3 since it's a crash bug. I'm confirming this even though I can't reproduce it because kefah's stack dump looks very believable; the OOo developer responsible for _ZN16GenericSalLayout14KashidaJustifyEli should probably have a look.
HI->US: Could not reproduce, please take over.
Hello "HI", There is one more detail that I might have missed: This bug only shows when the font viewer presents me with an arabic script from my document as a sample font. The sentece I tried was (Windows 1256 encoding ) بسم الله الرحمن الرحيم - Kefah
Created attachment 8097 [details] A screen shot of the font dialog just before the crash. Note the word (besm) in arabic in the font dialog sample for CTL.
Created attachment 8098 [details] Just at crash. Note that the word besm (in arabic) does not apear any more, and that the capture program had its traces on the crashed font dialog.
Simplified steps to reproduce: I was able to reproduce on my laptop in addition to desktop. The OORC1 Binaries where brought directly from openoffice.org. Step 0. Install arabic fonts from Arabeyes.com or find some Microsoft TTF that supports arabic, such as Tahoma.. Step 1. Open a new instance of OOrc1 Step 2. Tools->Options->Language Settings->Languages-> check the Complex text layout (CTL) support. and choose Arabic (Saudi Arabia) for the default CTL. then OK. Step 3. Open a new text document, type in or paste (bbcarabic.com is a good source) Arabic text. Step 4. Select the arabic text and double the Default Style from the Paragraph Styles window. Step 5. Right-click the Default style and select Modify. Choose the Fonts pan, you should see the arabic text from your document in the arabic script samples. Step 6. Try to select another from the CTL font section: if this font does not support arabic the dialog crashes.
I couldn't believe this. But it's true! Happens not only with OOo1.1rc2 but also with inhouse srx645_m15-1.8669. REPRODUCTION: 1. load any arabic .sxw document (note: CTL has to be enabled) 2. select something 3. Format/Character/CTL font: select a font that does not contain arabic glyphs (in other words force glyphfallback). => Error message appears. Crash. Promoted to P2 (crashes are always P2) and Target OOo 1.1.1 As this makes the verison almost unusable we may consider a respin, if we can not fix this for OOo 1.1 final any more.
I was able to reproduce the effect. Impact: Stretched text + Use of Kashidas + Glyph Fallback. The core problem is that the target width for stretched text has to be distributed to the different glyph fallback layers. This distribution is dependent on the unstretched widths of the fallback layouts. Now the problem is doing measurements on the fallback layouts before they are completed, and then the wrong metrics caused a crash the kashida step. The workaround is to fix the measurement step by gettinh fallback levels good enough to do the required measurements.
Fixed in CWS vcl7pp1r1.
HDU->US: Please verify in CWS vcl7pp1r1.
Verified in CWS vcl7pp1r1. Setting resolution to FIXED.
Setting issue to VERIFIED.
ok in (inhouse) master srx645_m27s1-1.8738. Closing resolved and verified issue.