Bug #2686

Movian can't start in OSX if hardware acceleration of OpenGL is not available

Added by Leonid Protasov over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:06/13/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:General
Target version:4.10
Found in version:4.9.524 Platform:OS X

Description

SYSTEM          [INFO ]: Movian 4.9.524.g52f7d.dirty starting. 2 CPU cores. Systemtype:Apple OS:Darwin-14.3.0
blobcache       [INFO ]: Initialized: 0 items consuming 0.00 MB (out of maximum 1000.00 MB) on disk in /Users/lprot/.cache/showtime/bc2
SQLITE          [INFO ]: Recovered 7 frames from WAL file /Users/lprot/.hts/showtime/kvstore/kvstore.db-wal (code: 0x0)
SQLITE          [INFO ]: Recovered 56 frames from WAL file /Users/lprot/.hts/showtime/metadb/meta.db-wal (code: 0x0)
libav           [INFO ]: Lavf56.1.0, Lavc56.1.0, Lavu54.3.0 cpuflags:0x53db
i18n            [INFO ]: Unloading language definition
Spotify         [INFO ]: Using library version 12.1.51.g86c92b43 Release Darwin-x86_64 
TCP             [INFO ]: http-server: Listening on port 42000
UDP             [INFO ]: nmb: Listening on port 56484
UDP             [INFO ]: bittorrent udp tracker: Listening on port 50952
navigator       [INFO ]: Opening page:home
2015-06-13 13:39:14.437 showtime[37298:83949] Unable to create windowed pixel format.

Associated revisions

Revision ab1f620b
Added by Andreas Smas over 5 years ago

osx: Don't require accelerated opengl surface

Fixes #2686

Change included in version 4.9.537

History

#1 Updated by Leonid Protasov over 5 years ago

  • Subject changed from Can't start compiled Movian on OSX 10.10.3 in VM to Movian can't start in OSX if hardware acceleration of OpenGL is not available

The cause is that in /src/arch/osx/GLWView.m you use:

- (id)initWithFrame:(NSRect)frameRect :(struct glw_root *)root :(bool)fs
{
  NSOpenGLPixelFormat *wpf;
  NSOpenGLPixelFormatAttribute attribs_windowed[] = {
    NSOpenGLPFAWindow,
    NSOpenGLPFAColorSize, 32,
    NSOpenGLPFAAccelerated,
    NSOpenGLPFADoubleBuffer,
    NSOpenGLPFASingleRenderer,
    0 };

  NSOpenGLPixelFormatAttribute attribs_fs[] = {
    NSOpenGLPFADoubleBuffer,
    0 };

  wpf = [[NSOpenGLPixelFormat alloc]
      initWithAttributes: fs ? attribs_fs : attribs_windowed];

  if(wpf == nil) {
    NSLog(@"Unable to create windowed pixel format.");
    exit(0);
  }

if(wpf == nil) just try to open it without NSOpenGLPFAAccelerated. I commented that string recomplied and Movan runs there :)

#2 Updated by Andreas Smas over 5 years ago

Great of you to figure out what was wrong. I might have given up :-)

#3 Updated by Andreas Smas over 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF