SCM

[#6257] R crashes when manipulating rgl window when R computes on forkcluster

Date:
2015-11-06 18:02
Priority:
3
State:
Closed
Submitted by:
Ott Toomet (otoomet)
Assigned to:
Nobody (None)
Hardware:
PC
Product:
None
Operating System:
Linux
Component:
None
Version:
None
Severity:
None
Resolution:
Won't Fix
URL:
Summary:
R crashes when manipulating rgl window when R computes on forkcluster

Detailed description
bug.report(package="rgl")
Package: rgl
Version: 0.95.1367
Maintainer: Duncan Murdoch <murdoch@stats.uwo.ca>
Built: R 3.2.0; x86_64-pc-linux-gnu; 2015-11-06 17:52:58 UTC; unix

R Version:
platform = x86_64-pc-linux-gnu
arch = x86_64
os = linux-gnu
system = x86_64, linux-gnu
status =
major = 3
minor = 2.0
year = 2015
month = 04
day = 16
svn rev = 68180
language = R
version.string = R version 3.2.0 (2015-04-16)
nickname = Full of Ingredients

Locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

Search Path:
.GlobalEnv, ESSR, package:stats, package:graphics, package:grDevices,
package:utils, package:datasets, package:methods, Autoloads, package:base

------------------------
Example:
library(rgl)
library(parallel)
example(plot3d)
cl <- makeForkCluster(2)
a <- parLapply(cl, 1:1e7, dnorm)

now manipulate the rgl window (rotate, focus/unfocus, hide, redraw...) while R performs the calculations. R crashes with a messages like

[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
R: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

confirmed on ubuntu 14.04, RHEL 6.7 (remote over ssh)

Comments:

Message  ↓
Date: 2015-11-06 19:56
Sender: Duncan Murdoch

I would be happy to include a tested patch to fix this, but I will not work on it myself.

Attached Files:

Changes

Field Old Value Date By
status_idOpen2021-02-02 18:03murdoch
close_dateNone2021-02-02 18:03murdoch
ResolutionNone2021-02-02 18:03murdoch
Thanks to:
Vienna University of Economics and Business Powered By FusionForge