Fullscreen not working

Added by Maurice Commandeur over 10 years ago

Hi,

I just compiled the OSX version of Showtime and it is working really good as fronted of tv-headend.

One bug I've found is that when I switch to fullscreen my display stays black. Switching back with cmd-F will give the screen back again.

Cheers.


Replies (16)

RE: Fullscreen not working - Added by Mattias Wadman over 10 years ago

Can you provide some more info like Mac OS X version and graphic hardware?
I have a similar problem with blank screen but only when starting in fullscreen and going back to windowed.

RE: Fullscreen not working - Added by Maurice Commandeur over 10 years ago

I've tested on my mid 2009 MacBookPro (C2D 2.8GHz/8GB )
Machine is running on MAC OSX 10.7.2 with a Nvidia GeForce 9400M with 265MB

During fullscreen the mouse cursor is still visible.

How do I start Showtime fullscreen from the command line ?

RE: Fullscreen not working - Added by Mattias Wadman over 10 years ago

If you quit Showtime in fullscreen mode it will start in fullscreen mode.
The x11 interface seams to supports --fullscreen but not the OS X verison yet.

RE: Fullscreen not working - Added by Maurice Commandeur over 10 years ago

Hmmm

When I switch to fullscreen, the screen goes black.
It then does not accept the cmd-Q to stop Showtime.
It only responds to cmd-F for fullscreen and back.

