Bug #56588 snippets, crash on right click
Submitted: 6 Sep 2010 10:55 Modified: 6 Jul 2011 18:49
Reporter: Markus Gschwendt Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.27, 5.2.28, 5.2.29, 5.2.30 OS:Linux (Ubuntu 10.04 64bit, 10.10 64bit)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: crash, right click, Snippet List

[6 Sep 2010 10:55] Markus Gschwendt
Description:
wb closes on right click into a snippet in the snippet list

How to repeat:
right click on a snippet
[6 Sep 2010 11:22] MySQL Verification Team
I couldn't repeat on Fedora 13 X86_64. I will test on Ubuntu.
[6 Sep 2010 12:00] Valeriy Kravchuk
I can not repeat on 32-bit Ubuntu 10.04
[6 Sep 2010 12:06] Markus Gschwendt
some additional info, output when run from the terminal:

** (mysql-workbench-bin:4260): WARNING **: Plugin 'wb.tools.quickTables' from module WbTools has invalid type ''
** Message: query.explain built-in command is being overwritten
The font "-*-Andale Mono-medium-r-*-*-*-100-*-*-*-*-iso10646-1,-*-*-medium-r-*-*-*-100-*-*-*-*-iso8859-*" does not support all the required character sets for the current locale "de_AT.utf8"
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-1")
  (Missing character set "ISO8859-2")
  (Missing character set "ISO8859-3")
  (Missing character set "ISO8859-4")
  (Missing character set "ISO8859-5")
  (Missing character set "KOI8-R")
  (Missing character set "ISO8859-7")
  (Missing character set "ISO8859-9")
  (Missing character set "ISO8859-13")
  (Missing character set "ISO8859-14")
  (Missing character set "ISO8859-15")
  (Missing character set "JISX0208.1983-0")
  (Missing character set "KSC5601.1987-0")
  (Missing character set "GB2312.1980-0")
  (Missing character set "JISX0201.1976-0")
  (Missing character set "ISO10646-1")
mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.
Aborted
[6 Sep 2010 14:07] MySQL Verification Team
I couldn't repeat on my Ubuntu 10.04 X86_64 box too. Maybe specific steps (environment) are needed.
[6 Sep 2010 16:12] Markus Gschwendt
i have this problem on 2 different machines, both running Ubuntu 10.04 64bit:
PC, AMD, Quad Core
Laptop, Intel Dual Core

i remember, i had that on a previous version (5.2.26) too.

what kind of information would you need?
@miguel: which specific steps?
[20 Sep 2010 16:22] Alfredo Kojima
Please check if you can repeat with Workbench 5.2.28
[20 Sep 2010 17:51] Markus Gschwendt
the issue is still in 5.2.28.
the last famous words...:

mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.
Aborted
[28 Oct 2010 23:04] Alfredo Kojima
Can you attach a screenshot from right before you right click on a snippet to cause the crash? With some marker indicating where you right-click.
[28 Oct 2010 23:07] Alfredo Kojima
I was able to get the crash when clicking into an empty area of the snippets list.
[28 Oct 2010 23:56] Alfredo Kojima
Actually, I didn't click on the snippets list, it was on the snippet text area.
Markus: Please attach the screenshot anyway, in case it's a different bug.
[29 Oct 2010 17:28] Markus Gschwendt
sorry, with 'list' i did mean the list where the sql-text is listed.
you are right. it's the sql-text where i have the crash on right-clicking.
[23 Nov 2010 10:25] Johannes Taxacher
fix confirmed in repository
[23 Nov 2010 17:07] Markus Gschwendt
still here in wb 5.2.29 and 5.2.30
on ubuntu 64 bit 10.04 and 10.10
[25 Nov 2010 15:16] Tony Bedford
An entry has been added to the 5.2.31 changelog:

MySQL Workbench crashed when a snippet in the snippet list was right-clicked.
[9 Dec 2010 23:53] Markus Gschwendt
why was this bug closed?

i can not confirm that it works on wb 5.2.31
because wb crashes already on clicking the snippet-tab in wb 5.2.31:

mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.
Aborted
[17 Dec 2010 18:04] Ah Hong Leong
I am facing the same problem with WB 5.2.31 on Archlinux.

Steps:
1. Launch WB.
2. Double click on a saved connection (localhost via pipe, root account).
3. Key in password (I did not save password in keyring)
4. Left-click on the "Snippets" tab.

Observation:
* The application terminates with the following error message:

** Message: query.explain built-in command is being overwritten
mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr<T>::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.

All output, when WB is launched from console:
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit

** (mysql-workbench-bin:5279): WARNING **: :30: link '4527b106-09e1-11e0-bd77-0013024e442d' <object GrtObject> key=owner could not be resolved
Ready.

** Message: query.explain built-in command is being overwritten
mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr<T>::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.
[17 Dec 2010 19:48] Alfredo Kojima
Please try with 5.2.31a
[6 Jun 2011 18:49] Armando Lopez Valencia
Hello Markus.
The new WB version 5.2.34 is out (http://dev.mysql.com/downloads/workbench/5.2.html).
Can you please try with this new version and let us know the outcome?
Thanks.
[6 Jul 2011 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".