Thank you all very much! Anders, I am now away from home, but when I come back (probably Monday) will try to recompile emacs with the NSTRACE_ENABLED macro enable and post the debug output. In the meantime, I am attaching the macOS full crash log, in case anybody can make something of it. Eli, I checked the emacs source code and found these two instances of bytesPerRow in src/nsimage.m (no trace of the other variable, planarGetBytes, though):
tillina:~/Downloads/emacs artemio$ grep -C5 --colour=always -n bytesPerRow -r .
./src/nsimage.m-215- bmRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL
./src/nsimage.m-216- pixelsWide: w pixelsHigh: h
./src/nsimage.m-217- bitsPerSample: 8 samplesPerPixel: 4
./src/nsimage.m-218- hasAlpha: YES isPlanar: YES
./src/nsimage.m-219- colorSpaceName: NSCalibratedRGBColorSpace
./src/nsimage.m:220: bytesPerRow: w bitsPerPixel: 0];
./src/nsimage.m-221-
./src/nsimage.m-222- [bmRep getBitmapDataPlanes: planes];
./src/nsimage.m-223-
./src/nsimage.m-224- if (fg == 0 && bg == 0)
./src/nsimage.m-225- {
--
--
./src/nsimage.m-327- pixelsWide: width pixelsHigh: height
./src/nsimage.m-328- /* keep things simple for now */
./src/nsimage.m-329- bitsPerSample: 8 samplesPerPixel: 4 /*RGB+A*/
./src/nsimage.m-330- hasAlpha: YES isPlanar: YES
./src/nsimage.m-331- colorSpaceName: NSCalibratedRGBColorSpace
./src/nsimage.m:332: bytesPerRow: width bitsPerPixel: 0];
./src/nsimage.m-333-
./src/nsimage.m-334- [bmRep getBitmapDataPlanes: pixmapData];
./src/nsimage.m-335- for (i =0; i<4; i++)
./src/nsimage.m-336- memset (pixmapData[i], 0, width*height);
./src/nsimage.m-337- [self addRepresentation: bmRep];
Thanks again,
Artemio