[RQt-devel] another crash

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Nov 18 09:16:03 CET 2009


Any idea what's going wrong here?

### Just code:

library(qtbase)

gscene <- Qt$QGraphicsScene()
rtxt <- gscene$addText("some text")
rtxt
(rtxt$toPlainText()) ## fine

item.list <- gscene$items()
item.list[[1]]
(item.list[[1]]$toPlainText()) ## error


### code + output

> library(qtbase)
> gscene <- Qt$QGraphicsScene()
Cannot handle Moc type 'QList<QRectF>'

Cannot handle Moc type 'SceneLayers'

> rtxt <- gscene$addText("some text")
> rtxt
<environment: 0xa3745dc>
attr(,"class")
[1] "QGraphicsTextItem"   "QObject"             "QGraphicsItem"
[4] "UserDefinedDatabase" "environment"
> (rtxt$toPlainText()) ## fine
[1] "some text"
> item.list <- gscene$items()
> item.list[[1]]
<environment: 0xa1509b0>
attr(,"class")
[1] "QGraphicsTextItem"   "QObject"             "QGraphicsItem"
[4] "UserDefinedDatabase" "environment"
> (item.list[[1]]$toPlainText()) ## error

 *** caught segfault ***
address 0x20, cause 'memory not mapped'

Traceback:
 1: .Call(qt_qinvoke, x, method, FALSE, list(...))
 2: qinvoke(<environment>, "toPlainText", ...)
 3: item.list[[1]]$toPlainText()


More information about the Qtinterfaces-devel mailing list