IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.87k stars 367 forks source link

Segmentation fault, Qt 5.12.1 #166

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello. I am getting segmentation fault when I try to build YUView on my system which has QT 5.12.1. Could you please help me in solving this.

nolyn commented 5 years ago

Hi. I do not have any problem building with Qt 5.12.1-2 on Arch Linux using the master branch

ghost commented 5 years ago

Hi,

After building were you able to open hevc stream contained in .mp4 container?

Regards Vj

On Thu, Feb 21, 2019, 2:37 AM Johannes Sauer notifications@github.com wrote:

Hi. I do not have any problem building with Qt 5.12.1-2 on Arch Linux using the master branch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IENT/YUView/issues/166#issuecomment-465929555, or mute the thread https://github.com/notifications/unsubscribe-auth/AKeTlsVvycGU1mx3kEsnJZcA1h_B3Y8Jks5vPmjbgaJpZM4bGlYm .

ChristianFeldmann commented 5 years ago

In order to open mp4 containers you will need to have ffmpeg installed (and possibly set tell YUView where the ffmpeg libraries are). When does the segemntation fault occur? When opening the hevc file? You could try to used the development branch which has some non-released fixes.

ghost commented 5 years ago

Hello I am trying to build YUView using QtCreator. I was successful in building it and running it (release mode) for mp4 files that have X264 stream. I am experiencing crash only for mp4 files with HEVC streams alone.

I am giving out put of QtCreator in case this has more information.

qt5ct: using qt5ct plugin

qt5ct: D-Bus global menu: no

QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://api.github.com/repos/IENT/YUView/commits")

ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 pid=5185 comm="YUView" exe="/home/vj/Dropbox/Marios_Shared/PhD/slignshot/YUView_Lin/build-YUView-SystemGCC_x64-Release/build/release/YUView" sig=11 res=1

13:20:56: The program has unexpectedly finished.

13:20:56: The process was ended forcefully.

13:20:56: /home/vj/Dropbox/Marios_Shared/PhD/slignshot/YUView_Lin/build-YUView-SystemGCC_x64-Release/build/release/YUView crashed.

On Thu, Feb 21, 2019 at 12:10 PM Christian notifications@github.com wrote:

In order to open mp4 containers you will need to have ffmpeg installed (and possibly set tell YUView where the ffmpeg libraries are). When does the segemntation fault occur? When opening the hevc file? You could try to used the development branch which has some non-released fixes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IENT/YUView/issues/166#issuecomment-466126899, or mute the thread https://github.com/notifications/unsubscribe-auth/AKeTljLAdg9A-ULCHiuPwX77gJukjOkKks5vPu8MgaJpZM4bGlYm .

nolyn commented 5 years ago

I can open and playback hevc streams contained in mp4 containers.

ChristianFeldmann commented 5 years ago

From your comments I see that you are on Linux. What YUView branch did you checkout? If you did not try this yet, you can give the development branch a try. The problem can arise if the libde265 decoder (which is the default HEVC decoder) is not installed / can not be found. In the YUView settings you can set a manual path to the libde265.so file (you can download a precompiled version from here. Alternatively you can try to set the default HEVC decoder to use ffmpeg.

ghost commented 5 years ago

Hello,

I compiled libde265 from source and now I have the Release working. Thanks for all the support.

PS: I had to add 2 more header files to get YUView running on Debian Streatch. It has Qt 5.7 with gcc 6.3.0.

  1. include

    a. parserCommon.cpp b.

  2. include

    a. playlistItemImageFile.cpp b. playlistItemImageFileSequence.cpp c. playlistItemStatisticsFile.cpp

I am still trying to get compilation work with Windows using Qt-Creator.

Regards Vj

On Fri, Feb 22, 2019 at 3:49 AM Christian notifications@github.com wrote:

From your comments I see that you are on Linux. What YUView branch did you checkout? If you did not try this yet, you can give the development branch a try. The problem can arise if the libde265 decoder (which is the default HEVC decoder) is not installed / can not be found. In the YUView settings you can set a manual path to the libde265.so file (you can download a precompiled version from here https://github.com/ChristianFeldmann/libde265/releases. Alternatively you can try to set the default HEVC decoder to use ffmpeg.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IENT/YUView/issues/166#issuecomment-466356412, or mute the thread https://github.com/notifications/unsubscribe-auth/AKeTlhAJdqnwRkfKuXIVnMXKiVcavV33ks5vP8tLgaJpZM4bGlYm .

ChristianFeldmann commented 5 years ago

Ok nice to hear that it seems to be working now. Also nice to hear that it compiles with Qt 5.7. as well. Did you also try the precompiled libde265 libraries as well? Since libde265 has no external dependencies this should work on any x64 platform out of the box. I just tested Qt.5.12.1 on windows and everything compiles as expected. I guess we can close this issue then.

ghost commented 5 years ago

HI yes

I was able to compile in Windows also. My major problem is that I have anaconda installed and it is set as the major qt environment in windows.

It took me some time to figure it out but now I get it working in release with visual studio 2015.

Thank you for your support.

Also is there any channel that I can join where I can ask questions about YUView? I would like to use the source code for my research.

Regards Vj

On Mon, Feb 25, 2019 at 2:09 AM Christian notifications@github.com wrote:

Ok nice to hear that it seems to be working now. Also nice to hear that it compiles with Qt 5.7. as well. Did you also try the precompiled libde265 libraries as well? Since libde265 has no external dependencies this should work on any x64 platform out of the box. I just tested Qt.5.12.1 on windows and everything compiles as expected. I guess we can close this issue then.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IENT/YUView/issues/166#issuecomment-466929828, or mute the thread https://github.com/notifications/unsubscribe-auth/AKeTlnELGbkwC3CsG7tWCpET2xkhczgeks5vQ6hDgaJpZM4bGlYm .

ChristianFeldmann commented 5 years ago

:+1: