Bug 157448 - Kst unexpectedly terminated after accessing property: valid in Plugin class.
Summary: Kst unexpectedly terminated after accessing property: valid in Plugin class.
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 19:39 UTC by Yiwen Mao
Modified: 2008-02-08 20:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
the source file for getting the vector v in problem desciption above (242 bytes, text/plain)
2008-02-08 19:42 UTC, Yiwen Mao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yiwen Mao 2008-02-08 19:39:17 UTC
Version:           1.6.0 (using KDE 3.5.3)
OS:                Linux

I try to use KstScript to apply the bin plugin to a vector importing from a data source file. After accessing the  property:valid by typing bin.valid in an external terminal, Kst crashes instead of giveing me a true or false value. 


Here are the steps to reproduce the crash:

kst> var s = new Scalar(5); //scalar input for bin plugin
kst> var source = new DataSource("/home/vyiwen/datafiles/random.dat"); //vector source file
kst> var v = new DataVector(source, "1"); //import the vector
kst> v.tagName = "v";
v

kst> var bin = new Plugin(Kst.pluginManager.modules["Bin"]); //getting the bin plugin
kst> bin.setInput(0,v);   //setting input vector and scalar for bin plugin
true
kst> bin.setInput(1,s);
true
kst> bin.valid       //access valid
Kst application process has terminated.
Comment 1 Yiwen Mao 2008-02-08 19:42:26 UTC
Created attachment 23480 [details]
the source file for getting the vector v in problem desciption above
Comment 2 Andrew Walker 2008-02-08 20:34:34 UTC
SVN commit 772451 by arwalker:

BUG:157448 Fix crash due to referencing of incorrect object

 M  +1 -1      bind_plugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=772451