TTV Translate - Ứng dụng convert truyện trên mobile
Hướng dẫn đăng truyện trên website mới
Đăng ký convert hoặc Thông báo ngừng
Trang 1 của 2 12 CuốiCuối
Kết quả 1 đến 5 của 10

Chủ đề: FAQ các Error thường gặp của QT log

  1. #1
    Ngày tham gia
    Nov 2007
    Bài viết
    702
    Xu
    850

    Mặc định FAQ các Error thường gặp của QT log

    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).


    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)
    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.
    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



    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)
    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.
    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





    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)
    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.
    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

    Lần sửa cuối bởi mhd, ngày 19-06-2014 lúc 10:28.
    ---QC---


  2. #2
    Ngày tham gia
    Nov 2007
    Bài viết
    702
    Xu
    850

    Mặc định FAQ các Error thường gặp của QT log

    Danh sách các lỗi error thường hay gặp và cách sửa trong QuickTranslator.log để ai có gặp thì tự sửa (trích từ QT log của tui).


    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.SaveDictionaryTo FileWithoutSorting(Dictionary`2 dictionary, String filePath)
    at TranslatorEngine.TranslatorEngine.UpdateVietPhrase Dictionary(String key, String value, Boolean sorting)
    at QuickTranslator.UpdateVietPhraseForm.UpdateButtonC lick(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(Mes sage& msg)
    at System.Windows.Forms.Control.PreProcessControlMess ageInternal(Control target, Message& msg)
    at System.Windows.Forms.Application.ThreadContext.Pre TranslateMessage(MSG& msg)

    TTV Translate - Ứng dụng convert truyện trên mobile



    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.
    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


    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.Get DictionaryPathByKey(String dictionaryKey)
    at TranslatorEngine.DictionaryConfigurationHelper.Get NamesPhuDictionaryHistoryPath()
    at TranslatorEngine.TranslatorEngine.loadOnlyNamePhuD ictionaryHistoryWithNewThread(Object stateInfo)
    at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    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.
    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.
    Lỗi tương tự: các bác mới download QT về mà gặp lỗi "Dictionary not found" thì 9/10 là chưa download cái Babylon, LacViet, ThieuChuu về. Hên là bản QT 2013 có kèm theo hết nên gần đây ít gặp lỗi này.


    6/1/2014 7:21:16 AM: Index was outside the bounds of the array.
    System.IndexOutOfRangeException
    at TranslatorEngine.TranslatorEngine.loadCedictDictio nary()
    at TranslatorEngine.TranslatorEngine.loadCedictDictio naryWithNewThread(Object stateInfo)
    at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    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.
    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.

    6/1/2014 11:29:57 AM: Index was outside the bounds of the array.
    System.IndexOutOfRangeException
    at QuickTranslator.MainForm.getHanVietCharRangeFromCh ineseRange(Int32 chineseStartIndex, Int32 chineseLength)
    at QuickTranslator.MainForm.SelectTextInHanViet(Int32 chineseStartIndex, Int32 chineseLength)
    at QuickTranslator.MainForm.VietPhraseOneMeaning_Sele ctTextHandler()
    at QuickTranslator.DocumentPanel.ContentRichTextBoxMo useUp(Object sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseUp(MouseEventA rgs e)
    at System.Windows.Forms.TextBoxBase.OnMouseUp(MouseEv entArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
    at System.Windows.Forms.RichTextBox.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    TTV Translate - Ứng dụng convert truyện trên mobile


    Lại một lỗi Index nữa, lỗi này xảy ra lúc dùng File / Open text file trong QT. không biết nguyên nhân. Đóng QT lại rồi open file đó lại thì OK.

    =====

    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:


    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.VietPhraseOneMeaningClick WithoutHandlingException(Int32 currentCharIndex)
    at QuickTranslator.MainForm.VietPhraseOneMeaningClick (Int32 currentCharIndex)

    TTV Translate - Ứng dụng convert truyện trên mobile

    Lần sửa cuối bởi mhd, ngày 01-06-2014 lúc 23:34.

  3. #3
    Ngày tham gia
    Nov 2007
    Bài viết
    702
    Xu
    850

    Mặc định

    Các lỗi sau đây nằm trong QuickConverter.log


    9/26/2013 6:27:00 PM: The process cannot access the file 'E:\Downloads\EBOOKS ALL\truyen convert\092013\tham cung nu phu\QuickConverter\乐文_www.lwxs.net_.txt' because it is being used by another process.
    System.IO.IOException
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    at System.IO.StreamWriter.CreateFile(String path, Boolean append)
    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
    at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
    at QuickConverter.VietPhraseExporter.Export(String content, Boolean needRemoveBlankLines, String filePath, Boolean outputToWord)
    at QuickConverter.MainForm.<>c__DisplayClass9.<transl ateAndExportVietPhraseOneMeaningFormat>b__7(Object batchIndexObject)
    at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    TTV Translate - Ứng dụng convert truyện trên mobile


    Tại sao có lỗi: có chương trình khác đang mở file 乐文_www.lwxs.net_.txt ra (thường là WORD hay Notepad ++)
    Cách sửa: close file trong chương trình đó rồi chạy lại QC là được.


    Các lỗi sau đây có trong QuickConverter.log thì thời gian quá lâu không nhớ tại sao có, bác nào biết thì bổ sung:

    8/4/2013 11:17:42 AM: Length cannot be less than zero.
    Parameter name: length
    System.ArgumentOutOfRangeException
    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    at TranslatorEngine.TranslatorEngine.loadCedictDictio nary()
    at TranslatorEngine.TranslatorEngine.loadCedictDictio naryWithNewThread(Object stateInfo)
    at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    TTV Translate - Ứng dụng convert truyện trên mobile


    Hình như có lỗi này là do xóa dòng "Generated By QuickTranslator@TangThuVien.com" trong "vietPhraseTemplate.doc" thì phải.

    7/15/2013 6:30:36 AM: Index was outside the bounds of the array.
    System.IndexOutOfRangeException
    at QuickConverter.MainForm.<>c__DisplayClass9.<transl ateAndExportVietPhraseOneMeaningFormat>b__7(Object batchIndexObject)
    at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
    at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)

    TTV Translate - Ứng dụng convert truyện trên mobile


  4. #4
    Ngày tham gia
    Oct 2013
    Bài viết
    86
    Xu
    0

    Mặc định

    6/19/2014 9:55:03 PM: Exception of type 'System.OutOfMemoryException' was thrown.
    System.OutOfMemoryException
    at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
    at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
    at System.Text.StringBuilder.Append(String value)
    at TranslatorEngine.TranslatorEngine.SaveDictionaryTo FileWithoutSorting(Dictionary`2 dictionary, String filePath)
    at TranslatorEngine.TranslatorEngine.UpdateVietPhrase Dictionary(String key, String value, Boolean sorting)
    at QuickTranslator.MainForm.chooseAMeaningMenuItem_Cl ick(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    6/19/2014 11:18:50 PM: Exception of type 'System.OutOfMemoryException' was thrown.

    Mmd ơi lỗi này là sao cứ xuất hiện suốt Y chang gần lỗi VietPhrase.txt.635092464615958787

  5. #5
    Ngày tham gia
    Nov 2007
    Bài viết
    702
    Xu
    850

    Mặc định

    Các loại lỗi khác của QT/QC thường thường là do các lý do:

    1. máy chạy nhiều software, out of memory nên nó cúp >>> tăng virtual memory hay tăng RAM lên là được.
    2. Vietphrase.txt hay VietphraseHistory.txt lớn quá so với memory của bạn >> tìm cách giảm hai file này đi hay tăng memory của máy
    3. máy hay bị cúp điện, shut down bất thình lình >>> không có cách sửa, cài Dropbox hay Google Drive rồi bỏ QT vào xem sao.
    4. bạn không có quyền Admin trên máy



    Trích dẫn Gửi bởi Yukishami Xem bài viết
    6/19/2014 9:55:03 PM: Exception of type 'System.OutOfMemoryException' was thrown.
    System.OutOfMemoryException
    at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
    at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
    at System.Text.StringBuilder.Append(String value)
    at TranslatorEngine.TranslatorEngine.SaveDictionaryTo FileWithoutSorting(Dictionary`2 dictionary, String filePath)
    at TranslatorEngine.TranslatorEngine.UpdateVietPhrase Dictionary(String key, String value, Boolean sorting)
    at QuickTranslator.MainForm.chooseAMeaningMenuItem_Cl ick(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    6/19/2014 11:18:50 PM: Exception of type 'System.OutOfMemoryException' was thrown.

    Mmd ơi lỗi này là sao cứ xuất hiện suốt Y chang gần lỗi VietPhrase.txt.635092464615958787

    ---QC---


  6. Bài viết được 1 thành viên cảm ơn::   [Hiện ra]
    Hoàng Hạc,
Trang 1 của 2 12 CuốiCuối

Thông tin về chủ đề này

Users Browsing this Thread

Có 1 người đang xem chủ đề. (0 thành viên và 1 khách)

DMCA.com Protection Status