Bug #37393 | Generate Schema Diff Report Crash | ||
---|---|---|---|
Submitted: | 13 Jun 2008 11:53 | Modified: | 10 Jul 2008 16:58 |
Reporter: | Pablo Ros | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 5.0.22 SE Revision: 3118 | OS: | Windows (Windows XP Professional) |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
Tags: | Generate Schema Diff Report, MySQL Workbench |
[13 Jun 2008 11:53]
Pablo Ros
[13 Jun 2008 13:58]
MySQL Verification Team
Thank you for the bug report. Could you please specified what modification you did in the tables (I did some changes, added/modified comments and not luck to repeat). Thanks in advance.
[13 Jun 2008 14:20]
Johannes Taxacher
maybe you could upload your MWB file for us to repeat. thx in advance
[16 Jun 2008 11:13]
Pablo Ros
MWD used to repeat the bug
Attachment: bug_37393.mwb (application/octet-stream, text), 5.92 KiB.
[16 Jun 2008 11:15]
Pablo Ros
Hello, Thanks for your quick answers. I have attached the mwb in the bug database. http://bugs.mysql.com/file.php?id=9502 If you try to execute the “generate schema diff report” , it fails. But if you delete the extra table the report builds correctly. I 'm attaching again the database schema: CREATE DATABASE `bbdd` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `bbdd`; CREATE TABLE `age` ( `id_age` tinyint(1) unsigned NOT NULL COMMENT 'Age ID.', `description` varchar(100) default NULL COMMENT 'Description age', PRIMARY KEY (`id_age`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Descriptions of age'; USE `bbdd`; CREATE TABLE `best_today` ( `id_section` smallint(5) unsigned NOT NULL default '0', `id_file` int(11) unsigned NOT NULL default '0', `mobile` bigint(32) unsigned NOT NULL default '0', PRIMARY KEY (`id_section`,`mobile`), UNIQUE KEY `id_section` (`mobile`,`id_section`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; USE `bbdd`; CREATE TABLE `brand` ( `id_brand` int(11) unsigned NOT NULL auto_increment, `name` varchar(100) NOT NULL default '', PRIMARY KEY (`id_brand`) ) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=latin1; USE `bbdd`; CREATE TABLE `desc_desc` ( `id_desc1` int(11) unsigned default '0', `id_desc2` int(11) unsigned default '0', KEY `id_desc1` (`id_desc1`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; USE `bbdd`; CREATE TABLE `extra` ( `id_file` int(11) unsigned NOT NULL default '0', `note` text, `requirement_min_extra` text, `requirement_rec_extra` text, `limitation` text, `improvement` text, `internal` text, KEY `id_file` (`id_file`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Thanks again! Kind regards!
[16 Jun 2008 14:56]
MySQL Verification Team
Thank you for the feedback. Consulte o final desta mensagem para obter detalhes sobre como chamar a depuração just-in-time (JIT) em vez desta caixa de diálogo. ************** Texto de Exceção ************** System.AccessViolationException: Tentativa de leitura ou gravação em memória protegida. Normalmente, isso é uma indicação de que outra memória está danificada. em DbMySQLDiffReporting.generate_report(DbMySQLDiffReporting* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , MYX_GRT_VALUE* , MYX_GRT_VALUE* ) em MySQL.GUI.Workbench.Plugins.DbMySQL.DbMySQLDiffReporting.generate_report(String left_file, String right_file, GrtValue left_cat, GrtValue right_cat) em MySQL.GUI.Workbench.Plugins.DbMySQL.DiffReportingWizardPages.InitGeneratedScriptPage() em MySQL.GUI.Workbench.Plugins.WizardPlugin.InitializeActivePage() em MySQL.GUI.Workbench.Plugins.WizardPlugin.UpdateAfterPageProcessing(String errMsg) em MySQL.GUI.Workbench.Plugins.WizardPlugin.RestoreControlsState(String errMsg) em MySQL.GUI.Workbench.Plugins.WizardPlugin.GoToNextPage() em MySQL.GUI.Workbench.Plugins.WizardPlugin.btnNext_Click(Object sender, EventArgs e) em System.Windows.Forms.Control.OnClick(EventArgs e) em System.Windows.Forms.Button.OnClick(EventArgs e) em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) <cut>
[23 Jun 2008 21:04]
Johannes Taxacher
the crash was invoked by improper handling of an invalid FK in table `extra`. while this issue is correctly reported by a validation module in SE edition schema diff report didn't handle that correctly. this issue is fixed for 5.0.23
[27 Jun 2008 6:27]
Jonathan Adami
liar (just kidding ;)) Actually, I had exactly the same problem with the 5.0.22, I upgraded to the 5.0.23 and still the same problem ... Diff bring me a JIT Error with a wrong access to memory ! I added a lot of foreign keys, modified some tables structures, deleted some tables .... In a 188 tables schema that I can't send you because it's a private database structure. Hope it'll be fixed one day because for us MWB is a very usefull tool ! Thank you !
[10 Jul 2008 16:58]
Tony Bedford
An entry was added to the 5.023 changelog: Using Generate Schema Diff Report resulted in a crash. The crash was caused by improper handling of an invalid FK in a table. While this issue is correctly reported by a validation module, in Standard Edition Generate Schema Diff Report didn't handle that correctly.