[Kst] [Bug 135440] Crash when a plugin is missing

Adam Treat treat at kde.org
Mon Oct 16 22:55:27 CEST 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From treat kde org  2006-10-16 22:55 -------
I do not get a crash here.  Instead, the plugin does not load when I restart.  The plugin must be invalid.  Here is KstPlugin::isValid() for you:

bool KstPlugin::isValid() const {
  return _inputVectors.count() == _inArrayCnt &&
         _inputScalars.count() == _inScalarCnt - _inPid &&
         _inputStrings.count() == _inStringCnt &&
         _plugin.data() != 0L;

Doing a little digging, the problem is that _inputVectors and _inputScalars are not set at the time of plugin loading.  Instead they are put in load queues and only become active when data is loaded by kstdoc.

Patch forthcoming.

More information about the Kst mailing list