{"action":"opened","issue":{"url":"https://api.github.com/repos/carlonluca/pi/issues/35","labels_url":"https://api.github.com/repos/carlonluca/pi/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/carlonluca/pi/issues/35/comments","events_url":"https://api.github.com/repos/carlonluca/pi/issues/35/events","html_url":"https://github.com/carlonluca/pi/issues/35","id":107170467,"number":35,"title":"Crash on cross compiling - V5.0.0 beta 2","user":{"login":"sinadogru","id":10652768,"avatar_url":"https://avatars.githubusercontent.com/u/10652768?v=3","gravatar_id":"","url":"https://api.github.com/users/sinadogru","html_url":"https://github.com/sinadogru","followers_url":"https://api.github.com/users/sinadogru/followers","following_url":"https://api.github.com/users/sinadogru/following{/other_user}","gists_url":"https://api.github.com/users/sinadogru/gists{/gist_id}","starred_url":"https://api.github.com/users/sinadogru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinadogru/subscriptions","organizations_url":"https://api.github.com/users/sinadogru/orgs","repos_url":"https://api.github.com/users/sinadogru/repos","events_url":"https://api.github.com/users/sinadogru/events{/privacy}","received_events_url":"https://api.github.com/users/sinadogru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-18T09:44:01Z","updated_at":"2015-09-18T09:44:01Z","closed_at":null,"body":"Hello,\r\n\r\nI am actually do not sure if this is a bug or not but I would try to explain my situation. \r\n\r\nI was using POT 4.5.1 with cross compiling. Everything was great but I had some issues and those was resolved on V5.0.0. So I wanted to try it. I have clean whole POT 4.5.1 from my host and build new SD card with POT 5.0.0 binaries like i did for 4.5.1. \r\n\r\nI setted up host computer same as I did before.\r\n\r\nFirst of all I tested rpi with sample qml codes with qmlscene and with pocplayer. Those was perfectly working. Then I come back to my host computer to cross compile my previous project from 4.5.1 but suddenly it just crashes like 1 second later after the application start to run. \r\n\r\nSo I decided to go back to 4.5.1 to understand if my procedure was wrong but it was working perfectly. \r\n\r\nHere is the application output,\r\n\r\nstdin: is not a tty\r\nQML debugging is enabled. Only use this in a safe environment.\r\nUnable to query physical screen size, defaulting to 100 dpi.\r\nTo override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).\r\n09:31:52.413 VERBOSE: Instantiating player service...\r\n09:31:52.414 VERBOSE: Instantiating QMediaService...\r\n09:31:52.414 VERBOSE: Using deinterlace mode: 0.\r\n09:31:52.415 VERBOSE: Using deinterlace mode: 0.\r\n09:31:52.416 INFORMATION: POT build Aug 27 2015 21:25:04.\r\n09:31:52.419 INFORMATION: Initializing GPU context in media processor...\r\n09:31:52.419 INFORMATION: Initializing buffer provider...\r\n09:31:52.419 VERBOSE: Metadata update requested.\r\n09:31:52.419 ERROR: Failed to get shared OGL context. Please enable it with the proper attr.\r\nRequesting control for org.qt-project.qt.metadatareadercontrol/5.0...\r\nRequesting control for org.qt-project.qt.mediaavailabilitycontrol/5.0...\r\nRequesting control for org.qt-project.qt.mediaplayercontrol/5.0...\r\nRequesting control for org.qt-project.qt.medianetworkaccesscontrol/5.0...\r\n09:31:52.422 VERBOSE: Entering: bool OMX_MediaProcessor::playInt().\r\nRequesting control for org.qt-project.qt.videorenderercontrol/5.0...\r\nQDeclarativeAudio::itemChange\r\nQMediaPlayer::onItemChanged\r\n09:31:52.430 VERBOSE: Entering: bool OMX_MediaProcessor::stopInt().\r\n09:31:52.430 VERBOSE: Entering: bool OMX_MediaProcessor::setFilenameInt(QString).\r\n09:31:52.430 VERBOSE: Opening file:///home/pi/Videos/SampleVideo_1080x720_2mb.mp4...\r\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pi/Videos/SampleVideo_1080x720_2mb.mp4':\r\n  Metadata:\r\n    major_brand     : isom\r\n    minor_version   : 512\r\n    compatible_brands: isomiso2avc1mp41\r\n    creation_time   : 1970-01-01 00:00:00\r\n    encoder         : Lavf53.24.2\r\n  Duration: 00:00:13.50, start: 0.000000, bitrate: 1248 kb/s\r\n    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 862 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\r\n    Metadata:\r\n      creation_time   : 1970-01-01 00:00:00\r\n      handler_name    : VideoHandler\r\n    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 381 kb/s (default)\r\n    Metadata:\r\n      creation_time   : 1970-01-01 00:00:00\r\n      handler_name    : SoundHandler\r\nQDeclarativeAudio::itemChange\r\nQMediaPlayer::onItemChanged\r\n09:31:52.649 VERBOSE: Copy metatada...\r\n09:31:52.649 VERBOSE: MetaData\r\n09:31:52.649 VERBOSE: Key: major_brand, Value: isom.\r\n09:31:52.650 VERBOSE: Key: minor_version, Value: 512.\r\n09:31:52.650 VERBOSE: Key: compatible_brands, Value: isomiso2avc1mp41.\r\n09:31:52.650 VERBOSE: Key: creation_time, Value: 1970-01-01 00:00:00.\r\n09:31:52.650 VERBOSE: Key: encoder, Value: Lavf53.24.2.\r\n09:31:52.650 VERBOSE: Initializing OMX clock...\r\n09:31:52.651 VERBOSE: Metadata update requested.\r\n09:31:52.656 VERBOSE: Opening video using OMX...\r\n09:31:52.656 VERBOSE: Using deinterlace mode: 0.\r\n09:31:52.657 VERBOSE: Generating texture of size (1280, 720).\r\n09:31:52.657 INFORMATION: Instantiating texture data...\r\n09:31:52.657 INFORMATION: Creating EGLImageKHR...\r\n09:31:52.657 VERBOSE: EGL image 0 created...\r\n09:31:52.657 INFORMATION: Instantiating texture data...\r\n09:31:52.658 INFORMATION: Creating EGLImageKHR...\r\n09:31:52.658 VERBOSE: EGL image 0 created...\r\neglCreateImageKHR:  failed to create image for buffer (nil) target 12465 error 0x3008\r\n09:31:52.657 ERROR: Failed to create KHR image: 12296.\r\neglCreateImageKHR:  failed to create image for buffer (nil) target 12465 error 0x3008\r\n09:31:52.658 ERROR: Failed to create KHR image: 12296.\r\n09:31:52.658 INFORMATION: Instantiating texture data...\r\n09:31:52.658 INFORMATION: Creating EGLImageKHR...\r\n09:31:52.658 VERBOSE: EGL image 0 created...\r\n09:31:52.658 INFORMATION: Instantiating texture data...\r\n09:31:52.658 INFORMATION: Creating EGLImageKHR...\r\n09:31:52.658 VERBOSE: EGL image 0 created...\r\n09:31:52.659 VERBOSE: Setting up for new textures...\r\n09:31:52.659 WARNING: Couldn't get a valid texture.\r\nVideo codec omx-h264 width 1280 height 720 profile 77 fps 25.000000\r\n09:31:52.681 VERBOSE: Opening audio using OMX...\r\n09:31:52.681 VERBOSE: Using omx:hdmi output device...\r\neglCreateImageKHR:  failed to create image for buffer (nil) target 12465 error 0x3008\r\n09:31:52.658 ERROR: Failed to create KHR image: 12296.\r\neglCreateImageKHR:  failed to create image for buffer (nil) target 12465 error 0x3008\r\n09:31:52.658 ERROR: Failed to create KHR image: 12296.\r\nAudio codec aac channels 6 samplerate 48000 bitspersample 16\r\n09:31:52.721 VERBOSE: State changing from STATE_INACTIVE to STATE_STOPPED...\r\n09:31:52.721 VERBOSE: Entering: bool OMX_MediaProcessor::playInt().\r\n09:31:52.721 VERBOSE: State changing from STATE_STOPPED to STATE_PLAYING...\r\n09:31:52.723 VERBOSE: Starting thread.\r\n09:31:52.723 VERBOSE: Entering: bool OMX_MediaProcessor::playInt().\r\n09:31:52.724 VERBOSE: Decoding thread started.\r\nV:PortSettingsChanged: 1280x720@25.00 interlace:0 deinterlace:0 anaglyph:0 par:inf layer:0 alpha:255\r\n09:31:52.767 VERBOSE: Creating buffers for 4 images.\r\nbash: line 1:  2813 Segmentation fault      DISPLAY=':0.0' /opt/Piomx5002/bin/Piomx5002\r\nApplication finished with exit code 139.\r\n\r\nAnd here is my main.qml:\r\n\r\nimport QtQuick 2.0\r\nimport QtMultimedia 5.0\r\n\r\nItem {\r\n    width: 480; height: 320\r\n\r\n    MediaPlayer {\r\n        id: player\r\n        source: \"file:///home/pi/Videos/SampleVideo_1080x720_2mb.mp4\"\r\n        autoPlay: true\r\n        onStopped: { player.seek(0); player.play(); }\r\n    }\r\n\r\n    VideoOutput {\r\n        id: video\r\n        anchors.fill: parent\r\n        source: player\r\n        fillMode: VideoOutput.Stretch\r\n    }\r\n\r\n    Component.onCompleted: {\r\n        player.play();\r\n    }\r\n}\r\n\r\nWell also, if I copy this main.qml and run with qmlscene it is also working with 5.0.0 build.\r\n\r\nAlso it might help to solve the problem, QtCreator editor underline \"import QtMultimedia 5.0\" and if I mouseover it, it says;\r\n\r\n\"Errors while reading typeinfo files: Cannot open /opt/rpi/sysroot/usr/local/Qt-rasp2-5.5.0/qml/QtMultimedia/plugins.qmltypes for reading: No such a file or directory\"\r\n\r\nBut there is plugins.qmltypes file.\r\n\r\nThank you,\r\nSina"}}