Issue 18364 - Paste after undo causes crash
Summary: Paste after undo causes crash
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@sc
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2003-08-18 18:58 UTC by Joe Smith
Modified: 2013-08-07 15:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Output from GUI crash report. (31.27 KB, text/plain)
2003-08-19 01:37 UTC, dcarrera
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2003-08-18 18:58:43 UTC
1. Calc/New Spreadsheet
2. Paste text from primary selection (mouse button 2) directly into any cell.
3. Undo (Ctrl-Z).  This will remove the pasted text but the cell itself will be
highlighted.
4. Paste text into entry box in toolbar area.
5. Crash with report.

This catches me quite often because the paste-primary operation now supports
rich-text from the source.  This is almost never what I want: I almost always
want the plain unformatted text.  If I paste into the edit box, I get plain
text.  So, I forget and paste directly into a cell, then undo and paste into the
edit box.  Poof!
Comment 1 richard.holt 2003-08-19 01:28:11 UTC
I confirm the crash on Mandrake 9.1 w/ OOo11rc3 from Stable.  
As indicated below.   
  
One difference: After the Ctrl-Z I pasted the text (an URL) into the entry box  
via Ctrl-V, which worked fine but actually copied into both the cell and the  
entry box. Ctrl-Z to undo and then used middle mouse button when it locked  
up and presented the new Error Reporter.   
  
Good luck. 
Richard. 
 
Comment 2 dcarrera 2003-08-19 01:36:52 UTC
I have reproduced on Solaris 2.8 (SPARC) OOo 1.1RC3.
I will upload the output of the GUI crash logger as an attachment.
Comment 3 dcarrera 2003-08-19 01:37:49 UTC
Created attachment 8558 [details]
Output from GUI crash report.
Comment 4 tamblyne 2003-08-19 01:44:43 UTC
Confirming crash per Daniel and Richard
Comment 5 Joost Andrae 2003-08-19 09:33:18 UTC
JA->MT: looks like your code... error report ID 14383

0 	0xfefa5eb0 	0x25eb0 	libsal.so.3.1.0 
osl_releaseVolumeDeviceHandle+0xb50 	<procpath>
1 	0xfefa6704 	0x26704 	libsal.so.3.1.0 
osl_releaseVolumeDeviceHandle+0x13a4 	<procpath>
2 	0xff3660a0 	0x160a0 	libthread.so.1 	_setitimer+0xfc 	/usr/lib/
3 	0xff35fdd8 	0xfdd8 	libthread.so.1 	_sema_post+0x4f4 	/usr/lib/
4 	0xff35ff88 	0xff88 	libthread.so.1 	_sema_post+0x6a4 	/usr/lib/
5 	0xf9cf187c 	0x4f187c 	libsvx645ss.so 
__1cNImpEditEngineNImpInsertText6MnNEditSelection_rknGString__nHEditPaM__+0x144
	<procpath>
6 	0xf9ce76bc 	0x4e76bc 	libsvx645ss.so 
__1cLImpEditViewFPaste6MrnDcomDsunEstarDunoJReference4n0DMdatatransferJclipboardKXClipboard___C_v_+0x314
	<procpath>
