SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.63k stars 902 forks source link

Got an error while opening a srt file #1350

Closed ttvd94 closed 9 years ago

ttvd94 commented 9 years ago

"Object refrence not set to an intance of an object." The subtitle language I'm working on is Persian. OS: Win 10 x64

image

The portable version was OK!

niksedk commented 9 years ago

So the installer for SE 3.4.9 crashes on this one subtitle only? Always? And the portable version works fine with this subtitle?

niksedk commented 9 years ago

If you unpack the files in this zip ( http://www.nikse.dk/Debug.zip ) to your installer version folder (probably C:\Program Files\Subtitle Edit or C:\Program Files (x86)\Subtitle Edit) you should get a line number where the crash occurs...

ttvd94 commented 9 years ago

So the installer for SE 3.4.9 crashes on this one subtitle only? Always?

No! It happens on all subtitles. Yes, always.

And the portable version works fine with this subtitle?

Yes, it's ok with any srt file.

ttvd94 commented 9 years ago

If you unpack the files in this zip ( http://www.nikse.dk/Debug.zip ) to your installer version folder (probably C:\Program Files\Subtitle Edit or C:\Program Files (x86)\Subtitle Edit) you should get a line number where the crash occurs...

Thanke you, I did that and here is the screenshot:

image

ttvd94 commented 9 years ago

I found some kind of odd solution! After extracting your zip file, I created a copy of my srt file using CTRL+C and CTRL+V and then it successfully opened. I don't know why!

The encoding type of both original file and the copy is the same.

niksedk commented 9 years ago

Thx a lot for the line number :) I believe it's an issue of auto-loading a video file extremely fast combined with late initialization of some variables - could you take the SubtitleEdit.exe (only this file) from this package: http://www.nikse.dk/SubtitleEdit.zip and overwrite the exe in your install folder?

ttvd94 commented 9 years ago

Sorry for taking too long to answer. I replaced the file but the problem persists.

image

As I mentioned before, changing the name of the srt will fix the error. Doesn't that help?

niksedk commented 9 years ago

OK, what about SE 3.4.10 ?

ttvd94 commented 9 years ago

This new version works as well. No error! Thanke you so much