micah686 / VnManager

A program to keep track of your visual novels
https://micah686.github.io/VnManager/
MIT License
52 stars 6 forks source link

Can't Login #2

Closed ghost closed 3 years ago

ghost commented 6 years ago

Hello. Thanks for the new update. I've run into a few issues.

  1. Can't login. Adding VN's manually works.
  2. Categories tab should be resizable. A big title will take up majority of screen making VN Info tab unreadable The title could be text wrapped.
  3. Cannot open Advanced column. I'm guessing this is some unimplemented feature?
  4. Switching Visual Novels is rather slow. When switching rapidly from one entry to another, I occasionally encountered it freezing on one specific entry. Behaviour could be returned to normal by navigating to character or other tab.
micah686 commented 6 years ago

Could you upload the log files in Data/logs please?

ghost commented 6 years ago

I looked at the simple log file and it had the following "Could not connect to Vndb API over SSL" When I browsed to api.vndb.org, it gave me the following error

NET::ERR_CERT_COMMON_NAME_INVALID Subject: blicky.net Issuer: Let's Encrypt Authority X3 Expires on: Dec 28, 2017 Current date: Nov 11, 2017

Here are the log files. 2017-11-10-Simple.log 2017-11-10-Detailed.log

-EDIT- I should also mention that the app does communicate with VNDB. Upon entering a wrong password, it throws an "invalid username or password" error. When the correct info is entered and login is pressed, the app freezes up for a bit before throwing the "VisualNovelManagerv2 has stopped working"

micah686 commented 6 years ago

1) I'm looking into the issue. Some of my older builds seem to be having the same issue(even though they weren't before). So it might be something with the SSL certificate with the API. I'm not sure at this point. 2) I'll look into that. I thought I had it automatically wrap, but I may have removed it when changing things at some point. 3) Yes, the advanced column was for features that have not been implemented yet. I'll hide it on the next release until I have something to put there. 4) Yes, I know it sometimes freezes, because the progress indicator sometimes doesn't want to show properly. The first time you click on a game, it downloads the images, so it will freeze for longer. After that, it should only freeze for a second or two as it retrieves data from the database.

ghost commented 6 years ago

Good luck. I also noticed that the You've played and Last played data is in each others columns.

edgar1016 commented 6 years ago

I'm having the same issue. project hasn't been updated in a while I see though odds of this getting fixed?

micah686 commented 6 years ago

Visual studio has been giving me problems, as well as the last version of the API library I was using. When I upgrade my computer(which should be in about a month or so), I'll get back to working on it. There was a fix for the API implemented, so I'm not sure if that fixed the issue yet.

Don't worry, I still plan on fixing this. I'm just on hiatus from the project for now. I'll definitely check on how I can fix the bug(since the bug was happening to me, even on a build that worked in the past.)

edgar1016 commented 6 years ago

Awesome thanks for the reply, looking forward to future updates!

Nikey646 commented 6 years ago

The login issue is most likely related to the fact for some reason using the API you must have all lowercase in your username. If you have capital letters in your username when submitting the login request, it'll fail saying unknown username and password.

I've asked for clarification on this issue in the API thread on vndb. If i'm correct, either the change will be simple to do, or no change will be required (Because Yorhel is awesome and does us a small favor server side ;D)

edgar1016 commented 6 years ago

Logging in is still broken on my end crashes immediately, my username doesn't contain any uppercase letters.

Nikey646 commented 6 years ago

Yup, but logging in works...lol, for me when trying to load the wishlist, this code causes a crash because i have nothing on my wishlist

Edit: The related stack trace for the wishlist crash.

System.InvalidOperationException
  HResult=0x80131509
  Message=Sequence contains no elements
  Source=System.Core
  StackTrace:
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at VisualNovelManagerv2.ViewModel.VisualNovels.VnListViewModel.VnListViewModel.SetMaxWidth()
   at VisualNovelManagerv2.ViewModel.VisualNovels.VnListViewModel.VnListViewModel.<Login>d__124.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at VisualNovelManagerv2.App.Main()
micah686 commented 3 years ago

Closed due to updated version not (Intentionally) having support for logging into the API