bugPSPP - Bugs: bug #48050, GUI: dataset declare / dataset...

 
 

bug #48050: GUI: dataset declare / dataset activate produces wrong data view in gui / crashes gui

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Sun 29 May 2016 10:10:16 PM UTC
   
 
Category:  Graphical User Interface Severity:  3 - Ordinary
Status:  None Assigned to:  None
Open/Closed:  Open Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 04 Jul 2020 09:23:37 AM UTC, comment #1: 

I pushed a change which will avoid this problem leading to a crash.

I suspect there is still an underlying problem somewhere, but it'll not cause users too much frustration now.

John Darrington <jmd>
Group administrator
Sun 29 May 2016 10:10:16 PM UTC, original submission:  

With the following code, the dataview windows of datasets frauen, maenner and alle are corrupted. The produced save file "alle.sav" is correct. The code also work in non-gui pspp.

I think the window focussing which changes the active dataset somehow interferes with the activation and creation in the syntax file.


dataset display.
dataset declare maenner.
dataset display.
dataset activate maenner.
dataset display.

input program.
string sex (A4).
loop #i = 1 to 1000.
 compute weight  = rv.normal (56, 3).
 end case.
end loop.
end file.
end input program.
compute sex = "male".

dataset display.

dataset declare frauen.
dataset display.
dataset activate frauen.
dataset display.

input program.
string sex (A4).
loop #i = 1 to 1000.
 compute weight  = rv.normal (60, 3).
 end case.
end loop.
end file.
end input program.
compute sex = "fem".

dataset declare alle
dataset activate alle
add files file = maenner
  /file=frauen.

save outfile = alle.sav.


Opening psppire, executing this code twice by pushing "Execute all" in the syntax window without changing focus to another window, crashes psppire with the following message:

Assertion failed: (start + n <= ds->n_columns), function datasheet_delete_columns, file ../pspp/src/data/datasheet.c, line 388.
Abort trap: 6
FriedrichsMacBook:build fritz$


Tested on MacOS.

Friedrich Beckmann <beckmanf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by beckmanf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-04 jmd Severity5 - Average 3 - Ordinary

    Back to the top

    Powered by Savane 3.13-081f.
    Corresponding source code