sghpjuikit / player

Audio player and management application.
22 stars 2 forks source link

Player crashing on Song end #37

Closed xeruf closed 5 years ago

xeruf commented 6 years ago

This does not happen always, and I'm not yet sure when it does, but sometimes it simply exits after finishing a song. hs_err_pid13702.log

sghpjuikit commented 6 years ago

I know of possible StackOverflowException happening when song ends/starts, which I havent fixed yet, but it is very rare. I have also noticed vlcj crashing few times. This needs more data, so i'ts more or less on hold until then.

How often does this happen on your system?

xeruf commented 6 years ago

Within playing about 5 songs, it happened twice

sghpjuikit commented 6 years ago

It could depend on the type of song and numerous other things, but I'm not experiencing this issue. I'm using VLC 2.2.6.

For start I can only recommend trying greater sample of audio files. Are you using 64-bit version?

sghpjuikit commented 6 years ago

Since VLC 3 came out, it may be worth a shot to use vlcj for it

sghpjuikit commented 5 years ago

Update: I do experience this issue on Windows, albeit very rarely (probably somewhere in range of 1/100-1/1000 playbacks). I also think it tends to happen under some condition - I do not remember this happening outside development (I did experience crashed on key presses, but that points to jnativehook probably).

So after some time passing and using later lib versions: how often do you experience this issue?

This could be related to VLC version. Also: I think there is a vlcj branch for VLC3 right?

sghpjuikit commented 5 years ago

Update: I have improved vlc player state handling/observing (its in master branch). I'm currently observing the behavior.

Pls tell me if you are still experiencing this issue.

sghpjuikit commented 5 years ago

I have just experienced this twice in a row. Definitely not solved. I'm also afraid its a vlcj thing.

https://github.com/caprica/vlcj/issues/351 https://github.com/caprica/vlcj/issues/554

Potentially fixed in future release: https://github.com/caprica/vlcj/milestone/14

In the meantime, I will try possible solution found here: https://stackoverflow.com/questions/43312679/jvm-crashes-when-releasing-a-vlcj-mediaplayer

sghpjuikit commented 5 years ago

vlcj 4 has been recently released, I will adopt it soon.

sghpjuikit commented 5 years ago

Should be fixed in f200ce9.

I'm closing this. Of course, I'll be monitoring the situation on my end.