Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laggy Application - Followed by Crash #3

Open
Benjamoose opened this issue Aug 5, 2022 · 11 comments
Open

Laggy Application - Followed by Crash #3

Benjamoose opened this issue Aug 5, 2022 · 11 comments

Comments

@Benjamoose
Copy link

Hey there!

When I run the .exe, the window opens, but seems to run incredibly slowly. If I then attempt to click any of the buttons, I can do so only once, before the entire application crashes.

OS: Windows 10
GPU: GTX 1070
CPU: i7-4790K
RAM: 16GB

LaggyCrashIssue.mp4
@Benjamoose
Copy link
Author

Benjamoose commented Aug 5, 2022

Additional information:

So, it seems that if I launch the application with no toys connected, it drags smoothly. It may be that it only begins to act this way once it detects and lists a toy.

@Shadlock0133
Copy link
Owner

I've made a new release https://github.com/Shadlock0133/music-vibes/releases/tag/v0.1.2
Can you check if problem is still there?

@Benjamoose
Copy link
Author

Benjamoose commented Aug 5, 2022

Thanks for the quick response!

I just tried the new release that you linked above.

The "laggy window" issue seems to have been fixed, it seems to drag around smoothly now, regardless of what's happening.

Current issues:

  • Every so often the app locks up for a moment, leaving the app and toy in whatever it's last state was for about 3-5 seconds.
  • Sometimes it never recovers from the above and crashes again.
ContinuedIssues.mp4

@Shadlock0133
Copy link
Owner

Can you check this one?
music-vibes.zip

@Benjamoose
Copy link
Author

So now, the app no longer freezes/desyncs for those moments.

New issues:

  • The volume has to be very loud to get the indicator to register the input enough to make an impact, even with the multiplier maxed out.
  • Once the first vibration is initiated on the toy. The toy stays on that setting and just vibrates indefinitely, ignoring the audio-to-vibration updates (which is why I was spamming the stop button at the end of the video).

By the way, if there's anything else I can do to help diagnose, I'd be more than happy to. Are there any logs or something I can share? It's why I'm trying to record with audio waveforms and the like. I'm trying to give as much information as possible, but if there's something else that'd be helpful, let me know.

NewIssues.mp4

@Shadlock0133
Copy link
Owner

Shadlock0133 commented Aug 5, 2022

I don't actually have any logging set-up, so these videos are very useful, thank you for sending them!

@Shadlock0133
Copy link
Owner

I've added new "main volume", just be careful with it, as scales much more rapidly compared to individual devices' "multipliers", kinda like real volume does.

As for vibration getting stuck, I'm still not sure why would that be. I need to think about this one.

PS. I've just noticed you have set "Low pass freq." to 2Hz, which would filter almost all (if not all) audio. Try setting it to max.

@Benjamoose
Copy link
Author

Oh interesting!

I just did a quick check and maxing it out does seem to possibly solve the low volume thing.

What should the default setting be? I must have accidentally adjusted it then not realized, as I didn't realize that it saved the setting on relaunch.

@Shadlock0133
Copy link
Owner

The default is max, which means no filtering.

@Benjamoose
Copy link
Author

Benjamoose commented Aug 5, 2022

With the filtering adjustment fixing the other non-issue, I can sort of better describe the vibration issue.

So it seems that one of two things happen:

  1. Regardless of volume, the toy vibrates at a "base level". So, the moment "Enable" is checked, it starts vibrating regardless of audio input, but will then vibrate "more" on top of that with music playing and the multiplier turned up.

  2. Seems random, but sometimes it gets stuck then never recovers. So, in my testing it a song was playing (the one in the videos above), a big vibration was hit for a second, then it stayed there and seemingly stopped responding to audio input from that point onwards.

Edit: Sorry for making your life hell, haha. But you truly have the best software for this. The only other thing I'd seen was way over-produced and a file dump for what it was. Your app is simple, versatile and low impact space-wise.

@Benjamoose
Copy link
Author

Hmm, I was able to run the app with no issues a moment ago.

I'll do some more testing over today and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants