Crash when opening the translation form

107 views
Skip to first unread message

Quentin Gribble

unread,
Sep 12, 2018, 12:11:12 PM9/12/18
to Zeta Resource Editor
Hi Zeta people,

I am getting a crash every time I try to open the automatic translation feature in Zeta. I have included part of the stack trace below (the full trace is too long to include). Does anyone else experience this or is it unique to my environment?

-----------------
Error during operation, tried more than 3 times.
-----------------
at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\P\ZetaVoyagerLibrary\Externals\ZetaLongPaths\Source\RuntimeNetCore\ZlpSimpleFileAccessProtector.cs:line 65
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages(String appID) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\Google\GoogleRestfulTranslationEngine.cs:line 38

I am guessing that it may be caused by a change to the Google api as I see the crash no matter what version I run and it never used to crash for me in previous versions.

Any help anyone can offer would be greatly appreciated as the issue is causing our project serious delays.

Thanks!

Uwe Keim

unread,
Sep 13, 2018, 10:45:30 AM9/13/18
to Zeta Resource Editor
I've just released an update (V 2.3.0.22).

Can you please download and install this update and tell me, whether this removes the error?

Quentin Gribble

unread,
Sep 13, 2018, 11:52:09 AM9/13/18
to Zeta Resource Editor
Hi Uwe,

Thank you so much for your prompt response.

Unfortunately that update didn't fix the issue. I still get exactly the same exception.

Any more ideas?

Uwe Keim

unread,
Sep 13, 2018, 11:56:14 AM9/13/18
to Zeta Resource Editor
Are you sure, you are on Version 2.3.0.22?

version.png


I could reproduce your error with a version before 2.3.0.22, and cannot reproduce it with 2.3.0.22.


Quentin Gribble

unread,
Sep 13, 2018, 12:21:57 PM9/13/18
to Zeta Resource Editor
Yes, definitely 2.3.0.22

Capture.PNG


ZetaLongPaths.ZlpSimpleFileAccessProtectorException

at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\P\ZP\15.0\ZetaProducerReferences\Externals\ZetaVoyagerLibrary\Externals\ZetaLongPaths\Source\RuntimeNetCore\ZlpSimpleFileAccessProtector.cs:line 65

Uwe Keim

unread,
Sep 13, 2018, 12:23:34 PM9/13/18
to zeta-resou...@googlegroups.com
Can you please click the details in the error dialog and post the WHOLE error message, including the inner exception here?

--
You received this message because you are subscribed to the Google Groups "Zeta Resource Editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zeta-resource-ed...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Quentin Gribble

unread,
Sep 13, 2018, 12:24:31 PM9/13/18
to Zeta Resource Editor


ZetaLongPaths.ZlpSimpleFileAccessProtectorException

-----------------

Error during operation, tried more than 3 times.

-----------------

at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\P\ZP\15.0\ZetaProducerReferences\Externals\ZetaVoyagerLibrary\Externals\ZetaLongPaths\Source\RuntimeNetCore\ZlpSimpleFileAccessProtector.cs:line 65
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages(String appID) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\Google\GoogleRestfulTranslationEngine.cs:line 38
   at ZetaResourceEditor.UI.Translation.AutoTranslateForm.InitiallyFillLists() in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 175
   at ZetaResourceEditor.UI.Translation.AutoTranslateForm.autoTranslateForm_Load(Object sender, EventArgs e) in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 412
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)
   at ExtendedControlsLibrary.Skinning.CustomForm.MyXtraForm.OnLoad(EventArgs e) in c:\P\ZetaResourceEditor\Source-Skinning\ExtendedControlsLibrary\Skinning\CustomForm\MyXtraForm.cs:line 105
   at ExtendedControlsLibrary.General.Base.DevExpressXtraFormBase.OnLoad(EventArgs e) in c:\P\ZetaResourceEditor\Source-Skinning\ExtendedControlsLibrary\General\Base\DevExpressXtraFormBase.cs:line 138
   at ZetaResourceEditor.UI.Helper.Base.FormBase.OnLoad(EventArgs e) in c:\P\ZetaResourceEditor\Source\Main\UI\Helper\Base\FormBase.cs:line 55
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

