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

ensure that 0.7.0 works for all aap-juce plugins #99

Closed
atsushieno opened this issue Feb 21, 2022 · 4 comments
Closed

ensure that 0.7.0 works for all aap-juce plugins #99

atsushieno opened this issue Feb 21, 2022 · 4 comments

Comments

@atsushieno
Copy link
Owner

I am upgrading aap core to 0.7.0 in Vitaloid (aap-juce-vital), and its MidiDeviceService is not responsive now. There are couple of issues I found so far:

(1) aap-juce-hera was causing thousands of lines of debug spew like:

2022-02-21 15:31:46.188 295-2906/? W/android.hardware.audio.service.ranchu: TinyalsaSink::write:125 pcm_write was late reading frames, dropping 22131 us of audio
2022-02-21 15:31:46.253 393-456/? D/AudioFlinger: mixer(0xf70d8030) throttle end: throttle time(41)

It was likely after I instantiated Hera on kmmk and didn't stop even after I killed kmmk and uninstalled Vitaloid (that I tried afterwards). It was not the first time I observed it, and it is why I created #95 .

(2) It might be just about performance issue caused by (1), but attempt to instantiate Vitaloid on kmmk freezed the UI. It is really due to performance issue as after I uninstalled Hera I could instantiate Vitaloid, but the audio output was still glitchy, implying that Vitaloid itself is the cause of the perf. degrade.

@atsushieno
Copy link
Owner Author

aap-juce-obxd MidiDeviceService crashes too.

2022-02-21 17:38:07.826 3869-3869/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
2022-02-21 17:38:07.826 3869-3869/? A/DEBUG: Cause: null pointer dereference
2022-02-21 17:38:07.826 3869-3869/? A/DEBUG:     eax 00000000  ebx bb299698  ecx 00000001  edx 00000000
2022-02-21 17:38:07.826 3869-3869/? A/DEBUG:     edi 00000000  esi ea1d1170
2022-02-21 17:38:07.826 3869-3869/? A/DEBUG:     ebp 00000000  esp bb24d080  eip bb26c855
2022-02-21 17:38:07.878 3869-3869/? A/DEBUG: backtrace:
2022-02-21 17:38:07.878 3869-3869/? A/DEBUG:       #00 pc 0001a855  /data/app/~~63tvR6ZsKnaSWtW7Wz9n9g==/com.datsounds.obxd-9zP-J0Cvd6bc_MCr74bNMQ==/base.apk!libaapmidideviceservice.so (offset 0x5ab000) (aapmidideviceservice::AAPMidiProcessor::processMidiInput(unsigned char*, unsigned int, unsigned int, long long)+245) (BuildId: db3f645c7e6a7adac0b5d70cbf4ef47385444e77)
2022-02-21 17:38:07.878 3869-3869/? A/DEBUG:       #01 pc 00018f67  /data/app/~~63tvR6ZsKnaSWtW7Wz9n9g==/com.datsounds.obxd-9zP-J0Cvd6bc_MCr74bNMQ==/base.apk!libaapmidideviceservice.so (offset 0x5ab000) (Java_org_androidaudioplugin_midideviceservice_AudioPluginMidiDeviceInstance_processMessage+135) (BuildId: db3f645c7e6a7adac0b5d70cbf4ef47385444e77)
2022-02-21 17:38:07.878 3869-3869/? A/DEBUG:       #02 pc 001422b2  /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+82) (BuildId: bf39832c4acabbc939d5c516b6f1d211)

@atsushieno
Copy link
Owner Author

^ OB-Xd crash was simply because our aap_metadata.xml was old and had Synth as its category (which should be Instrument).

@atsushieno
Copy link
Owner Author

At this state, I conclude that the culprit of the weird crashes are due to the following distinct issues:

@atsushieno
Copy link
Owner Author

Considering we covered aap-juce-plugin-host, aap-juce-frequalizer (CMake/effect), aap-juce-hera (CMake/instrument), and aap-juce-obxd (Projucer/instrument), we can close this issue. No need to really test "everything".

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

1 participant