Skip to content

PHP randomly crashes on filling TreeView #169

@Nijhuis

Description

@Nijhuis

When trying to filling a TreeView with code below, CLI just randomly crashes somtimes, while other times it will execute the code as intended.

 function Treeview_Fill($object, $columns = array(), $data = array(), $failer = false) {
     var_dump($object);
     echo "a";
     $column1 = new GtkTreeViewColumn("Name", new GtkCellRendererText(), "text", 0);
     echo "b";
     $object->append_column($column1);
     echo "c";
     $model = new GtkListStore(GObject::TYPE_STRING);
     echo "d";
     $object->set_model($model);
     echo "e";
 
     return true;
 }

Sometimes the code gets to b, sometimes to c, sometimes to d. There is no logic behind this and no errors to debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions