Fixing this bug really makes life worse than death. It's so hard!
First, let's talk about my Error Reporting Environment: here, I am working on a video playing software. In the programming process, the others are OK. That is to say, if this video is played for the first time, no error will be reported for playing any movies or videos. However, this video is required to be played in a series ). On the current page, click the selected series to switch the selected video. Then the problem arises! The party is playing the current collection and clicking any other set will report an error and it will collapse !! And reports the error of the above image ......
Then I collected a lot of posts on the Internet, which is different from my situation, because others are map and cocos2d posts. I am anxious because I really don't know how to work? This bug has been fixed for the third day, and has been asked by friends and teachers. Never met! Coincidentally, I saw a sentence in a Q & A post:
/** This error is generally caused by memory leakage. You can check whether a wild pointer exists, or some threads are not closed in time, or some instances are not closed in time */
Then, I began to look for the threads I started during the playback, or some instances that are used repeatedly and cannot be closed even. Handler! When using video playback, handler must be used to control the playback screen gesture to adjust the sound, brightness, and progress, and the display and hiding of the titlebar and seekbar layout controls on the video playback screen. Then, if the video is being played for the first time, you can click a set to play the set that has been clicked. She will create a thread in the next call based on the previous thread, and the previous thread is not closed in time, so the above error occurs!
Therefore, every time I switch the video, I need to turn off all the previous handler threads in advance! Then, there is no problem in video playback.
Fatal signal 11 (sigsgv) at 0x00002820 (code = 1), thread 23696 (xvdy. OA: vitamio)