Bug 76616 - xslt button crashes on untitled page
Summary: xslt button crashes on untitled page
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 04:52 UTC by morgajel
Modified: 2004-04-06 17:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description morgajel 2004-03-03 04:52:24 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) 
OS:          Linux

noticed this on quanta 3.2 for gentoo.
just downloaded and installed the cvs version (quanta_be) and found the same issue.

steps to reproduce:
1. open quanta
2. click xslt button
3. stare in confusion at empty screen
4. enjoy tasty backtrace

I'm not real sure what the xslt button is supposed to do (that's why I clicked on it), but I'm pretty sure it's not meant as a quick escape button:)  I tried hitting it while other random files were open (config.h and Makefile.cvs), and the same thing happens.  Hope this helps,

oh, backtrace is below.

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 2487)]
0x419e1a88 in waitpid () from /lib/libpthread.so.0
#0  0x419e1a88 in waitpid () from /lib/libpthread.so.0
#1  0x40fcaff4 in ?? () from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x40f06f11 in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#3  0x419e0745 in __pthread_sighandler () from /lib/libpthread.so.0
#4  <signal handler called>
#5  0x41eddc90 in QXsldbgView::qt_static_property(QObject*, int, int, QVariant*) () from /usr/lib/kde3/libkxsldbgpart.so.1
#6  0x41ef6db5 in non-virtual thunk to XsldbgBreakpoints::~XsldbgBreakpoints()
    () from /usr/lib/kde3/libkxsldbgpart.so.1
#7  0x40014d00 in ?? () from /lib/ld-linux.so.2
#8  0x085af328 in ?? ()
#9  0xbfffdf28 in ?? ()
#10 0x41ec78a1 in _init () from /usr/lib/kde3/libkxsldbgpart.so.1
Comment 1 András Manţia 2004-03-12 16:44:06 UTC
Can you update again from CVS? I cannot reproduce the bug.

Comment 2 András Manţia 2004-04-06 17:28:22 UTC
CVS commit by amantia: 

Don't crash when source/VPL buttons are pressed while a plugin is visible [#76616]
Backport: allow two plugins named differently, but using of the same part.

CCMAIL: 76616-done@bugs.kde.org


  M +12 -5     ChangeLog   1.205.2.29
  M +22 -21    quanta/quanta.cpp   1.414.2.17
  M +1 -0      quanta/plugins/quantaplugin.cpp   1.16.2.3


--- quanta/ChangeLog  #1.205.2.28:1.205.2.29
@@ -1,4 +1,11 @@
 This files contains the changes since Quanta 2.0 until the current 3.2.x version.
 
+Version 3.2.3 (Release data: xx-xx-2004; Started 06-04-2004):
+    - bugfixes:
+        - don't crash when source/VPL buttons are pressed while a plugin is visible [#76616]
+
+    - improvements:
+        - allow two plugins named differently, but using of the same part
+
 Version 3.2.2 (Release data: 12-04-2004; Started 01-03-2004):
     - bugfixes:
@@ -14,9 +21,9 @@
         - remove the < and > from the misc. tag
         - don't crash when parsing an included file.[#76478]
-        - don't break the opening tag when some new tag is pasted inside an existing one        
+        - don't break the opening tag when some new tag is pasted inside an existing one
         - don't insert the closing tag for a Tag action if it is not requested to do so.
-    
+
     - performance:
-        - parse the included files less often   
+        - parse the included files less often
 
 
@@ -24,9 +31,9 @@
     - bugfixes:
         - VPL:
-            - put messageBoxes for cut/copy/paste/undo/redo instead of disabling the actions (was confusing) 
+            - put messageBoxes for cut/copy/paste/undo/redo instead of disabling the actions (was confusing)
             - fix editing in the attribute editor of tags which contain special areas
         - increase timeout for network operations to 60s [#73173]
         - don't crash on upload if the current tab holds a plugin [#72912]
-        - don't try to copy the same file twice if it's dropped to the templates tree view        
+        - don't try to copy the same file twice if it's dropped to the templates tree view
         - fix crash when clicking on an item of the structure tree which point to an included file
         - always enable the Open and Open Project buttons

--- quanta/quanta/quanta.cpp  #1.414.2.16:1.414.2.17
@@ -1387,4 +1387,5 @@ void QuantaApp::slotShowPreviewWidget(bo
     m_previewVisible = false;
     m_noFramesPreview = false;
+    if (m_view->writeExists())
     m_view->write()->view()->setFocus();
   }

--- quanta/quanta/plugins/quantaplugin.cpp  #1.16.2.2:1.16.2.3
@@ -135,4 +135,5 @@ bool QuantaPlugin::load()
     return false;
   }
+  m_part->widget()->setName(m_name);
   return true;
 }