Danh sách các lỗi error thường hay gặp và cách sửa trong Quick Translator log để ai có gặp thì tự sửa (trích từ QT log của tui).
Vì sao có lỗi: ở trong khung Update Vietphrase bấm nút Enter thì nó xuống dòng chứ không phải OK rồi thoát ra như bình thường. QT sẽ hiện ra khung đòi đóng QT và save lại bài dịch.Mã:7/12/2013 5:21:01 PM: Access to the path 'VietPhrase.txt.635092464615958787' is denied. System.UnauthorizedAccessException at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Delete(String path) at TranslatorEngine.TranslatorEngine.SaveDictionaryToFileWithoutSorting(Dictionary`2 dictionary, String filePath) at TranslatorEngine.TranslatorEngine.UpdateVietPhraseDictionary(String key, String value, Boolean sorting) at QuickTranslator.UpdateVietPhraseForm.UpdateButtonClick(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.PerformClick() at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData) at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData) at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData) at System.Windows.Forms.Control.PreProcessMessage(Message& msg) at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg) at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Cách sửa: bấm Cancel thì QT chạy bình thường. trong QT folder sẽ hiện ra file 'VietPhrase.txt.635092464615958787', xóa file này đi cho nó gọn.
Cách phòng ngừa: không có :P
Lỗi tương tự: khung đóng QT có thể sẽ hiện ra khi add hay sửa Name Chính, Name Phụ trong QT
Update 18/6/2014: lỗi này có nhiều khi memory của máy không đủ. thử tăng lên virtual memory của máy, giảm nhẹ file Vietphrase/Names/etc.
TTV Translate - Ứng dụng convert truyện trên mobile
Vì sao có lỗi: đã tạo đường dẫn trong Dictionaries.config tới NamePhu=Names\thanh xuyen nai nuong.txt nhưng folder của QT chưa có file này.Mã:5/22/2014 11:26:18 AM: Dictionary Not Found: C:\Dropbox\QT_20130708\Names\thanh xuyen nai nuong.txt System.IO.FileNotFoundException at TranslatorEngine.DictionaryConfigurationHelper.GetDictionaryPathByKey(String dictionaryKey) at TranslatorEngine.DictionaryConfigurationHelper.GetNamesPhuDictionaryHistoryPath() at TranslatorEngine.TranslatorEngine.loadOnlyNamePhuDictionaryHistoryWithNewThread(Object stateInfo) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
Sửa lỗi: chỉ cần tạo file mới "thanh xuyen nai nuong.txt" trong folder Names là được
Cách phòng ngừa: chỉ cần chắc chắn file gì đã có trong Dictionaries.config thì phải có trong folder của QT là được.
TTV Translate - Ứng dụng convert truyện trên mobile
Vì sao có lỗi: lỗi này vừa mới gặp khi add mới đống từ trong Babylon.txt. QT hoàn toàn không mở ra được.Mã:6/1/2014 7:21:16 AM: Index was outside the bounds of the array. System.IndexOutOfRangeException at TranslatorEngine.TranslatorEngine.loadCedictDictionary() at TranslatorEngine.TranslatorEngine.loadCedictDictionaryWithNewThread(Object stateInfo) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack) at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
Cách sửa: mò vào trong Babylon.txt lại để coi xóa đống từ mới, thì phát hiện một dòng trống giữa các hàng chữ. xóa dòng trống đó thì QT work lại được.
TTV Translate - Ứng dụng convert truyện trên mobile
Lỗi này thấy có xuất hiện trong log nhưng không nhớ có gì đặc biệt xảy ra. QT chạy bình thường, chả có cả popup error. Bác nào biết thì xin giải nghĩa:
Mã:5/31/2014 8:50:34 AM: startIndex cannot be larger than length of string. Parameter name: startIndex System.ArgumentOutOfRangeException at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at QuickTranslator.MainForm.VietPhraseOneMeaningClickWithoutHandlingException(Int32 currentCharIndex) at QuickTranslator.MainForm.VietPhraseOneMeaningClick(Int32 currentCharIndex)
TTV Translate - Ứng dụng convert truyện trên mobile