RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Kodi: Screen goes black after video finishes

    Scheduled Pinned Locked Moved Help and Support
    kodi
    23 Posts 7 Posters 6.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • soggypeteS
      soggypete
      last edited by

      I am running retropie on a raspberry pi 3 and have installed kodi 14.3

      Whenever I finish watching a video file in kodi, it goes to a black screen. I can still move around in kodi (I can hear the movement clicks) and can load up a new video from my app which then plays fine but the menu disappears completely.

      I wiped retropie because I thought that this would help but no dice.

      1 Reply Last reply Reply Quote 0
      • soggypeteS
        soggypete
        last edited by

        This is everything in my log file from when I opened the video file:

        NOTICE: VideoPlayer: Opening: nfs://192.168.1.77/volume1/video/Films/T/Tangled Ever After [2012].avi
        18:02:03.296 T:1945514656 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
        18:02:03.297 T:1733215152 NOTICE: Creating InputStream
        18:02:03.396 T:1733215152 NOTICE: Creating Demuxer
        18:02:05.880 T:1733215152 NOTICE: Opening stream: 0 source: 256
        18:02:05.883 T:1733215152 NOTICE: Creating video codec with codec id: 13
        18:02:05.897 T:1733215152 NOTICE: Creating video thread
        18:02:05.898 T:1733215152 NOTICE: Opening stream: 1 source: 256
        18:02:05.898 T:1555145648 NOTICE: running thread: video_thread
        18:02:05.898 T:1733215152 NOTICE: Finding audio codec for: 86017
        18:02:05.899 T:1733215152 NOTICE: Creating audio thread
        18:02:05.899 T:1580659632 NOTICE: running thread: CVideoPlayerAudio::Process()
        18:02:05.911 T:1580659632 NOTICE: Creating audio stream (codec id: 86017, channels: 2, sample rate: 44100, no pass-through)
        18:08:32.439 T:1580659632 NOTICE: CVideoPlayerAudio::Process - stream stalled
        18:08:33.313 T:1733215152 NOTICE: CVideoPlayer::OnExit()
        18:08:33.313 T:1733215152 NOTICE: VideoPlayer: eof, waiting for queues to empty
        18:08:33.313 T:1733215152 NOTICE: Closing stream player 1
        18:08:33.313 T:1733215152 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
        18:08:33.313 T:1733215152 NOTICE: Waiting for audio thread to exit
        18:08:33.313 T:1580659632 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
        18:08:33.313 T:1580659632 NOTICE: thread end: CVideoPlayerAudio::OnExit()
        18:08:33.313 T:1733215152 NOTICE: Closing audio device
        18:08:33.314 T:1733215152 NOTICE: Deleting audio codec
        18:08:33.315 T:1733215152 NOTICE: Closing stream player 2
        18:08:33.315 T:1733215152 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
        18:08:33.315 T:1733215152 NOTICE: waiting for video thread to exit
        18:08:33.315 T:1555145648 NOTICE: thread end: video_thread
        18:08:33.315 T:1733215152 NOTICE: deleting video codec
        18:08:34.742 T:1945514656 NOTICE: CVideoPlayer::CloseFile()
        18:08:34.742 T:1945514656 NOTICE: VideoPlayer: waiting for threads to exit
        18:08:34.742 T:1945514656 NOTICE: VideoPlayer: finished waiting
        18:08:34.779 T:1945514656 NOTICE: CVideoPlayer::CloseFile()
        18:08:34.779 T:1945514656 NOTICE: VideoPlayer: waiting for threads to exit
        18:08:34.779 T:1945514656 NOTICE: VideoPlayer: finished waiting
        18:08:36.545 T:1523577776 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder
        18:08:36.985 T:1523577776 WARNING: Previous line repeats 1 times.
        18:08:36.985 T:1523577776 NOTICE: LoadJpeg: unable to load http://image.tmdb.org/t/p/original/3vILyxwmL4hcqiik638l8lL2d4h.jpg
        18:08:38.327 T:1580659632 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder
        18:08:38.510 T:1580659632 WARNING: Previous line repeats 1 times.
        18:08:38.510 T:1580659632 NOTICE: LoadJpeg: unable to load http://image.tmdb.org/t/p/original/pE28BDqICBPe3FgphsYSxtH6FcZ.jpg
        18:10:06.419 T:1945514656 NOTICE: NFS is idle. Closing the remaining connections.
        18:10:50.870 T:1782383536 ERROR: OnTvStandby - Unexpected [standby_pc_on_tv_standby] setting value

        1 Reply Last reply Reply Quote 0
        • RascasR
          Rascas
          last edited by

          Please post the information asked here:
          https://retropie.org.uk/forum/topic/3/read-this-first
          And also a full Kodi debug log:
          http://kodi.wiki/view/Log_file

          1 Reply Last reply Reply Quote 0
          • soggypeteS
            soggypete
            last edited by

            Hi @Rascas I'm running the latest version of retropie and kodi 14.3

            did I not post the debug file already?

            RascasR 1 Reply Last reply Reply Quote 0
            • RascasR
              Rascas @soggypete
              last edited by Rascas

              @sphirst No, that is just a small portion of a normal log, not a full degub log. We need all the information asked above to see what is your problem.

              1 Reply Last reply Reply Quote 0
              • soggypeteS
                soggypete
                last edited by

                @Rascas
                thanks for pointing me in the right direction. Apologies for my ignorance, I just really need help with this :(

                My debug file can be found here.

                Like I said, new install of both retropie and kodi. Screen goes blank on video ending but kodi is still active and I can still load up a new tv show with the app and I can hear the clicks in the background but can't see anything. HDMI is working fine.

                RascasR 1 Reply Last reply Reply Quote 0
                • RascasR
                  Rascas @soggypete
                  last edited by

                  @sphirst there is no errors in Kodi log that can be related to your problem, but it seems also that you didnt played any file. Reproduce your problem and post the log again.

                  soggypeteS 1 Reply Last reply Reply Quote 0
                  • soggypeteS
                    soggypete @Rascas
                    last edited by

                    @rascas thanks for your patience with my limited knowledge. I thought I’d set it so it showed a log of before I restarted the pi - because obviously I can’t upload the log after replicating the problem as the GUI is no longer visible after the video ends.

                    I’ll try and have a look the best way to upload the debug log without using the GUI

                    1 Reply Last reply Reply Quote 0
                    • soggypeteS
                      soggypete
                      last edited by

                      Ok, how about this (my new debug log after trying to watch red dwarf)

                      1 Reply Last reply Reply Quote 0
                      • RascasR
                        Rascas
                        last edited by Rascas

                        I am not seeing any error related to what you described. Are you sure that it happened in this log ? Does it happen everytime ? Do you have another HDMI cable to test, or another TV/monitor ? If you don't use CEC, you can also try to disable it in Kodi settings, although very rare, there are reports of it not working good with some TV brands/models implementations.

                        1 Reply Last reply Reply Quote 0
                        • soggypeteS
                          soggypete
                          last edited by

                          Thanks for having a look at it @Rascas

                          It happens every time, and also if I press stop on a video.

                          I will try a different HDMI to check but I'm 100% it is not that as there is still sound (the clicking of menu items) in the background and then when I load another video from the kodi remote app the video (with audio and sound) loads instantly.

                          Someone else suggested it may be skin related (which I guess as the skin menu is not "showing" after the video ends, it could be) so testing it with another skin loaded may be the next avenue.

                          Really odd that nothing shows in the debug log.

                          I will also try disabling CEC.

                          I have another rpi3 running kodi on osmc - exactly the same skin and settings, and no issues, so it leads me to think it's a clash somehow with retropie? Is there a way to roll back the version of kodi to 17.2 or something?

                          1 Reply Last reply Reply Quote 0
                          • RascasR
                            Rascas
                            last edited by Rascas

                            You can downgrade kodi version, but I am almost sure that it won't solve your problem with your current setup. I am saying this because I never had a report of something like that, either on plain Raspbian, RetroPie or PiPplware. There was some reports of something similar in the past and they were related to what I explained to you before, like HDMI cable, the TV model because of CEC and such.
                            Another thing, did you change something in the way Kodi is started ? Like creating a separate menu in ES or something ? Running a "unofficial" ES version etc ?
                            Can you try exiting Emulation Station to terminal and starting Kodi from there ?
                            Running Kodi on the RPi can be a bit tricky, because nothing else can use some hardware resources at the same time while you are running Kodi, like the hardware video decoders, CEC, and such, otherwise it can cause problems like that.

                            1 Reply Last reply Reply Quote 0
                            • soggypeteS
                              soggypete
                              last edited by

                              Tried changing the CEC settings and resolution, same problem.
                              Tried the pi on a different TV, same problem.

                              Kodi is autostarted in retropie. There is a separate menu in emulationstation for it - I followed a straight forward guide to do this - has this been known to cause issues before? My next thing to do is to check what happens if I what..disable this from being accessible in the emulationstation menu?

                              Could there be any problem with mySQL database affecting it perhaps?

                              RascasR 1 Reply Last reply Reply Quote 0
                              • RascasR
                                Rascas @soggypete
                                last edited by Rascas

                                @sphirst dont think so, I also have a mysql database on my pi's and it works fine. Making a separete menu for Kodi might be the cause of your problem. Which "straight forward" guide did you follow ? Did you tried with cec disabled in kodi? Have you tried launching kodi from terminal?

                                1 Reply Last reply Reply Quote 0
                                • W
                                  worldofjay
                                  last edited by

                                  @SPHIRST - Did you ever solve this issue? I'm having the exact same problem without much luck in finding info online!

                                  RascasR 1 Reply Last reply Reply Quote 0
                                  • RascasR
                                    Rascas @worldofjay
                                    last edited by

                                    @worldofjay Did you tried what I mentioned above? Did you made any special modification how Kodi launches like creating a dedicated menu? The way that is explained in the wiki was made by a unknown user and it is not recommended like it is.
                                    You have to explain your setup otherwise we wont be able to help you.

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      ddgfras
                                      last edited by

                                      I'm getting exactly this happening now, after months of perfect function, it's lost the CEC control as well.

                                      1 Reply Last reply Reply Quote 0
                                      • RascasR
                                        Rascas
                                        last edited by Rascas

                                        Ppl, just complaining won't get things fixed, this is something caused by some specific user configuration, because it doesn't happen on a clean install. You have to provide more information about your setup and logs so we can help you.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          DarKgrOoVe
                                          last edited by

                                          Hi, i have the same problem, but i discovered that if you run Kodi from EmulationStation it runs without that bug. Only happens when the autostart in Retropie is configured "start kodi at boot".
                                          Exit from kodi and try todo start from ports. If works, i think its a autostart script problem... Permissions maybe?
                                          Good luck.

                                          RascasR 1 Reply Last reply Reply Quote 0
                                          • RascasR
                                            Rascas @DarKgrOoVe
                                            last edited by

                                            @darkgroove Please post the information asked here:
                                            https://retropie.org.uk/forum/topic/3/read-this-first
                                            And also a full Kodi debug log:
                                            http://kodi.wiki/view/Log_file

                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.