Bug #11618 Query Browser fails to open
Submitted: 28 Jun 2005 18:13 Modified: 29 Jun 2005 15:42
Reporter: Nuno Pereira Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.1.12 and 1.1.6 OS:Linux (Linux 2.6.11-1.27_FC3)
Assigned to: CPU Architecture:Any

[28 Jun 2005 18:13] Nuno Pereira
Description:
I tried to start the MQB, typed the login, password, etc and it failed to start, showing no error. When I type the worng password or there is no connection, it continues to report that error.
I went to the terminal, and received the following error:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
/home/<my_login>/opt/mysql-query-browser/bin/mysql-query-browser: line 20: 12587 Aborted                 $PRG-bin

First I was using the version 1.1.6, and the same error appears, with some differences after "line ".
This error message is for version 1.1.12 (downloaded a few minutes ago).

How to repeat:
1. Start MySQL Query Browser 1.1.12.
2. Type correct values for login, password, etc .
3. Press the "Connect" button.

Suggested fix:
Found the same error in another context: http://www.talkaboutprogramming.com/group/comp.lang.c++/messages/810685.html
Maybe it can help.
[28 Jun 2005 18:29] MySQL Verification Team
I was unable to repeat that issue on Slackware 10.1 and QB 1.1.12.
Looks like the bug below already closed:

http://bugs.mysql.com/bug.php?id=11101
[29 Jun 2005 13:39] Nuno Pereira
I can add that I have been working, on the same machine with the version 1.1.6 for about 2 and half months with no problems, but yesterday, when I submitted the bug was the first day that this happened, and it continues to not start/to crash, but MySQL Administrator has no problems.

Miguel, about that bug, it is different from mine, the error and the causes to the crash are different, and in relation to you don't be able to repeat the issue, as I said above, it just started happening today.

I can also add what version of mySQL am I running:

$ mysql --version
mysql  Ver 14.7 Distrib 4.1.10a, for pc-linux-gnu (i686)

Both MySQL QB and MySQL Admin were installed from tar.gz packages from the mysql.com site, and MySQL Server is installed from the RPM package MySQL-client-4.1.10a-0 also available in the mysql.com site.

Hope that MySQL QB starts running again, bacause I need it.
[29 Jun 2005 15:42] Jorge del Conde
I was unable to reproudce this bug using FC 4.

I tried 1.1.12
[1 Jul 2005 14:43] Nuno Pereira
I can start it, if I change the user (to root).

I also suggest to check the code in order to make some tests to the parameters, maybe some function does not like the parameters provided to it.
[4 Jul 2005 14:28] Nuno Pereira
MySQL QB finally starts as a normal user.
I've just deleted the .mysqlgui directory and now it starts.

The bug can be closed, but I steel want to know why this happened.
[15 Jul 2007 17:25] Jonathan Mason
I encountered the same problem with Ubuntu Feisty using the packaged 1.2.5beta.

I think I have traced the bug tracked down exactly what causes the crash, it occurs with specific input in the .mysqlgui/query-browser/history.xml file. If a <history_entry> tag has a <sql> child which is empty it crashes. I'm not exactly sure how I got an empty sql query into the history though. 

If this doesn't help with replicating the bug let me know and I will upload my history.xml (I'd rather not if it isn't necessary though).