VideoMapping / lpmtX2

the 2nd version to the recoded lpmt video mapping sofware for linux & osx
MIT License
14 stars 4 forks source link

flickering in fullscreen mode #13

Closed nanu-c closed 8 years ago

nanu-c commented 8 years ago

I have to investigate more about this issue

jamet commented 8 years ago

hey @nanu-c , it seems i don't have this problem here, could you describe a bit more? i also forgot to merge a fix_bezier branch into master, will do it now if you want to get a try with a it.... who knows ;)

nanu-c commented 8 years ago

yesterday i tried lpmt for visuals and had some problems but the good thing is, now I have some time :)

nanu-c commented 8 years ago
libv4l2: error setting pixformat: Das Gerät oder die Ressource ist belegt
[ error ] ofGstUtils: gstHandleMessage(): embedded video playback halted for plugin, module video_source  reported: Gerät »/dev/video0« ist belegt
libv4l2: error setting pixformat: Das Gerät oder die Ressource ist belegt
[ error ] ofGstUtils: gstHandleMessage(): embedded video playback halted for plugin, module video_source  reported: Gerät »/dev/video0« ist belegt
[ error ] ofGstUtils: gstHandleMessage(): embedded video playback halted for plugin, module capsfilter3  reported: Filter caps do not completely specify the output format
Failed to open BO for returned DRI2 buffer (1366x768, dri2 back buffer, named 29).
This is likely a bug in the X Server that will lead to a crash soon.

and lot's of


[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
[warning] error pushing buffer
nanu-c commented 8 years ago
Mar 20 13:11:27 nanu-X55CR kernel: [ 2752.352760] [drm:drm_mode_addfb2] [FB:46]
Mar 20 13:11:27 nanu-X55CR kernel: [ 2752.668710] [drm:drm_mode_addfb2] [FB:46]
Mar 20 13:11:37 nanu-X55CR kernel: [ 2762.678595] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:11:39 nanu-X55CR kernel: [ 2764.164107] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:11:47 nanu-X55CR kernel: [ 2772.688274] [drm:drm_mode_addfb2] [FB:44]
Mar 20 13:11:57 nanu-X55CR kernel: [ 2782.696206] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:12:07 nanu-X55CR kernel: [ 2792.704851] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:12:13 nanu-X55CR kernel: [ 2798.346421] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:12:28 nanu-X55CR kernel: [ 2813.543691] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:12:39 nanu-X55CR kernel: [ 2824.266776] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:12:48 nanu-X55CR kernel: [ 2832.875033] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:12:57 nanu-X55CR kernel: [ 2842.750868] [drm:drm_mode_addfb2] [FB:46]
Mar 20 13:13:07 nanu-X55CR kernel: [ 2852.027581] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:13:07 nanu-X55CR kernel: [ 2852.759648] [drm:drm_mode_addfb2] [FB:46]
Mar 20 13:13:13 nanu-X55CR kernel: [ 2858.081339] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:13:27 nanu-X55CR kernel: [ 2872.778581] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:13:36 nanu-X55CR kernel: [ 2881.438499] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:13:38 nanu-X55CR kernel: [ 2883.422272] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:13:57 nanu-X55CR kernel: [ 2901.989359] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:14:07 nanu-X55CR kernel: [ 2912.832349] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:14:11 nanu-X55CR kernel: [ 2916.085375] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:14:24 nanu-X55CR kernel: [ 2929.616554] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:14:27 nanu-X55CR kernel: [ 2932.835790] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:14:28 nanu-X55CR kernel: [ 2933.116767] [drm:drm_mode_addfb2] [FB:44]
Mar 20 13:14:38 nanu-X55CR kernel: [ 2942.958578] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:14:39 nanu-X55CR kernel: [ 2944.011111] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:14:47 nanu-X55CR kernel: [ 2952.835216] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:15:07 nanu-X55CR kernel: [ 2972.852651] [drm:drm_mode_addfb2] [FB:44]
Mar 20 13:15:10 nanu-X55CR kernel: [ 2975.324277] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:15:44 nanu-X55CR kernel: [ 3009.304389] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:15:54 nanu-X55CR kernel: [ 3019.063616] [drm:drm_mode_addfb2] [FB:42]
Mar 20 13:15:58 nanu-X55CR kernel: [ 3023.132082] [drm:drm_mode_addfb2] [FB:44]
Mar 20 13:16:07 nanu-X55CR kernel: [ 3032.940549] [drm:drm_mode_addfb2] [FB:47]
Mar 20 13:16:09 nanu-X55CR kernel: [ 3034.677828] [drm:drm_mode_addfb2] [FB:50]
Mar 20 13:16:17 nanu-X55CR kernel: [ 3042.915882] [drm:drm_mode_addfb2] [FB:44]

so it's an os related issue... but still unusable

nanu-c commented 8 years ago

and also the break: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=271143 end=271144)