ZlpSimpleFileAccessProtectorException
{
Message="Error during operation, tried more than 3 times.",
Data=
[
]
,
InnerException=InvalidOperationException
{
Message="Error deserializing JSON credential data.",
Data=
[
]
,
InnerException=JsonReaderException
{
LineNumber=1,
LinePosition=36,
Path="",
Message="Input string \\'5cc2ddf0-0a6e-47de-adc4-daa21c17a632\\' is not a valid number. Path \\'\\', line 1, position 36.",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseReadNumber,
StackTrace="   at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseValue()\\r\\n   at Newtonsoft.Json.JsonTextReader.Read()\\r\\n   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)\\r\\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\\r\\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\\r\\n   at Google.Apis.Json.NewtonsoftJsonSerializer.Deserialize[T](String input)\\r\\n   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)",
HelpLink=null,
Source="Newtonsoft.Json",
HResult=-2146233088
},
TargetSite=RuntimeMethodInfo: CreateDefaultCredentialFromJson,
StackTrace="   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.<>c__DisplayClass12_0.<ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages>b__0() in c:\\P\\ZetaResourceEditor\\Source\\RuntimeBusinessLogic\\Translation\\Google\\GoogleRestfulTranslationEngine.cs:line 43\\r\\n   at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\\P\\ZP\\15.0\\ZetaProducerReferences\\Externals\\ZetaVoyagerLibrary\\Externals\\ZetaLongPaths\\Source\\RuntimeNetCore\\ZlpSimpleFileAccessProtector.cs:line 56",
HelpLink=null,
Source="Google.Apis.Auth",
HResult=-2146233079
},
TargetSite=RuntimeMethodInfo: Protect,
StackTrace="   at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\\P\\ZP\\15.0\\ZetaProducerReferences\\Externals\\ZetaVoyagerLibrary\\Externals\\ZetaLongPaths\\Source\\RuntimeNetCore\\ZlpSimpleFileAccessProtector.cs:line 65\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages(String appID) in c:\\P\\ZetaResourceEditor\\Source\\RuntimeBusinessLogic\\Translation\\Google\\GoogleRestfulTranslationEngine.cs:line 38\\r\\n   at ZetaResourceEditor.UI.Translation.AutoTranslateForm.InitiallyFillLists() in c:\\P\\ZetaResourceEditor\\Source\\Main\\UI\\Translation\\AutoTranslateForm.cs:line 175\\r\\n   at ZetaResourceEditor.UI.Translation.AutoTranslateForm.autoTranslateForm_Load(Object sender, EventArgs e) in c:\\P\\ZetaResourceEditor\\Source\\Main\\UI\\Translation\\AutoTranslateForm.cs:line 412\\r\\n   at System.Windows.Forms.Form.OnLoad(EventArgs e)\\r\\n   at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)\\r\\n   at ExtendedControlsLibrary.Skinning.CustomForm.MyXtraForm.OnLoad(EventArgs e) in c:\\P\\ZetaResourceEditor\\Source-Skinning\\ExtendedControlsLibrary\\Skinning\\CustomForm\\MyXtraForm.cs:line 105\\r\\n   at ExtendedControlsLibrary.General.Base.DevExpressXtraFormBase.OnLoad(EventArgs e) in c:\\P\\ZetaResourceEditor\\Source-Skinning\\ExtendedControlsLibrary\\General\\Base\\DevExpressXtraFormBase.cs:line 138\\r\\n   at ZetaResourceEditor.UI.Helper.Base.FormBase.OnLoad(EventArgs e) in c:\\P\\ZetaResourceEditor\\Source\\Main\\UI\\Helper\\Base\\FormBase.cs:line 55\\r\\n   at System.Windows.Forms.Form.OnCreateControl()\\r\\n   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\\r\\n   at System.Windows.Forms.Control.CreateControl()\\r\\n   at System.Windows.Forms.Control.WmShowWindow(Message& m)\\r\\n   at System.Windows.Forms.Control.WndProc(Message& m)\\r\\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\\r\\n   at System.Windows.Forms.ContainerControl.WndProc(Message& m)\\r\\n   at System.Windows.Forms.Form.WmShowWindow(Message& m)\\r\\n   at System.Windows.Forms.Form.WndProc(Message& m)\\r\\n   at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)\\r\\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\\r\\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\\r\\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)",
HelpLink=null,
Source="ZetaLongPaths",
HResult=-2146233088
}
-->Error deserializing JSON credential data.--> Input string '5cc2ddf0-0a6e-47de-adc4-daa21c17a632' is not a valid number. Path '', line 1, position 36.

System.InvalidOperationException

-----------------

Error deserializing JSON credential data.

-----------------

at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.<>c__DisplayClass12_0.<ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages>b__0() in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\Google\GoogleRestfulTranslationEngine.cs:line 43
   at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\P\ZP\15.0\ZetaProducerReferences\Externals\ZetaVoyagerLibrary\Externals\ZetaLongPaths\Source\RuntimeNetCore\ZlpSimpleFileAccessProtector.cs:line 56

InvalidOperationException
{
Message="Error deserializing JSON credential data.",
Data=
[
]
,
InnerException=JsonReaderException
{
LineNumber=1,
LinePosition=36,
Path="",
Message="Input string \\'5cc2ddf0-0a6e-47de-adc4-daa21c17a632\\' is not a valid number. Path \\'\\', line 1, position 36.",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseReadNumber,
StackTrace="   at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseValue()\\r\\n   at Newtonsoft.Json.JsonTextReader.Read()\\r\\n   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)\\r\\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\\r\\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\\r\\n   at Google.Apis.Json.NewtonsoftJsonSerializer.Deserialize[T](String input)\\r\\n   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)",
HelpLink=null,
Source="Newtonsoft.Json",
HResult=-2146233088
},
TargetSite=RuntimeMethodInfo: CreateDefaultCredentialFromJson,
StackTrace="   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.Google.GoogleRestfulTranslationEngine.<>c__DisplayClass12_0.<ZetaResourceEditor.RuntimeBusinessLogic.Translation.ITranslationEngine.GetSourceLanguages>b__0() in c:\\P\\ZetaResourceEditor\\Source\\RuntimeBusinessLogic\\Translation\\Google\\GoogleRestfulTranslationEngine.cs:line 43\\r\\n   at ZetaLongPaths.ZlpSimpleFileAccessProtector.Protect(Action action, ZlpSimpleFileAccessProtectorInformation info) in c:\\P\\ZP\\15.0\\ZetaProducerReferences\\Externals\\ZetaVoyagerLibrary\\Externals\\ZetaLongPaths\\Source\\RuntimeNetCore\\ZlpSimpleFileAccessProtector.cs:line 56",
HelpLink=null,
Source="Google.Apis.Auth",
HResult=-2146233079
}
Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625

Newtonsoft.Json.JsonReaderException

-----------------

Input string '5cc2ddf0-0a6e-47de-adc4-daa21c17a632' is not a valid number. Path '', line 1, position 36.

-----------------

at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)
   at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Google.Apis.Json.NewtonsoftJsonSerializer.Deserialize[T](String input)
   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)

JsonReaderException
{
LineNumber=1,
LinePosition=36,
Path="",
Message="Input string \\'5cc2ddf0-0a6e-47de-adc4-daa21c17a632\\' is not a valid number. Path \\'\\', line 1, position 36.",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: ParseReadNumber,
StackTrace="   at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\\r\\n   at Newtonsoft.Json.JsonTextReader.ParseValue()\\r\\n   at Newtonsoft.Json.JsonTextReader.Read()\\r\\n   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)\\r\\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\\r\\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\\r\\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\\r\\n   at Google.Apis.Json.NewtonsoftJsonSerializer.Deserialize[T](String input)\\r\\n   at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)",
HelpLink=null,
Source="Newtonsoft.Json",
HResult=-2146233088
}
Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625

Uwe Keim

unread,
Sep 13, 2018, 12:26:58 PM9/13/18
to zeta-resou...@googlegroups.com
The key error message seems to be:

Input string \\'5cc2ddf0-0a6e-47de-adc4-daa21c17a632\\' is not a valid number.  

It looks to me like your Google JSON that you entered as the JSON key credentials is somewhat malformed.

Try to put it into a JSON validator like e.g. https://jsonformatter.curiousconcept.com

Quentin Gribble

unread,
Sep 13, 2018, 12:41:41 PM9/13/18
to Zeta Resource Editor
I really appreciate your continued assistance with this..

I agree that the error appears to be that guid string but I don't know where it comes from. The only thing I do to configure Google translation is add the credential key into the Translation settings form and the key I entered is not this input string.

Capture.PNG


I have tried removing and re-entering the settings but the error remains.

Any more ideas?

Uwe Keim

unread,
Sep 13, 2018, 12:44:42 PM9/13/18
to zeta-resou...@googlegroups.com
This was changed recently by Google.

You have to enter some long JSON thing:

image.png

Quentin Gribble

unread,
Sep 13, 2018, 12:55:34 PM9/13/18
to Zeta Resource Editor
Ok, that will be it. I am on it.

Thank you so much for all your help!

Uwe Keim

unread,
Sep 13, 2018, 12:56:58 PM9/13/18
to zeta-resou...@googlegroups.com
Thanks for using my tool :-)

Uwe Keim

unread,
Sep 13, 2018, 1:33:14 PM9/13/18
to zeta-resou...@googlegroups.com
Just decided to quickly assemble a new version (.23) with the following improvements:
  • Better/more detailed error messages
  • Some basic, non-blocking, JSON validation of the entered Google JSON data
  • Link to online JSON validator in the Translation Google JSON data dialog
The new setup is online now.

Quentin Gribble

unread,
Sep 13, 2018, 3:19:18 PM9/13/18
to Zeta Resource Editor
Excellent! Thanks again.
 
I love this software - it has saved me soooo much time!
Reply all
Reply to author
Forward
0 new messages