7 	0xf9ce6710 	0x4e6710 	libsvx645ss.so 
__1cLImpEditViewNMouseButtonUp6MrknKMouseEvent__C_+0xd8 	<procpath>
8 	0xf9cd7db8 	0x4d7db8 	libsvx645ss.so 
__1cIEditViewNMouseButtonUp6MrknKMouseEvent__C_+0x8 	<procpath>
9 	0xf8922818 	0x122818 	libsc645ss.so 	SC_1_0+0x122818 	<procpath>
10 	0xfee09e28 	0x209e28 	libvcl645ss.so 
__1cUImplHandleMouseEvent6FpnGWindow_HCllLHH_l_+0xe44 	<procpath>
11 	0xfee0c748 	0x20c748 	libvcl645ss.so 
__1cTImplWindowFrameProc6FpvpnISalFrame_Hpkv_l_+0x188 	<procpath>
12 	0xfee60d1c 	0x260d1c 	libvcl645ss.so 
__1cMSalFrameDataQHandleMouseEvent6MpnH_XEvent__l_+0x5ac 	<procpath>
13 	0xfee62e44 	0x262e44 	libvcl645ss.so 
__1cMSalFrameDataIDispatch6MpnH_XEvent__l_+0x224 	<procpath>
14 	0xfee8eb8c 	0x28eb8c 	libvcl645ss.so 
__1cKSalDisplayIDispatch6MpnH_XEvent__l_+0x31c 	<procpath>
15 	0xfee8e84c 	0x28e84c 	libvcl645ss.so 
__1cKSalDisplayFYield6MC_v_+0xc8 	<procpath>
16 	0xfee89bc4 	0x289bc4 	libvcl645ss.so 
__1cKSalDisplay2T5B6M_v_+0x43c 	<procpath>
17 	0xfee88708 	0x288708 	libvcl645ss.so 
__1cHSalXLibFYield6MC_v_+0xdc 	<procpath>
18 	0xfee91f58 	0x291f58 	libvcl645ss.so 
__1cLSalInstanceFYield6MC_v_+0x34 	<procpath>
19 	0xfece63cc 	0xe63cc 	libvcl645ss.so 
__1cLApplicationFYield6F_v_+0x7c 	<procpath>
20 	0xfece629c 	0xe629c 	libvcl645ss.so 
__1cLApplicationHExecute6F_v_+0x40 	<procpath>
21 	0x2aa5c 	0x1aa5c 	soffice.bin 
__1cHdesktopHDesktopEMain6M_v_+0x16e4 	<procpath>
22 	0xfecebad0 	0xebad0 	libvcl645ss.so 	__1cGSVMain6F_C_+0x5c 	<procpath>
23 	0x4e3e8 	0x3e3e8 	soffice.bin 	main+0x30 	<procpath>
24 	0x24e80 	0x14e80 	soffice.bin 	_start+0x108 	<procpath>
Comment 6 malte_timmermann 2003-08-19 09:54:59 UTC
MT->NN: You are killing me :(

	svx645mi.dll!ImpEditView::~ImpEditView()
 	svx645mi.dll!EditView::~EditView()
 	svx645mi.dll!EditView::`scalar deleting destructor'()
 	sc645mi.dll!ScTextWnd::StopEditEngine()
 	sc645mi.dll!ScInputHandler::EnterHandler()
 	sc645mi.dll!ScTabView::UpdateInputLine()
 	sc645mi.dll!ScViewFunc::CopyToClip()
 	sc645mi.dll!ScSelectionTransferObj::CreateCellData()
 	sc645mi.dll!ScSelectionTransferObj::GetData()
 	svt645mi.dll!TransferableHelper::getTransferData()
 	svx645mi.dll!ImpEditView::Paste(...)
 	svx645mi.dll!ImpEditView::MouseButtonUp(const MouseEvent & 
rMouseEvent={...})
 	svx645mi.dll!EditView::MouseButtonUp(const MouseEvent & 
rMouseEvent={...})
 	sc645mi.dll!ScTextWnd::MouseButtonUp()
 	vcl645mi.dll!ImplHandleMouseEvent()
Comment 7 malte_timmermann 2003-08-19 10:40:42 UTC
MT->NN: Also on Windows, just configure the middle mouse button to 
paste.
Comment 8 malte_timmermann 2003-08-29 06:45:44 UTC
Also happens without undo...
Comment 9 niklas.nebel 2003-09-11 17:27:51 UTC
accepting.
Comment 10 niklas.nebel 2003-10-09 17:34:54 UTC
Fixed in CWS calc19.
Changed files:
viewfunc.hxx 1.16.266.1
viewfun3.cxx 1.22.266.1
seltrans.cxx 1.6.156.1
Comment 11 niklas.nebel 2003-10-20 09:27:53 UTC
Reassigning to QA for verification.
Comment 12 frank 2003-10-23 12:17:07 UTC
set to resolved fixed
Comment 13 frank 2003-10-23 12:38:43 UTC
No crash anymore so found fixed on Solaris, Linux and Windows.
Comment 14 frank 2003-11-05 09:43:14 UTC
FST: As requested by TZ and AK back to you
Comment 15 niklas.nebel 2003-11-05 11:10:27 UTC
It's already in a right childworkspace, so nothing to do for dev.
Comment 16 frank 2003-11-05 14:28:31 UTC
restoring fixed state
Comment 17 frank 2003-11-05 14:45:13 UTC
verified in internal 645m21-3 on Solaris, Windows and Linux
Comment 18 frank 2004-01-19 15:27:27 UTC
found fixed on srx645m25s1-1 using Linux, Windows and Solaris

Frank