nanu-c commented 8 years ago

Solution: use ofAppGLFWWindow window; not ofAppGlutWindow window; in main.cpp

jamet commented 8 years ago

@nanu-c , i changed the window manager to get rid of this problem : https://github.com/VideoMapping/lpmtX2/issues/2

could you try to reproduce it with your mods? (dysplaing a live cam feed on a external monitor, and see if the framerates drop by pressing F8 to display it)

curious if it works

nanu-c commented 8 years ago

I experience the same framerates drop when I use the glfw (3-8 frames/s), but if i use ofSetupOpenGL(&window,1024,768,OF_GAME_MODE); it's gone(30-50 frames/s).ofSetupOpenGL(&window,1024,768,OF_GAME_MODE); The flickering of the screen in Glut is not related to the framerate (always >50 fps).

jamet commented 8 years ago

I tried to modofoed to OF_GAME_MODE, but it crashes when using either glut or glfw.

I'm a bit embarressed with this @nanu-c , i can't commit this since it breaks my setup...

this seems a lot related to the hardware, if you want to compare, i 'm runnng lpmt on a core i5 with nvidia 840m here is the glfw version on my lubuntu 14-04 : ii libglfw3:amd64 3.0.4-2~trusty amd64 portable library for OpenGL, window and input (libraries) ii libglfw3-dev:amd64 3.0.4-2~trusty amd64 portable library for OpenGL, window and input (development files

and here glut :

ii freeglut3:amd64 2.8.1-1 amd64 OpenGL Utility Toolkit ii freeglut3-dev:amd64 2.8.1-1 amd64 OpenGL Utility Toolkit development files

nanu-c commented 8 years ago

on ubuntu mate 15.10 I have freeglut3:amd64 2.8.1-2 freeglut3-dev:amd64 2.8.1-2 libglfw3:amd64 3.1.1-1 libglfw3-dev:amd64 3.1.1-1

maybe i include a command line argument (as used here ) -glfw to use glfw instead of glut.

My hardware is a intel i3 with Intel HD Graphics 3000. I am going to try ppa:ubuntu-x-swat/x-updates ...

nanu-c commented 8 years ago

I solved this by installing Linux Mint ldme. But had to change some addons

#! /bin/bash
# ofxMidi/
git clone https://github.com/danomatika/ofxMidi

#ofxMostPixelsEver/
git clone https://github.com/nanu-c/ofxMostPixelsEver.git

#ofxMSAInteractiveObject/
git clone https://github.com/hvfrancesco/ofxMSAInteractiveObject

#ofxMSATimer/
git clone https://github.com/obviousjim/ofxMSATimer.git

#ofxRange/
git clone https://github.com/Flightphase/ofxRange.git

#ofxSimpleGuiToo/
git clone https://github.com/hvfrancesco/ofxSimpleGuiToo

#ofxTextInputField/
git clone https://github.com/elliotwoods/ofxTextInputField.git

#ofxTimecode/
git clone https://github.com/YCAMInterlab/ofxTimecode.git

#ofxTimeline/
git clone https://github.com/emmanuelgeoffray/ofxTimeline.git -b bugfix-in-out-startup  

#ofxTLButtons/
git clone https://github.com/hvfrancesco/ofxTLButtons

#ofxTween/
git clone https://github.com/arturoc/ofxTween.git

#ofxVideoBuffer/
git clone https://github.com/DHaylock/ofxVideoBuffer.git

#ofxGstV4L2Sink
git clone https://github.com/jamet/ofxGstV4L2Sink.git