{"action":"opened","issue":{"url":"https://api.github.com/repos/mltframework/mlt/issues/108","repository_url":"https://api.github.com/repos/mltframework/mlt","labels_url":"https://api.github.com/repos/mltframework/mlt/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/mltframework/mlt/issues/108/comments","events_url":"https://api.github.com/repos/mltframework/mlt/issues/108/events","html_url":"https://github.com/mltframework/mlt/issues/108","id":146104627,"number":108,"title":"Segmentation fault when using both webvfx and audiowaveform","user":{"login":"geoffroymontel","id":352910,"avatar_url":"https://avatars.githubusercontent.com/u/352910?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffroymontel","html_url":"https://github.com/geoffroymontel","followers_url":"https://api.github.com/users/geoffroymontel/followers","following_url":"https://api.github.com/users/geoffroymontel/following{/other_user}","gists_url":"https://api.github.com/users/geoffroymontel/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffroymontel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffroymontel/subscriptions","organizations_url":"https://api.github.com/users/geoffroymontel/orgs","repos_url":"https://api.github.com/users/geoffroymontel/repos","events_url":"https://api.github.com/users/geoffroymontel/events{/privacy}","received_events_url":"https://api.github.com/users/geoffroymontel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T20:48:31Z","updated_at":"2016-04-05T20:48:31Z","closed_at":null,"body":"Dear Dan,\r\n\r\nI'm getting a crash when using both webvfx and audiowaveform on the same project.\r\n\r\nI'm running melt freshly compiled from master branch. The same happens with v6.0.0.\r\n\r\n## Crash with webvfx and audiowaveform\r\n\r\nwaveform.xml \r\n\r\n```xml\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<mlt LC_NUMERIC=\"en_US.UTF-8\">\r\n  <profile width=\"640\" height=\"360\" display_aspect_den=\"9\" display_aspect_num=\"16\" sample_aspect_num=\"1\" sample_aspect_den=\"1\"/>\r\n  <!-- sources -->\r\n  <producer id=\"test_video\">\r\n    <property name=\"resource\">../melt-tests/penguin.mp4</property>\r\n  </producer>\r\n  <producer id=\"music\">\r\n    <property name=\"resource\">test_track.mp3</property>\r\n  </producer>\r\n  <producer id=\"title\">\r\n    <property name=\"mlt_service\">webvfx</property>\r\n    <property name=\"resource\">plain:title.html</property>\r\n    <property name=\"transparent\">1</property>\r\n  </producer>\r\n\r\n  <!-- tracks -->\r\n  <tractor id=\"folder_fx\">\r\n    <multitrack>\r\n      <tractor id=\"folder\">\r\n        <multitrack>\r\n          <tractor id=\"video_track\">\r\n            <multitrack>\r\n              <tractor id=\"track\">\r\n                <playlist id=\"track_pl\">\r\n                  <entry producer=\"title\" in=\"0\" out=\"100\"/>\r\n                  <entry producer=\"test_video\" in=\"0\" out=\"91\"/>\r\n                </playlist>\r\n              </tractor>\r\n            </multitrack>\r\n          </tractor>\r\n          <playlist id=\"music_track\">\r\n            <entry producer=\"music\" in=\"0\" out=\"191\" />\r\n          </playlist>\r\n        </multitrack>\r\n        <!-- transitions -->\r\n      </tractor>\r\n    </multitrack>\r\n    <!-- effects -->\r\n    <filter id=\"audiowaveform\">\r\n      <property name=\"mlt_service\">audiowaveform</property>\r\n      <property name=\"show_channel\">1</property>\r\n      <property name=\"rect\">0,20%,100%,60%</property>\r\n      <property name=\"color.1\">0xffffff80</property>\r\n      <property name=\"thickness\">4</property>\r\n    </filter>\r\n  </tractor>\r\n</mlt>\r\n```\r\n\r\n```bash\r\n$ DISPLAY=:1.0 melt waveform.xml -progress -consumer avformat:waveform.mp4 strict=experimental\r\nWARNING: QApplication was not created in the main() thread.\r\n\r\n(process:16102): GLib-CRITICAL **: g_main_context_push_thread_default: assertion 'acquired_context' failed\r\nSegmentation fault (core dumped)\r\n```\r\n\r\n## No crash with audiowaveform and no webvfx\r\n\r\nwaveform.xml\r\n\r\n```xml\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<mlt LC_NUMERIC=\"en_US.UTF-8\">\r\n  <profile width=\"640\" height=\"360\" display_aspect_den=\"9\" display_aspect_num=\"16\" sample_aspect_num=\"1\" sample_aspect_den=\"1\"/>\r\n  <!-- sources -->\r\n  <producer id=\"test_video\">\r\n    <property name=\"resource\">../melt-tests/penguin.mp4</property>\r\n  </producer>\r\n  <producer id=\"music\">\r\n    <property name=\"resource\">test_track.mp3</property>\r\n  </producer>\r\n  <!-- <producer id=\"title\">\r\n    <property name=\"mlt_service\">webvfx</property>\r\n    <property name=\"resource\">plain:title.html</property>\r\n    <property name=\"transparent\">1</property>\r\n  </producer> -->\r\n\r\n  <!-- tracks -->\r\n  <tractor id=\"folder_fx\">\r\n    <multitrack>\r\n      <tractor id=\"folder\">\r\n        <multitrack>\r\n          <tractor id=\"video_track\">\r\n            <multitrack>\r\n              <tractor id=\"track\">\r\n                <playlist id=\"track_pl\">\r\n                  <entry producer=\"test_video\" in=\"0\" out=\"100\"/>\r\n                  <entry producer=\"test_video\" in=\"0\" out=\"91\"/>\r\n                </playlist>\r\n              </tractor>\r\n            </multitrack>\r\n          </tractor>\r\n          <playlist id=\"music_track\">\r\n            <entry producer=\"music\" in=\"0\" out=\"191\" />\r\n          </playlist>\r\n        </multitrack>\r\n        <!-- transitions -->\r\n      </tractor>\r\n    </multitrack>\r\n    <!-- effects -->\r\n    <filter id=\"audiowaveform\">\r\n      <property name=\"mlt_service\">audiowaveform</property>\r\n      <property name=\"show_channel\">1</property>\r\n      <property name=\"rect\">0,20%,100%,60%</property>\r\n      <property name=\"color.1\">0xffffff80</property>\r\n      <property name=\"thickness\">4</property>\r\n    </filter>\r\n  </tractor>\r\n</mlt>\r\n```\r\n\r\n```bash\r\n$ DISPLAY=:1.0 melt waveform.xml -progress -consumer avformat:waveform.mp4 strict=experimental\r\n[filter audiowaveform] Audio not preprocessed. Potential audio distortion.\r\nCurrent Frame:        192, percentage:         99\r\n```\r\n\r\n## No crash with webvfx and no audiowaveform\r\n\r\nwaveform.xml\r\n```xml\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<mlt LC_NUMERIC=\"en_US.UTF-8\">\r\n  <profile width=\"640\" height=\"360\" display_aspect_den=\"9\" display_aspect_num=\"16\" sample_aspect_num=\"1\" sample_aspect_den=\"1\"/>\r\n  <!-- sources -->\r\n  <producer id=\"test_video\">\r\n    <property name=\"resource\">../melt-tests/penguin.mp4</property>\r\n  </producer>\r\n  <producer id=\"music\">\r\n    <property name=\"resource\">test_track.mp3</property>\r\n  </producer>\r\n  <producer id=\"title\">\r\n    <property name=\"mlt_service\">webvfx</property>\r\n    <property name=\"resource\">plain:title.html</property>\r\n    <property name=\"transparent\">1</property>\r\n  </producer>\r\n\r\n  <!-- tracks -->\r\n  <tractor id=\"folder_fx\">\r\n    <multitrack>\r\n      <tractor id=\"folder\">\r\n        <multitrack>\r\n          <tractor id=\"video_track\">\r\n            <multitrack>\r\n              <tractor id=\"track\">\r\n                <playlist id=\"track_pl\">\r\n                  <entry producer=\"title\" in=\"0\" out=\"100\"/>\r\n                  <entry producer=\"test_video\" in=\"0\" out=\"91\"/>\r\n                </playlist>\r\n              </tractor>\r\n            </multitrack>\r\n          </tractor>\r\n          <playlist id=\"music_track\">\r\n            <entry producer=\"music\" in=\"0\" out=\"191\" />\r\n          </playlist>\r\n        </multitrack>\r\n        <!-- transitions -->\r\n      </tractor>\r\n    </multitrack>\r\n    <!-- effects -->\r\n    <!-- <filter id=\"audiowaveform\">\r\n      <property name=\"mlt_service\">audiowaveform</property>\r\n      <property name=\"show_channel\">1</property>\r\n      <property name=\"rect\">0,20%,100%,60%</property>\r\n      <property name=\"color.1\">0xffffff80</property>\r\n      <property name=\"thickness\">4</property>\r\n    </filter> -->\r\n  </tractor>\r\n</mlt>\r\n```\r\n\r\n```bash\r\n$ DISPLAY=:1.0 melt waveform.xml -progress -consumer avformat:waveform.mp4 strict=experimental\r\nWARNING: QApplication was not created in the main() thread.\r\n[libx264 @ 0x7f7c6c0c7a80] interlace + weightp is not implemented\r\nCurrent Frame:        192, percentage:         99\r\n```\r\n\r\ntest.html\r\n\r\n```html\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n  <h1 style=\"color: #FFF;\">TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST</h1>\r\n</body>\r\n```\r\n\r\nMany thanks in advance for your help !!\r\n\r\nAll the best\r\n\r\nGeoffroy"}}