Bug 380772 - NEEDINFO: Rkward crashes when calculating NMDS
Summary: NEEDINFO: Rkward crashes when calculating NMDS
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 13:43 UTC by RKWard Team
Modified: 2016-01-05 18:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RKWard Team 2015-05-19 13:43:29 UTC
-- Originally posted by (AT sourceforge.net): vjtz --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/138 on 2017-05-30 15:26:58 +0100 --
---Problem description---
I encountered the error message quoted below. Additionally, I saw the following symptoms:
###Please fill in (if applicable)###

What - in detail - did you do directly before you encountered this problem?

library(vegan)
metab.pos.root1.concat.mrbayes.nmds <- metaMDS(comm=metab.pos.root1.concat.mrbayes, distance="manhattan", k=2, trymax=10000, engine="monoMDS", autotransform=FALSE, noshare=FALSE, stepacross=FALSE, wascores=FALSE, expand=FALSE, plot=TRUE)
# metab.pos.root1.concat.mrbayes has over 14000 columns and 18 rows

When you try to repeat the above, does the problem occur again (no, sometimes, always)?
Always.

If applicable: When doing the same thing in an R session outside of RKWard, do you see the same problem?
RStudio and R console do not produce any output, they just hang.

Do you have any further information that might help us to track this problem down? In particular, if applicable, can you provide sample data and sample R code to reproduce this problem?
No

RKWard is available in many different packagings, and sometimes problems are specific to one method of installation. How did you install RKWard (which file(s) did you download)?
https://build.opensuse.org/package/show?project=devel%3Alanguages%3AR%3Areleased&package=rkward

---Error Message---
Message code: r_engine_has_died
Connection closed unexpectedly. Last error was: QLocalSocket: Remote closed
The R backend will be shut down immediately. This means, you can not use any more functions that rely on it. I.e. you can do hardly anything at all, not even save the workspace (but if you're lucky, R already did that). What you can do, however, is save any open command-files, the output, or copy data out of open data editors. Quit RKWard after that. Sorry!

---Session Info---
RKWard version: 0.6.3
KDE version (runtime): 4.14.6
KDE version (compile time): 4.14.2
Qt build key: x86_64 linux g++-4 full-config
Local KDE directory: /home/vojta/.kde4/
RKWard storage directory: /home/vojta/.rkward/
Backend version (as known to the frontend): 3.2.0

Debug message file (this may contain relevant diagnostic output in case of trouble):
/tmp/rkward.frontend.vrA671
- backend not available or rk.sessionInfo() canceled -
$ cat /tmp/rkward.frontend.vrA671
Object::connect: No such signal KateBuffer::respellCheckBlock(KateDocument*,int,int)
Assert 'false' failed at /home/abuild/rpmbuild/BUILD/rkward-0.6.3/rkward/misc/rkstandardicons.cpp - function iconForWindow line 171
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12" 
rkward(671) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12" 
rkward(671)/kparts KParts::StatusBarExtension::removeStatusBarItem: StatusBarExtension::removeStatusBarItem. Widget not found :  QObject(0x0)  
rkward(671) KDirWatch::removeFile: doesn't know "" 
Object::connect: No such signal KateBuffer::respellCheckBlock(KateDocument*,int,int)
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
Object::connect: No such signal KateBuffer::respellCheckBlock(KateDocument*,int,int)
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
Object::connect: No such signal KateBuffer::respellCheckBlock(KateDocument*,int,int)
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
Assert 'devices.contains (devnum)' failed at /home/abuild/rpmbuild/BUILD/rkward-0.6.3/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp - function closeDevice line 119
QCoreApplication::postEvent: Unexpected null receiver
rkward(671)/kparts KParts::StatusBarExtension::removeStatusBarItem: StatusBarExtension::removeStatusBarItem. Widget not found :  QObject(0x0)  
QProcess: Destroyed while process is still running.
Comment 1 Thomas Friedrichsmeier 2016-01-01 19:19:32 UTC
- **summary**: Rkward crashes when calculating NMDS --> NEEDINFO: Rkward crashes when calculating NMDS
Comment 2 Thomas Friedrichsmeier 2016-01-01 19:19:32 UTC
Hi!

Thanks for reporting (and sorry about the long silence).

> If applicable: When doing the same thing in an R session outside of RKWard, do you see the same problem?
> RStudio and R console do not produce any output, they just hang.

This does look like an issue in R or package "vegan", then. You may want to report it to the vegan mainainters. Bug tracker appears to be at https://github.com/vegandevs/vegan/issues . While the symptoms are a bit different in RKWard vs. R console (crash vs. hang), this does not indicate a problem in RKWard to me.

If I got you wrong on this, or you have any other particular reason to believe that this should be addressed in RKWard, rather than the package, please just reply. Otherwise, I'll close this report in a few weeks.

Regards
Thomas
Comment 3 RKWard Team 2016-01-04 08:45:46 UTC
-- Originally posted by (AT sourceforge.net): vjtz --
It can be problem with vegan, but I wonder why it should crash Rkward... I reported the problem to vegan's developers, I'll see what they think about it.
Comment 4 RKWard Team 2016-01-05 12:36:49 UTC
-- Originally posted by (AT sourceforge.net): vjtz --
OK, it was confirmed as vegan bug https://github.com/vegandevs/vegan/issues/152 but still it shouldn't crash whole Rkward, I think...
Comment 5 Thomas Friedrichsmeier 2016-01-05 12:58:14 UTC
 > but still it shouldn't crash whole Rkward, I think...

True. But as far as I understood your report, so far, you are not _technically_ seeing a crash, but rather "only" the message that the R backend has become unavailable.

We can't really do anything about the latter: If package code crashes in the R backend, that means the backend is crahed. (This is more than just a regular error, it's an undefined execution state). What we _could_ do better, is to allow the R backend to be restarted, without having to close the entire session. That's on our TODO list, but it's not something entirely trivial to implement.

Please let me know, if you are actually seeing a crash of the RKWard frontend.
Comment 6 RKWard Team 2016-01-05 15:22:28 UTC
-- Originally posted by (AT sourceforge.net): vjtz --
Technically You are right, "just" backend crashes, but practically, You loose Your session and have to restore from backup. So that I vote for that restart feature and I hope to see it soon.
Comment 7 Thomas Friedrichsmeier 2016-01-05 18:38:01 UTC
- **status**: open --> closed
Comment 8 Thomas Friedrichsmeier 2016-01-05 18:38:01 UTC
Ok, thanks for the clarification. I'm closing this (specific) issue ticket, then.

Thanks for reporting!