Displaying 11 results from an estimated 11 matches for "gecreatedevdesc".
2014 Sep 19
1
Pointer ownership with GECreateDevDesc/GEDestroyDevDesc
According to the "R Internals" document, for a custom device, I should
create a pDevDesc structure that gets passed to GECreateDevDesc.
..elided...
pDevDesc dev;
/* Allocate and initialize the device driver data */
if (!(dev = (pDevDesc) calloc(1, sizeof(DevDesc)))) return 0;
/* or error() */
/* set up device driver or free ?dev? and error() */
gdd = GEcreateDevDesc(dev); GEaddDevice2(gdd, "dev_name");
...elided...
whi...
2019 Apr 30
2
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
...bgcolor, canvascolor, sfonts, res,
> xpos, ypos, title, useCairo, antialias, family)) {
> free(dev);
> errorcall(call, _("unable to start device %s"), devname);
> }
> dd = GEcreateDevDesc(dev);
> GEaddDevice2(dd, devname);
>
> i.e., we start the device driver, and if it fails, we throw away the "dev" structure and call it a day. If it succeeds, we proceed to create a device descriptor structure and add it to the list of open devices.
>
> This appr...
2019 Apr 25
2
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
...>------------>>
>.....
>Gah. I've been too tired today. Why did that take me so long?
>
>The culprit seems to be
>
>R_ProcessEvents((void*) NULL)
>
>in newX11DeviceDriver
>
>This gets called *before* this stuff at the end of Rf_addX11Device
>
> dd = GEcreateDevDesc(dev);
> addDevice((DevDesc*) dd);
> initDisplayList((DevDesc*) dd);
>
>and it is that "dd" that gets called by Rf_playDisplayList. Removing
>the offending line stops the segfaulting, seemingly with no ill
>effects.
>
>I'm not really sure what the use of that li...
2019 May 02
1
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
...r, canvascolor, sfonts, res,
>>> xpos, ypos, title, useCairo, antialias, family)) {
>>> free(dev);
>>> errorcall(call, _("unable to start device %s"), devname);
>>> }
>>> dd = GEcreateDevDesc(dev);
>>> GEaddDevice2(dd, devname);
>>> i.e., we start the device driver, and if it fails, we throw away the "dev" structure and call it a day. If it succeeds, we proceed to create a device descriptor structure and add it to the list of open devices.
>>>...
2019 Apr 27
0
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
...mma, colormodel, maxcubesize,
bgcolor, canvascolor, sfonts, res,
xpos, ypos, title, useCairo, antialias, family)) {
free(dev);
errorcall(call, _("unable to start device %s"), devname);
}
dd = GEcreateDevDesc(dev);
GEaddDevice2(dd, devname);
i.e., we start the device driver, and if it fails, we throw away the "dev" structure and call it a day. If it succeeds, we proceed to create a device descriptor structure and add it to the list of open devices.
This approach means that X11DeviceD...
2019 May 02
0
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
...bgcolor, canvascolor, sfonts, res,
>> xpos, ypos, title, useCairo, antialias, family)) {
>> free(dev);
>> errorcall(call, _("unable to start device %s"), devname);
>> }
>> dd = GEcreateDevDesc(dev);
>> GEaddDevice2(dd, devname);
>> i.e., we start the device driver, and if it fails, we throw away the "dev" structure and call it a day. If it succeeds, we proceed to create a device descriptor structure and add it to the list of open devices.
>> This appro...
2019 Apr 24
2
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
I don't recall exactly what I did 18 years ago eiher and I likely don't have the time to dig into the archives and reconstruct.
I can imagine that the issue had to do with the protocol around creating and mapping windows. Presumably the segfault comes from looking for events on a window that hasn't been created yet, or has already been destroyed, leading to a NULL reference somewhere.
2019 Apr 24
0
[FORGED] src/modules/X11/devX11.c, can we remove "#if BUG" yet
.... Part of thread "X11 still segfaults".
------------>>
.....
Gah. I've been too tired today. Why did that take me so long?
The culprit seems to be
R_ProcessEvents((void*) NULL)
in newX11DeviceDriver
This gets called *before* this stuff at the end of Rf_addX11Device
dd = GEcreateDevDesc(dev);
addDevice((DevDesc*) dd);
initDisplayList((DevDesc*) dd);
and it is that "dd" that gets called by Rf_playDisplayList. Removing
the offending line stops the segfaulting, seemingly with no ill
effects.
I'm not really sure what the use of that line ever was; it might be
necess...
2005 Apr 02
2
Building new graphic device drivers with g++
...lloc(1, sizeof(NewDevDesc))))
return R_NilValue;
dev->displayList = R_NilValue;
if (!nullDeviceDriver(dev)) {
free(dev);
error("unable to start NULL device");
}
gsetVar(install(".Device"), mkString("NULL"), R_NilValue);
dd = GEcreateDevDesc(dev);
Rf_addDevice((DevDesc*) dd);
GEinitDisplayList(dd);
return R_NilValue;
}
static void NULL_Circle(double x, double y, double r,
R_GE_gcontext *gc,
NewDevDesc *dev) {
Rprintf("circle(%lf,%lf,%lf)\n"...
2008 Jun 03
2
JGR / linux
.../share/R/include/R_ext/GraphicsEngine.h:224: error: expected ?)? before
?*? token
/usr/share/R/include/R_ext/GraphicsEngine.h:231: error: expected declaration
specifiers or ?...? before ?NewDevDesc?
javaGD.c: In function ?Rf_addJavaGDDevice?:
javaGD.c:215: warning: implicit declaration of function ?GEcreateDevDesc?
javaGD.c:215: warning: assignment makes pointer from integer without a cast
javaGD.c: In function ?reloadJavaGD?:
javaGD.c:233: error: ?GEDevDesc? has no member named ?dev?
javaGD.c: In function ?javaGDobjectCall?:
javaGD.c:252: error: ?GEDevDesc? has no member named ?dev?
javaGD.c: In function ?j...
2004 Mar 13
0
64bit build on IBM
...17 ERROR: Undefined symbol: .vmaxset
ld: 0711-317 ERROR: Undefined symbol: .R_CheckDeviceAvailable
ld: 0711-317 ERROR: Undefined symbol: R_interrupts_suspended
ld: 0711-317 ERROR: Undefined symbol: .Rf_mkString
ld: 0711-317 ERROR: Undefined symbol: .Rf_gsetVar
ld: 0711-317 ERROR: Undefined symbol: .GEcreateDevDesc
ld: 0711-317 ERROR: Undefined symbol: .Rf_addDevice
ld: 0711-317 ERROR: Undefined symbol: .GEinitDisplayList
ld: 0711-317 ERROR: Undefined symbol: R_interrupts_pending
ld: 0711-317 ERROR: Undefined symbol: .Rf_onintr
ld: 0711-317 ERROR: Undefined symbol: .R_alloc
ld: 0711-317 ERROR: Undefined symbo...