Kalyzee / react-native-gstreamer

React native Gstreamer Ios / Android.
49 stars 20 forks source link

Memory leak / crash on iOS (both simulator and devices) #11

Closed snoyiatk closed 6 years ago

snoyiatk commented 6 years ago

With simple setup (react-native init & install react-native-gstreamer), follow all the required linkings, the app will crash after ~30s when running on devices (hang forever when running on simulator, consumed more than 900MB memory). Exception/logs from XCode: 2018-01-14 23:59:43.851958+0900 ReactGStreamer[963:361833] TCP Conn 0x10b59f4d0 Failed : error 0:61 [61] 2018-01-14 23:59:46.071057+0900 ReactGStreamer[963:361833] [] nw_connection_get_connected_socket 29 Connection has no connected handler 2018-01-14 23:59:46.071143+0900 ReactGStreamer[963:361833] TCP Conn 0x10b5b75f0 Failed : error 0:61 [61] 2018-01-14 23:59:48.163236+0900 ReactGStreamer[963:361833] [] nw_connection_get_connected_socket 30 Connection has no connected handler 2018-01-14 23:59:48.163303+0900 ReactGStreamer[963:361833] TCP Conn 0x10844bf30 Failed : error 0:61 [61] 2018-01-14 23:59:50.376008+0900 ReactGStreamer[963:361869] [] nw_connection_get_connected_socket 31 Connection has no connected handler 2018-01-14 23:59:50.376072+0900 ReactGStreamer[963:361869] TCP Conn 0x10b5b7f30 Failed : error 0:61 [61] Message from debugger: Terminated due to memory issue

Also, if I set correct uri and press Play, the view doesn't render anything, there is sound but no video, and then it still crashes after ~30s. Maybe there is something wrong with the initialization? It doesn't happen in previous version.