Crashes to compare some PHP code patterns

Bug #830520 reported by Diego Souza
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
meld (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

On comparing some simple PHP files, the program crashes. The same problem happens when I compare some other PHP files with similar code. These are the files index.php:

=== first file content below ===
<?php get_header(); ?>

<?php $show_sidebar = (get_option('thestyle_sidebar') == 'on') ? true : false; ?>

<?php get_template_part('includes/breadcrumbs'); ?>

<div id="content" class="clearfix<?php if ($show_sidebar && get_option('thestyle_blog_style') == 'false') echo(' sidebar-fixedwidth'); ?>">

 <div id="boxes" class="<?php if (!$show_sidebar) echo('fullwidth'); if (get_option('thestyle_blog_style') == 'on') echo(' blogstyle-entries'); ?>">

 <?php get_template_part('includes/entry'); ?>

 <div id="content-bottom-bg"></div>

<?php get_footer(); ?>
=== end of the first file content ===

=== second file content below ===
<?php if (is_archive()) $post_number = get_option('thestyle_archivenum_posts');

if (is_search()) $post_number = get_option('thestyle_searchnum_posts');

if (is_tag()) $post_number = get_option('thestyle_tagnum_posts');

if (is_category()) $post_number = get_option('thestyle_catnum_posts'); ?>

<?php get_header(); ?>

<?php $show_sidebar = (get_option('thestyle_sidebar') == 'on') ? true : false; ?>

<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>

<div id="content" class="clearfix<?php if ($show_sidebar && get_option('thestyle_blog_style') == 'false') echo(' sidebar-fixedwidth'); ?>">

 <div id="boxes" class="<?php if (!$show_sidebar) echo('fullwidth'); if (get_option('thestyle_blog_style') == 'on') echo(' blogstyle-entries'); ?>">

  <?php global $query_string;

  if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat");

  else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>

  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

   <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>

   <?php $i++; ?>

  <?php endwhile; ?>

    </div> <!-- #boxes -->

    <?php if ($show_sidebar) get_sidebar(); ?>

   </div> <!-- #content -->

   <div id="controllers" class="clearfix">

    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }

    include(TEMPLATEPATH . '/includes/navigation.php'); ?>

   </div> <!-- #controllers -->

  <?php else : ?>

     <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>

    </div> <!-- #boxes -->

   </div> <!-- #content -->

  <?php endif; wp_reset_query(); ?>

 <div id="content-bottom-bg"></div>

<?php get_footer(); ?>
=== end of the second file content ===

Description: Ubuntu 11.04
Release: 11.04

Meld Version: 1.5.0-0ubuntu1

Revision history for this message
Julian Taylor (jtaylor) wrote :

I can't reproduce the crash.
Can you please attach the files in their original form to the bug instead of pasting them?
Please start meld from a terminal and paste the traceback you get on the crash.

Changed in meld (Ubuntu):
status: New → Incomplete
Revision history for this message
Diego Souza (diegosouza-br-deactivatedaccount) wrote :

Traceback from terminal:

/usr/lib/meld/meld/meldapp.py:495: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
  self.notebook.append_page( page.widget, nbl)

The files i used now are attached.

Revision history for this message
Julian Taylor (jtaylor) wrote :

thanks for the files, I could now reproduce it.
It is another duplicate of bug 774265

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.