{"action":"created","issue":{"url":"https://api.github.com/repos/caprica/vlcj/issues/477","repository_url":"https://api.github.com/repos/caprica/vlcj","labels_url":"https://api.github.com/repos/caprica/vlcj/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/caprica/vlcj/issues/477/comments","events_url":"https://api.github.com/repos/caprica/vlcj/issues/477/events","html_url":"https://github.com/caprica/vlcj/issues/477","id":133964364,"number":477,"title":"Crash when clicking on Frame","user":{"login":"info-gmbh","id":16916426,"avatar_url":"https://avatars.githubusercontent.com/u/16916426?v=3","gravatar_id":"","url":"https://api.github.com/users/info-gmbh","html_url":"https://github.com/info-gmbh","followers_url":"https://api.github.com/users/info-gmbh/followers","following_url":"https://api.github.com/users/info-gmbh/following{/other_user}","gists_url":"https://api.github.com/users/info-gmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/info-gmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/info-gmbh/subscriptions","organizations_url":"https://api.github.com/users/info-gmbh/orgs","repos_url":"https://api.github.com/users/info-gmbh/repos","events_url":"https://api.github.com/users/info-gmbh/events{/privacy}","received_events_url":"https://api.github.com/users/info-gmbh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caprica/vlcj/labels/Support","name":"Support","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-16T12:06:55Z","updated_at":"2016-05-09T10:45:11Z","closed_at":"2016-05-09T10:45:11Z","body":"I don't know if it is a bug, but when I click on an empty ``Frame`` (not ``JFrame``) then it is crashing, if the ``MediaPlayerFactory`` has been created also in the code. Without ``MediaPlayerFactory`` I don't get a crash. The Code I tried is:\r\n```\r\npublic class FrameTest {\r\n\tprivate Frame mFrame;\r\n\tprivate MediaPlayerFactory mMediaPlayerFactory;\r\n\r\n\tpublic FrameTest () {\r\n\t\tthis.mFrame = new Frame(\"MyFrame\");\r\n\t\tthis.mFrame.setSize(400, 200);\r\n\t\tthis.mFrame.setLocation(100, 100);\r\n\t\t\r\n\t\tString[] libVlcArgs = {\"-vvv\"};\r\n\t\tthis.mMediaPlayerFactory = new MediaPlayerFactory(libVlcArgs);\r\n\t\t// without the line above the app does not crash\r\n\t\t\r\n\t\tthis.mFrame.setVisible(true);\r\n\t}\r\n\r\n\t/**\r\n\t * @param args\r\n\t */\r\n\tpublic static void main(String[] args) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n            @Override\r\n            public void run() {\r\n            \tnew FrameTest();\r\n            }\r\n        });\r\n\t}\r\n}\r\n```\r\nWhen I change ``Frame`` to ``JFrame`` then everything is ok.\r\n\r\nOS: Linux Mint 17.2 Rafaela 64-bit, Kernel Linux 3.16.0-38-generic x86_64\r\nJVM: 1.8\r\nVLC: 2.2.1\r\nVLCJ: 3.3.0\r\n\r\nHere is the console output:\r\n```\r\n0    DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - Trying workaround for Java7+ on Linux\r\n1    DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - Attempting to load jawt...\r\n1    DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - ...loaded jawt\r\n1    DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - Java7 on Linux workaround complete.\r\n47   INFO  [AWT-EventQueue-0]               uk.co.caprica.vlcj.Info     - vlcj: 3.3.0\r\n47   INFO  [AWT-EventQueue-0]               uk.co.caprica.vlcj.Info     - java: 1.8.0_72 Oracle Corporation\r\n47   INFO  [AWT-EventQueue-0]               uk.co.caprica.vlcj.Info     - java home: /usr/lib/jvm/jdk1.8.0_72/jre\r\n48   INFO  [AWT-EventQueue-0]               uk.co.caprica.vlcj.Info     - os: Linux 3.16.0-38-generic amd64\r\n92   INFO  [AWT-EventQueue-0] uk.co.caprica.vlcj.binding.LibVlcFactory     - vlc: 2.2.1 Terry Pratchett (Weatherwax), changeset 2.2.1~trusty1\r\n92   INFO  [AWT-EventQueue-0] uk.co.caprica.vlcj.binding.LibVlcFactory     - libvlc: /usr/lib/libvlc.so.5.5.0\r\n92   DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - MediaPlayerFactory(libvlc=Proxy interface to Native Library </usr/lib/libvlc.so.5.5.0@139826151393696>,libvlcArgs=[-vvv])\r\n93   DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - jna.library.path=null\r\n93   DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - VLC_PLUGIN_PATH=null\r\n[00007f2bd010c4e8] core libvlc debug: VLC media player - 2.2.1 Terry Pratchett (Weatherwax)\r\n[00007f2bd010c4e8] core libvlc debug: Copyright © 1996-2015 the VideoLAN team\r\n[00007f2bd010c4e8] core libvlc debug: revision 2.2.1~trusty1\r\n[00007f2bd010c4e8] core libvlc debug: configured with ./configure  '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-dependency-tracking' '--build=x86_64-linux-gnu' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fdkaac' '--enable-fluidsynth' '--enable-freerdp' '--enable-freetype' '--enable-fribidi' '--enable-gles1' '--enable-gles2' '--enable-glx' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcdx' '--enable-vnc' '--enable-vorbis' '--enable-vpx' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-libtar' '--disable-mfx' '--disable-opencv' '--disable-projectm' '--disable-sndio' '--disable-svgdec' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-oss' '--enable-vcd' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'\r\n[00007f2bd010c4e8] core libvlc debug: searching plug-in modules\r\n[00007f2bd010c4e8] core libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat\r\n[00007f2bd010c4e8] core libvlc debug: recursively browsing `/usr/lib/vlc/plugins'\r\n[00007f2bd010c4e8] core libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat\r\n[00007f2bd010c4e8] core libvlc debug: plug-ins loaded: 453 modules\r\n[00007f2bd010c4e8] core libvlc debug: translation test: code is \"de\"\r\n[00007f2bd010c4e8] core libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX FPU \r\n150  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - instance=native@0x7f2bd010be30 (uk.co.caprica.vlcj.binding.internal.libvlc_instance_t@d0113d5b)\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - equalizerAvailable=true\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - createEqualizerBandFrequencies()\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - numBands=10\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - result=[31.25, 62.5, 125.0, 250.0, 500.0, 1000.0, 2000.0, 4000.0, 8000.0, 16000.0]\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - createEqualizerPresetNames()\r\n151  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - numPresets=18\r\n152  DEBUG [AWT-EventQueue-0] uk.co.caprica.vlcj.player.MediaPlayerFactory     - result=[Flat, Classical, Club, Dance, Full bass, Full bass and treble, Full treble, Headphones, Large Hall, Live, Party, Pop, Reggae, Rock, Ska, Soft, Soft rock, Techno]\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x00007f2c3753b414, pid=16883, tid=139826525177600\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (8.0_72-b15) (build 1.8.0_72-b15)\r\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.72-b15 mixed mode linux-amd64 compressed oops)\r\n# Problematic frame:\r\n# C  [libpthread.so.0+0xa414]  pthread_mutex_lock+0x4\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n#\r\n# An error report file with more information is saved as:\r\n# /home/USERNAME/workspaceJAVA/MYPROJECT/hs_err_pid16883.log\r\n#\r\n# If you would like to submit a bug report, please visit:\r\n#   http://bugreport.java.com/bugreport/crash.jsp\r\n# The crash happened outside the Java Virtual Machine in native code.\r\n# See problematic frame for where to report the bug.\r\n```\r\n\r\nAnd here is a part of the log, the rest is attached:\r\n```\r\nJava frames: (J=compiled Java code, j=interpreted, Vv=VM code)\r\nj  sun.awt.X11.XlibWrapper.XGetDefault(JLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0\r\nj  sun.awt.X11.XToolkit.initializeMultiClickTime()V+12\r\nj  sun.awt.X11.XToolkit.getMultiClickTime()I+6\r\nj  sun.awt.X11.XWindow.handleButtonPressRelease(Lsun/awt/X11/XEvent;)V+266\r\nj  sun.awt.X11.XContentWindow.handleButtonPressRelease(Lsun/awt/X11/XEvent;)V+2\r\nj  sun.awt.X11.XBaseWindow.dispatchEvent(Lsun/awt/X11/XEvent;)V+206\r\nj  sun.awt.X11.XBaseWindow.dispatchToWindow(Lsun/awt/X11/XEvent;)V+40\r\nj  sun.awt.X11.XToolkit.dispatchEvent(Lsun/awt/X11/XEvent;)V+70\r\nj  sun.awt.X11.XToolkit.run(Z)V+367\r\nj  sun.awt.X11.XToolkit.run()V+5\r\nj  java.lang.Thread.run()V+11\r\nv  ~StubRoutines::call_stub\r\n```\r\n[hs_err_pid16883.txt](https://github.com/caprica/vlcj/files/132394/hs_err_pid16883.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/caprica/vlcj/issues/comments/217832838","html_url":"https://github.com/caprica/vlcj/issues/477#issuecomment-217832838","issue_url":"https://api.github.com/repos/caprica/vlcj/issues/477","id":217832838,"user":{"login":"caprica","id":1385879,"avatar_url":"https://avatars.githubusercontent.com/u/1385879?v=3","gravatar_id":"","url":"https://api.github.com/users/caprica","html_url":"https://github.com/caprica","followers_url":"https://api.github.com/users/caprica/followers","following_url":"https://api.github.com/users/caprica/following{/other_user}","gists_url":"https://api.github.com/users/caprica/gists{/gist_id}","starred_url":"https://api.github.com/users/caprica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caprica/subscriptions","organizations_url":"https://api.github.com/users/caprica/orgs","repos_url":"https://api.github.com/users/caprica/repos","events_url":"https://api.github.com/users/caprica/events{/privacy}","received_events_url":"https://api.github.com/users/caprica/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T10:45:11Z","updated_at":"2016-05-09T10:45:11Z","body":"> The code I provided above IS the whole application. The Frame appears. It contains nothing (as defined), but crashes when I click on the Frame surface.\r\n\r\nIt crashes when you click the surface? That makes no sense to me at all. I could understand *maybe* it crashing because of the media player factory creation, but the mouse click being the crash trigger... I really don't know."}}