Opened 5 years ago

Last modified 4 years ago

#58794 new defect

Povray terminates due to uncaught exception: 'NSWindow drag regions should only be invalidated on the Main Thread!'

Reported by: myan18 Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: povray

Description

Hi,

I installed Povray 3.7 last December on back then new MacBook Pro (Mojave). Povray ran fine for a couple of months. Last week when I tried, Povray failed to run. I just upgraded the whole MacPorts including Povray. However the problem persists. The complete output is attached below.

Any hints? Best, Max

Persistence of Vision(tm) Ray Tracer Version 3.7.0.8.unofficial (clang++ 4.2.1 @
 x86_64-apple-darwin18)
This is an unofficial version compiled by:
 MacPorts <https://www.macports.org/>
 The POV-Ray Team is not responsible for supporting this version.

POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins
Copyright 1991-2013 Persistence of Vision Raytracer Pty. Ltd.

Primary POV-Ray 3.7 Architects/Developers: (Alphabetically)
  Chris Cason         Thorsten Froehlich  Christoph Lipka   

With Assistance From: (Alphabetically)
  Nicolas Calimet     Jerome Grimbert     James Holsenback    Christoph Hormann 
  Nathan Kopp         Juha Nieminen     

Past Contributors: (Alphabetically)
  Steve Anger         Eric Barish         Dieter Bayer        David K. Buck     
  Nicolas Calimet     Chris Cason         Aaron A. Collins    Chris Dailey      
  Steve Demlow        Andreas Dilger      Alexander Enzmann   Dan Farmer        
  Thorsten Froehlich  Mark Gordon         James Holsenback    Christoph Hormann 
  Mike Hough          Chris Huff          Kari Kivisalo       Nathan Kopp       
  Lutz Kretzschmar    Christoph Lipka     Jochen Lippert      Pascal Massimino  
  Jim McElhiney       Douglas Muir        Juha Nieminen       Ron Parker        
  Bill Pulver         Eduard Schwan       Wlodzimierz Skiba   Robert Skinner    
  Yvo Smellenbergh    Zsolt Szalavari     Scott Taylor        Massimo Valentini 
  Timothy Wegner      Drew Wells          Chris Young       

Other contributors are listed in the documentation.

Support libraries used by POV-Ray:
  ZLib 1.2.11, Copyright 1995-2012 Jean-loup Gailly and Mark Adler
  LibPNG 1.6.37, Copyright 1998-2012 Glenn Randers-Pehrson
  LibJPEG 90, Copyright 1991-2013 Thomas G. Lane, Guido Vollbeding
  LibTIFF 4.0.10, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI
  Boost 1.66, http://www.boost.org/
  OpenEXR 2.3.0 and IlmBase 2.3.0, Copyright (c) 2002-2011 Industrial Light &
 Magic.

Parser Options
  Input file: room.pov
  Remove bounds........On 
  Split unions.........Off
  Library paths:
    /opt/local/share/povray-3.7
    /opt/local/share/povray-3.7/ini
    /opt/local/share/povray-3.7/include
  Clock value:    0.000  (Animation off)
Image Output Options
  Image resolution.....640 by 480 (rows 1 to 480, columns 1 to 640).
  Output file..........room.png, 24 bpp PNG
  Dithering............Off
  Graphic display......On  (gamma: sRGB)
  Mosaic preview.......Off
  Continued trace......Off
Information Output Options
  All Streams to console..........On 
  Debug Stream to console.........On 
  Fatal Stream to console.........On 
  Render Stream to console........On 
  Statistics Stream to console....On 
  Warning Stream to console.......On 
==== [Parsing...] ==========================================================
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.918 povray[69816:1044607] pid(69816)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-08-06 11:24:58.931 povray[69816:1044607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff3095fcfd __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff5b009a17 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3097985d -[NSException raise] + 9
	3   AppKit                              0x00007fff2dfae7ae -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
	4   AppKit                              0x00007fff2dfabbdb -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	5   AppKit                              0x00007fff2dfab60e -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	6   libSDL-1.2.0.dylib                  0x0000000108ec96ed -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 262
	7   libSDL-1.2.0.dylib                  0x0000000108ec7330 QZ_SetVideoMode + 1370
	8   libSDL-1.2.0.dylib                  0x0000000108ebeb34 SDL_SetVideoMode + 590
	9   povray                              0x0000000108bc4805 _ZN12pov_frontend14UnixSDLDisplay4ShowEv + 601
	10  povray                              0x0000000108bdaab1 _ZN3vfe15VirtualFrontEnd7ProcessEv + 1833
	11  povray                              0x0000000108bcdb71 _ZN3vfe10vfeSession15ProcessFrontendEv + 27
	12  povray                              0x0000000108bcdebe _ZN3vfe10vfeSession12WorkerThreadEv + 546
	13  libboost_thread-mt.dylib            0x0000000109493528 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 136
	14  libsystem_pthread.dylib             0x00007fff5c9cb2eb _pthread_body + 126
	15  libsystem_pthread.dylib             0x00007fff5c9ce249 _pthread_start + 66
	16  libsystem_pthread.dylib             0x00007fff5c9ca40d thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Change History (5)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Keywords: Povray libc++abi.dylib removed
Summary: Povray fails to run: libc++abi.dylib: terminating with uncaught exception of type NSExceptionPovray terminates due to uncaught exception: 'NSWindow drag regions should only be invalidated on the Main Thread!'

Error messages seem fairly self-explanatory; the OS wants some operations to only be done by the main thread, and the app is doing them on other threads. I guess this is a new constraint added in more recent OS versions. Probably something that upstream needs to fix.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Port: povray added; Povray removed

comment:3 in reply to:  2 Changed 5 years ago by myan18

Replying to mf2k: However I did not get the answer. What or who is "upstream"? Will it be fixed within a certain time frame or the problem will be hanging indefinitely? I am seriously considering to get a backup Windows machine just for being able to use Povray...

comment:4 Changed 5 years ago by kencu (Ken)

upstream refers to the people who wrote the software.

Macports is a build infrastrucure, and controls how software is built, which compilers are used, what supporting software is used, etc.

But if the actual software has a bug in it, that's a problem for "upstream".

port gohome XYZ

will take you upstream, where there is usually a way to submit a bug report like this.

comment:5 Changed 4 years ago by fstonedahl (Forrest Stonedahl)

Until this gets fixed upstream, here's a work-around: I found that you can pass the -D command-line option to povray, to get it to render in the background (i.e., without displaying the image as it progresses), and it should still generate the PNG file output just fine.

Note: See TracTickets for help on using tickets.