maurice$ open build.osx/Showtime.app --fullscreen
open: unrecognized option `--fullscreen'
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
      By default, opens each file using the default application for that file.  
      If the file is in the form of a URL, the file will be opened as a URL.
Options: 
      -a                Opens with the specified application.
      -b                Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
      -f                Reads input from standard input and opens with TextEdit.
      -F  --fresh       Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.
      -R, --reveal      Selects in the Finder instead of opening.
      -W, --wait-apps   Blocks until the used applications are closed (even if they were already running).
          --args        All remaining arguments are passed in argv to the application's main() function instead of opened.
      -n, --new         Open a new instance of the application even if one is already running.
      -j, --hide        Launches the app hidden.
      -g, --background  Does not bring the application to the foreground.
      -h, --header      Searches header file locations for headers matching the given filenames, and opens them.

RE: Fullscreen not working - Added by Mattias Wadman over 10 years ago

You probably need to execute the binary directly instead of via open to provide arguments. But as I said the Mac OS X version does not support --fullscreen yet.

$ Showtime.app/Contents/MacOS/showtime -h

RE: Fullscreen not working - Added by Maurice Commandeur over 10 years ago

Sorry that it took a while before I answer this …

But I'll guess you could be looking for this :

mbp:MacOS maurice$ ./showtime
core [INFO]: Using 2 CPU(s)
i18n [INFO]: Loading language nl_NL
navigator [INFO]: Opening page:home
HTTPSRV [INFO]: Listening on port 42000
UPNP [INFO]: Unable to introspect http://10.211.55.2:2170/ -- Connection refused
UPNP [INFO]: Unable to introspect http://10.37.129.2:2170/ -- Connection refused
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
navigator [INFO]: Opening htsp://192.168.20.40:9982
HTSP [INFO]: Connected to 192.168.20.40:9982
navigator [INFO]: Opening htsp://192.168.20.40:9982/tag/6
HTSP [INFO]: Unknown async method 'dvrEntryAdd' received
HTSP [INFO]: Unknown async method 'dvrEntryAdd' received
navigator [INFO]: Opening htsp://192.168.20.40:9982/tagchannel/6/29
navigator [INFO]: Opening htsp://192.168.20.40:9982/tagchannel/6/29
2011-11-29 21:12:37.772 showtime[45307:60b] invalid fullscreen drawable
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
Segmentation fault: 11

The segfault at the end is because I pressed cmd-q

Hope this helps.

RE: Fullscreen not working - Added by Mattias Wadman over 10 years ago

Does it crash directly or do you see the interface flash by?

Can you run showtime in gdb and print the backtrace?

Run:

gdb --args Showtime.app/Contents/MacOS/showtime

Once you see the gdb prompt type this:

(gdb) run

Then after showtime has crashes:

(gdb) thread apply all backtrace

Paste the output in a reply.

RE: Fullscreen not working - Added by Maurice Commandeur over 10 years ago

Usually it does not crash at all .. It is friendly code :-)
It crashes after playing in the settings with the fullscreen option

Here's the gdb output you wanted
@(gdb) run
Starting program: /Applications/Showtime.app/Contents/MacOS/showtime
Reading symbols for shared libraries . done
core [INFO]: Using 2 CPU
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
i18n [INFO]: Loading language nl_NL
navigator [INFO]: Opening page:home
HTTPSRV [INFO]: Listening on port 42000
UPNP [INFO]: Unable to introspect http://10.211.55.2:2170/ -- Connection refused
UPNP [INFO]: Unable to introspect http://10.37.129.2:2170/ -- Connection refused
Reading symbols for shared libraries ++ done
Reading symbols for shared libraries + done
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
Reading symbols for shared libraries + done
navigator [INFO]: Opening upnp:uuid:EAEB-C42C030B20AF-01-656C6761746F04:urn:upnp-org:serviceId:ContentDirectory:0
navigator [INFO]: Opening settings:
navigator [INFO]: Opening prop:11
navigator [INFO]: Opening prop:9
navigator [INFO]: Opening prop:12
2011-11-29 22:59:32.446 showtime[45779:1207] invalid fullscreen drawable
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
2011-11-29 22:59:42.009 showtime[45779:1207] invalid fullscreen drawable
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
2011-11-29 22:59:44.447 showtime[45779:1207] invalid fullscreen drawable
GLW [INFO]: OpenGL Renderer: 'NVIDIA GeForce 9400M OpenGL Engine' by 'NVIDIA Corporation'
^C
Program received signal SIGINT, Interrupt.
0x00007fff8cf9f67a in mach_msg_trap ()
(gdb) thread apply all backtrace

Thread 22 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x000000010021a2c7 in loader_thread (aux=0x105412ef0) at glw_texture_loader.c:91
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101173a20) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 21 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x000000010021a2c7 in loader_thread (aux=0x1053efef0) at glw_texture_loader.c:91
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101173760) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 20 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x000000010021a2c7 in loader_thread (aux=0x1053ccef0) at glw_texture_loader.c:91
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101173470) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 19 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x000000010021a2c7 in loader_thread (aux=0x1053a9ef0) at glw_texture_loader.c:91
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101173190) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 18 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x0000000100219819 in font_render_thread (aux=0x105386ef0) at glw_text_bitmap.c:911
#3 0x00000001001a68d9 in thread_trampoline (aux=0x1010ae740) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 16 (process 45779):
#0 0x00007fff8cfa1a7a in poll ()
#1 0x00000001001e86ba in ssdp_thread (aux=0x102820e88) at ssdp.c:480
#2 0x00000001001a68d9 in thread_trampoline (aux=0x10106f060) at arch_posix.c:320
#3 0x00007fff93b358bf in _pthread_start ()
#4 0x00007fff93b38b75 in thread_start ()

Thread 15 (process 45779):
#0 0x00007fff8cfa1a7a in poll ()
#1 0x00000001001e5f76 in http_server (aux=0x1011021b0) at http_server.c:1076
#2 0x00000001001a68d9 in thread_trampoline (aux=0x1010361c0) at arch_posix.c:320
#3 0x00007fff93b358bf in _pthread_start ()
#4 0x00007fff93b38b75 in thread_start ()

Thread 14 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001ef5b9 in prop_courier (aux=0x10106be50) at prop_core.c:722
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101019990) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 13 (process 45779):
#0 0x00007fff8cfa0df2 in select$DARWIN_EXTSN ()
#1 0x00007fff93c46f9b in __CFSocketManager ()
#2 0x00007fff93b358bf in _pthread_start ()
#3 0x00007fff93b38b75 in thread_start ()

Thread 12 (process 45779):
#0 0x00007fff8cf9f67a in mach_msg_trap ()
#1 0x00007fff8cf9ed71 in mach_msg ()
#2 0x00007fff923f6eb3 in HALB_MachPort::SendMessageWithReply ()
#3 0x00007fff923f6f05 in HALB_MachPort::SendSimpleMessageWithSimpleReply ()
#4 0x00007fff923f0568 in HALC_ProxyIOContext::IOWorkLoop ()
#5 0x00007fff923f0151 in HALC_ProxyIOContext::IOThreadEntry ()
#6 0x00007fff923f000c in HALB_IOThread::Entry ()
#7 0x00007fff93b358bf in _pthread_start ()
#8 0x00007fff93b38b75 in thread_start ()

Thread 11 (process 45779):
#0 0x00007fff8cf9f67a in mach_msg_trap ()
#1 0x00007fff8cf9ed71 in mach_msg ()
#2 0x00007fff93bf5b6c in __CFRunLoopServiceMachPort ()
#3 0x00007fff93bfe2d4 in __CFRunLoopRun ()
#4 0x00007fff93bfdae6 in CFRunLoopRunSpecific ()
#5 0x00000001001aaed2 in coreaudio_start (am=0x101118e10, af=0x7fff7b2d7ae0) at coreaudio.c:407
#6 0x00000001001a7c19 in audio_output_thread (aux=0x1016c3198) at audio.c:232
#7 0x00000001001a68d9 in thread_trampoline (aux=0x101062680) at arch_posix.c:320
#8 0x00007fff93b358bf in _pthread_start ()
#9 0x00007fff93b38b75 in thread_start ()

Thread 10 (process 45779):
#0 0x00007fff8cfa1192 in __workq_kernreturn ()
#1 0x00007fff93b37594 in _pthread_wqthread ()
#2 0x00007fff93b38b85 in start_wqthread ()

Thread 9 (process 45779):
#0 0x00007fff8cfa1192 in __workq_kernreturn ()
#1 0x00007fff93b37594 in _pthread_wqthread ()
#2 0x00007fff93b38b85 in start_wqthread ()

Thread 8 (process 45779):
#0 0x00007fff8cfa17e6 in kevent ()
#1 0x00007fff8c3895be in _dispatch_mgr_invoke ()
#2 0x00007fff8c38814e in _dispatch_mgr_thread ()

Thread 7 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001ef5b9 in prop_courier (aux=0x1010399c0) at prop_core.c:722
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101039a40) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 6 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001d83eb in mp_dequeue_event (mp=0x101849e00) at media.c:555
#3 0x00000001001e9e70 in player_thread (aux=0x101849e80) at playqueue.c:1063
#4 0x00000001001a68d9 in thread_trampoline (aux=0x101037310) at arch_posix.c:320
#5 0x00007fff93b358bf in _pthread_start ()
#6 0x00007fff93b38b75 in thread_start ()

Thread 5 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001ef5b9 in prop_courier (aux=0x101034430) at prop_core.c:722
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101033230) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 4 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001f7e98 in service_probe_loop (aux=0x1008a63c0) at service.c:275
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101031850) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 3 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001a6b9d in hts_cond_wait_timeout (c=0x1008a6020, m=0x890100008a00, delta=1) at arch_posix.c:216
#3 0x00000001001dd61a in callout_loop (aux=0x1008a6020) at callout.c:132
#4 0x00000001001a68d9 in thread_trampoline (aux=0x101018580) at arch_posix.c:320
#5 0x00007fff93b358bf in _pthread_start ()
#6 0x00007fff93b38b75 in thread_start ()

Thread 2 (process 45779):
#0 0x00007fff8cfa0bca in __psynch_cvwait ()
#1 0x00007fff93b39274 in _pthread_cond_wait ()
#2 0x00000001001ef5b9 in prop_courier (aux=0x101018240) at prop_core.c:722
#3 0x00000001001a68d9 in thread_trampoline (aux=0x101017cf0) at arch_posix.c:320
#4 0x00007fff93b358bf in _pthread_start ()
#5 0x00007fff93b38b75 in thread_start ()

Thread 1 (process 45779):
#0 0x00007fff8cf9f67a in mach_msg_trap ()
#1 0x00007fff8cf9ed71 in mach_msg ()
#2 0x00007fff90ec03ab in io_connect_method ()
#3 0x00007fff90e7b6db in IOConnectCallMethod ()
#4 0x00000002000b3d2a in gldSetFence ()
#5 0x00000002000b4227 in gldFinish ()
#6 0x00007fff8de6a1c7 in CGLFlushDrawable ()
#7 0x00007fff944f7fdf in -[NSView _drawRect:clip:] ()
#8 0x00007fff945258c4 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#9 0x00007fff94525cf0 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
#10 0x00007fff944f55ba in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#11 0x00007fff944f686f in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#12 0x00007fff944f4ab3 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
#13 0x00007fff944efec9 in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
#14 0x00007fff944e893e in -[NSView displayIfNeeded] ()
#15 0x00007fff944e807d in _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints ()
#16 0x00007fff928c4014 in NSFireTimer ()
#17 0x00007fff93c1df84 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
()
#18 0x00007fff93c1dad6 in __CFRunLoopDoTimer ()
#19 0x00007fff93bfe471 in __CFRunLoopRun ()
#20 0x00007fff93bfdae6 in CFRunLoopRunSpecific ()
#21 0x00007fff937c43d3 in RunCurrentEventLoopInMode ()
#22 0x00007fff937cb63d in ReceiveNextEventCommon ()
#23 0x00007fff937cb4ca in BlockUntilNextEventMatchingListInMode ()
#24 0x00007fff944ac3f1 in _DPSNextEvent ()
#25 0x00007fff944abcf5 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#26 0x00007fff944a862d in -[NSApplication run] ()
#27 0x00007fff9472780c in NSApplicationMain ()
#28 0x000000010020657f in glw_cocoa_start (ui=0x7fff5fbff808, root=0x0, argc=-1, argv=0x422d63c37f00000d, primary=2066578144) at glw_cocoa.m:860
#29 0x000000010022c957 in ui_start (argc=0, argv=0x1007be940, argv00=0x1006f0ec0 "glw") at ui.c:150
#30 0x00000001001d6d13 in main (argc=0, argv=0x7fff5fbffbf8) at main.c:442
(gdb) @

Have fun debugging :-)

RE: Fullscreen not working - Added by nikkpap (Nikos) over 7 years ago

is it possible force full screen on start up on mac os x???

RE: Fullscreen not working - Added by nikkpap (Nikos) almost 7 years ago

Same here ... only one version the Movian 4.9.407.g2f446 can run in full screen mode any other after this version i tried to compile i get a Force close when i try fullscreen....

I am attaching the log from terminal from the latest compile please any help....

Thanks in advance.

movian-compile.pdf (97.6 KB)

RE: Fullscreen not working - Added by Andreas Smas almost 7 years ago

Yeah, it's buggy but will be fixed soonish.

RE: Fullscreen not working - Added by nikkpap (Nikos) almost 7 years ago

make: *** No rule to make target `/Users/iNuC/Documents/showtime/build.osx/dist/Movian.app/Contents/Resources/MainMenu.nib', needed by `/Users/iNuC/Documents/showtime/build.osx/dist/Movian.app/Contents/MacOS/movian'. Stop.

latest sync and try to built...

RE: Fullscreen not working - Added by Andreas Smas almost 7 years ago

try:

make clean

first

RE: Fullscreen not working - Added by nikkpap (Nikos) almost 7 years ago

CC /Users/iNuC/Documents/showtime/build.osx/src/usage.o
CC /Users/iNuC/Documents/showtime/build.osx/src/version.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/h264_annexb.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/h264_parser.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/vda.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/video_decoder.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/video_playback.o
CC /Users/iNuC/Documents/showtime/build.osx/src/video/video_settings.o
CC /Users/iNuC/Documents/showtime/build.osx/movian.osxapp
make: *** No rule to make target `/Users/iNuC/Documents/showtime/build.osx/dist/Movian.app/Contents/Resources/MainMenu.nib', needed by `/Users/iNuC/Documents/showtime/build.osx/dist/Movian.app/Contents/MacOS/movian'. Stop.
MacNuc:showtime iNuC$

RE: Fullscreen not working - Added by Andreas Smas almost 7 years ago

Uhm, sorry. Didn't realize you did "make dist"

Fixed in 4.99-141-gb75124a

(1-16/16)