tillt / KompleteSynthesia

Native Instruments Komplete Kontrol Light Guide support for Synthesia
MIT License
25 stars 1 forks source link

Crashing when Synthesia launches #21

Closed scottckr closed 9 months ago

scottckr commented 9 months ago

Hi!

I'm trying to get KompleteSynthesia working on my computer, whenever I try to launch KompleteSynthesia it crashes right when Synthesia opens up, the lights on the keyboard are just frozen on the rainbow and the screens are just displaying white and black blocks.

I've tried removing any configuration files that I could find, I'm on the latest version and I still have not been able to figure out the issue.

SynthesiaKontrol works fine, but I have serious FOMO on being able to control Synthesia on the keyboard :D

Attaching a error report in case that helps: KompleteSynthesia_report.txt

tillt commented 9 months ago

Interesting indeed. Looks like it is crashing in the screen mirroring part for you.

Which exact Komplete Kontrol model are you using? What kind of Mac are you using - intel it seems - which exact model?

At the moment I am not sure what is going on. Your stack trace looks bizarr to me as the following I did not expect:

Thread 10:: Dispatch queue: com.apple.root.user-initiated-qos

[...]
5   libdispatch.dylib                   0x7ff812ba0847 dispatch_apply + 45
6   vImage                              0x7ff81a051b45 vImageVerticalShear_ARGB8888 + 661
7   vImage                              0x7ff81a04d2c0 vImageScale_ARGB8888 + 912
[...]

IIUC then vImageScale_ARGB8888 is trying to do threaded processing on your machine -- totally not expected -- maybe a red herring. The first thing that comes to mind around the mirroring is the fact that in its current version it may very well be fragile on slow machines or somewhat slowed down USB transfer rates.

scottckr commented 9 months ago

Interesting indeed. Looks like it is crashing in the screen mirroring part for you.

Which exact Komplete Kontrol model are you using? What kind of Mac are you using - intel it seems - which exact model?

At the moment I am not sure what is going on. Your stack trace looks bizarr to me as the following I did not expect:

Thread 10:: Dispatch queue: com.apple.root.user-initiated-qos

[...]
5   libdispatch.dylib                     0x7ff812ba0847 dispatch_apply + 45
6   vImage                                0x7ff81a051b45 vImageVerticalShear_ARGB8888 + 661
7   vImage                                0x7ff81a04d2c0 vImageScale_ARGB8888 + 912
[...]

IIUC then vImageScale_ARGB8888 is trying to do threaded processing on your machine -- totally not expected -- maybe a red herring. The first thing that comes to mind around the mirroring is the fact that in its current version it may very well be fragile on slow machines or somewhat slowed down USB transfer rates.

I'm using a Komplete Kontrol S88 Mk2, my computer is a Hackintosh so that might be related to the issue, maybe because of the GPUs used? I'm running an RX480 for macOS but also have a RTX 3080 which should be disabled in macOS but might cause some issues anyway. I just tried KompleteSynthesia on my MacBook Pro and it works right away there.

tillt commented 9 months ago

I'm using a Komplete Kontrol S88 Mk2, my computer is a Hackintosh so that might be related to the issue, maybe because of the GPUs used?

Wow - that's so cool.

I believe the problem is not directly your GPU setup but the way vImage reacts on your setup which is different from what I see on my machine. I found a possible fix - should do.

tillt commented 9 months ago

@scottckr please try https://github.com/tillt/KompleteSynthesia/releases/tag/v0.62

scottckr commented 9 months ago

Oh, thanks :) Seems to still happen unfortunately :( Attaching another log. KompleteSynthesia_report2.txt

tillt commented 9 months ago

It is different now - the threading on the vImage part does not happen anymore -- the stack trace looks more like KompleteSynthesia was at fault. There are some threads around vImage crashing I will have to read up on...

tillt commented 9 months ago

@scottckr please try https://github.com/tillt/KompleteSynthesia/releases/tag/v0.62.0.1

scottckr commented 9 months ago

Still crashes but looks like it got a bit further this time, the keyboard froze with a different pattern :D KompleteSynthesia_report3.txt

tillt commented 9 months ago

@scottckr please try https://github.com/tillt/KompleteSynthesia/releases/tag/v0.62.0.2

scottckr commented 9 months ago

Woh! It's working :) The only thing is that the right screen looks a bit broken and not displaying the Komplete Synthesia logo, not too much of an issue, the left screen works and I can navigate through it :)

tillt commented 9 months ago

Nice, will find a solution for the second screen once I got a hunch on what is causing that. Glad it starts working now.

Thank you so much @scottckr for your help and patience.

tillt commented 9 months ago

@scottckr does using the Reset functionality of the KompleteSynthesia app cause any changes on the right hand display?

scottckr commented 9 months ago

Thank YOU for fixing it for my unorthodox setup :D No, clicking Reset does not seem to change anything.

tillt commented 9 months ago

@scottckr please try https://github.com/tillt/KompleteSynthesia/releases/tag/v0.62.0.3

scottckr commented 9 months ago

Yep, that fixed it :D

tillt commented 9 months ago

@scottckr thanks again for your great support, appreciate that a lot -- have a great one and happy praciticing :)