VIVE_chengnay Posted April 25 Posted April 25 Hi @unko, Could you check your Start function, did it execute from beginning to end? If yes, could you share your log file?
unko Posted April 25 Posted April 25 Editor.log Thank you for your reply. I checked by pressing the play button in the editor, The Start function is running from start to finish. I am attaching the log file of the process. This log file was found in C:\Users\Nonoka\AppData\Local\Unity\Editor, does it match what you are looking for? Also, my problem is that the csv that is generated when I run it in the editor is not generated when I run the apk file in elite. WaveMain.cs
VIVE_chengnay Posted April 25 Posted April 25 Hi @unko, Yes, what works in Editor mode might not be the same as in running on Android device. And, I look through your code, the filepath and creating file part might need to update. Could you provide log from Elite?
unko Posted April 25 Posted April 25 Thank you for your reply. Sorry for the beginner's question. How can I find a Log from Elite? As you pointed out,The file path was, indeed, incorrect. sw = new StreamWriter( Application.persistentDataPath+ "\\"+UserName + "_" + now + ".csv", true, Encoding.GetEncoding("Shift_JIS")); and when I changed it and play the editor, the csv was created.
VIVE_chengnay Posted April 25 Posted April 25 Hi @unko, Before launching your app, you can type "adb logcat > filename.txt" on command console.
unko Posted April 25 Posted April 25 フォーラム_ログ1_2.zipThank you very much. I was able to retrieve the log file successfully.
unko Posted April 25 Posted April 25 Forum_Log_external.zip In the log file in my earlier post, it was playersetting>write permission :internal when I bild. So, I will send you the log of the same scene, re-built with playersetting>write permission :external, and run it again.
VIVE_chengnay Posted April 25 Posted April 25 Hi @unko, Could you fix this error? 04-25 21:04:21.279 4592 4623 E Unity : NotSupportedException: Encoding 932 data could not be found. Make sure you have correct international codeset assembly installed and enabled. 04-25 21:04:21.279 4592 4623 E Unity : at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x00000] in <00000000000000000000000000000000>:0 04-25 21:04:21.279 4592 4623 E Unity : at Wave.Essence.Eye.WaveMain.Start () [0x00000] in <00000000000000000000000000000000>:0 There should be some problem with the method you use for StreamWriter. I searched online, and I found out that you might need FileStream before using StreamWriter? Both logs, internal and external, show "Storage permission granted!". After you resolved above issue, please check below error, 04-25 21:04:21.283 4592 4623 E Unity : NullReferenceException: Object reference not set to an instance of an object. 04-25 21:04:21.283 4592 4623 E Unity : at Wave.Essence.Eye.WaveMain.SaveData (System.String a, System.String b, System.String c, System.String d, System.String e, System.String f, System.String g, System.String h, System.String i, System.String j, System.String k, System.String l, System.String m, System.String n, System.String o, System.String p) [0x00000] in <00000000000000000000000000000000>:0 04-25 21:04:21.283 4592 4623 E Unity : at Wave.Essence.Eye.WaveMain.FixedUpdate () [0x00000] in <00000000000000000000000000000000>:0
unko Posted April 25 Posted April 25 Thank you very much.!!!!! Your careful follow-up helped me to achieve my goal. I really appreciate it. The acquired pupil diameter changes only about once per second, is this a specification?
VIVE_chengnay Posted April 26 Posted April 26 Hi @unko, Which API are you using for getting pupil diameter? I will check internally.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now