Answered
0
0

Hello,

I starting to port our game to Switch but after I use the node “set programmer sound name” to play a sound from an audiotable, it crash.

In the other platforms, it works fine.

Thank you.

This is is the crash log:
serException handler is called at pid=129

不正なメモリ領域へのデータアクセス (ExceptionType=0x0101)
未マップ空間へのメモリアクセスが発生 (DFSC=0x07)
Accessed to: 0x000000108EE9A120

Thread : 0x000000110FF10008 (FMOD Studio update thread)
Accessed to : 0x000000108EE9A120 (Perhaps stack overflow ?)
Stack Top : 0x000000108EEA1000
Stack Bottom : 0x000000108EEB1000 (size=0x10000)

r0 = 0x000000000D109B60 ( 219192160)
r1 = 0x000000000D58C857 ( 223922263)
r2 = 0x000000000000014F ( 335)
r3 = 0x000000108EEABFD8 ( 71117225944)
r4 = 0x000000108EEABB88 ( 71117224840)
r5 = 0x00000000EBD4FE88 ( 3956604552)
r6 = 0x0000000000000000 ( 0)
r7 = 0x0000000000009823 ( 38947)
r8 = 0x000000108EEABE80 ( 71117225600)
r9 = 0x000000108EEABD48 ( 71117225288)
r10 = 0x0000000000000100 ( 256)
r11 = 0x000000108EEABC38 ( 71117225016)
r12 = 0x00000000000000E8 ( 232)
r13 = 0x0000000000000002 ( 2)
r14 = 0x000000007FFFFFFF ( 2147483647)
r15 = 0x0000000000000018 ( 24)
r16 = 0x0000000015ED12B0 ( 367858352)
r17 = 0x000000001589AA2C ( 361343532)
r18 = 0x000000111A130000 ( 73451896832)
r19 = 0x000000000000014F ( 335)
r20 = 0x000000108EEABFD8 ( 71117225944)
r21 = 0x000000000D58C857 ( 223922263)
r22 = 0x0000000000000001 ( 1)
r23 = 0x000000000D5841D3 ( 223887827)
r24 = 0x000000108EEAAA28 ( 71117220392)
r25 = 0x000000111DF9A308 ( 73517343496)
r26 = 0x00000011326AB608 ( 73860298248)
r27 = 0x000000000F813A40 ( 260127296)
r28 = 0x0000000000000000 ( 0)
r29 = 0x000000108EEABEE0 ( 71117225696)
r30(lr) = 0x00000000081D4D04 ( 136137988)
sp = 0x000000108EE9A180 ( 71117152640)
pc = 0x0000000008090704 ( 134809348)

pstate = 0x80000000 (N=1 Z=0 C=0 V=0 Q=0 J=0 E=0 T=0 IT=0x00 GE=0x0)
afsr0 = 0x00000000
afsr1 = 0x00000000
esr = 0x92000047 (EC=0x24 IL=1 ISS=0x000047)
far = 0x000000108EE9A120

V0 = 0x00000000000000000000000000000000 (0.000000E+00)
V1 = 0xFFFFFF80FFFFFFE8000000108EEABF70 (0.000000E+00)
V2 = 0x000000108EEABF90000000108EEB0030 (0.000000E+00)
V3 = 0x000000000000000000000000BB8C37FA (0.000000E+00)
V4 = 0x000000000000000000000000C0061B8A (0.000000E+00)
V5 = 0x0000000000000000000000003E2AAAAB (0.000000E+00)
V6 = 0x0000000000000000000000003C12E8C5 (0.000000E+00)
V7 = 0x000000000000000000000000B7CDAC61 (0.000000E+00)
V8 = 0x00000000000000000000000000000000 (0.000000E+00)
V9 = 0x00000000000000000000000000000000 (0.000000E+00)
V10 = 0x00000000000000000000000000000000 (0.000000E+00)
V11 = 0x00000000000000000000000000000000 (0.000000E+00)
V12 = 0x00000000000000000000000000000000 (0.000000E+00)
V13 = 0x00000000000000000000000000000000 (0.000000E+00)
V14 = 0x00000000000000000000000000000000 (0.000000E+00)
V15 = 0x00000000000000000000000000000000 (0.000000E+00)
V16 = 0x000000000000000000000000BDBA2000 (0.000000E+00)
V17 = 0x000000000000000000000000388F3D03 (0.000000E+00)
V18 = 0x0000000000000000000000003AFBB6BC (0.000000E+00)
V19 = 0x0000000000000000000000003F7DAC9E (0.000000E+00)
V20 = 0x000000000000000000000000BE09B753 (0.000000E+00)
V21 = 0x0000000000000000000000003F7DAC9E (0.000000E+00)
V22 = 0x000000000000000000000000BE09B753 (0.000000E+00)
V23 = 0x00000000000000000000000080000000 (0.000000E+00)
V24 = 0x000000000000000000000000C02C7422 (0.000000E+00)
V25 = 0x00000000000000000000000000000000 (0.000000E+00)
V26 = 0x00000000000000000000000000000000 (0.000000E+00)
V27 = 0x00000000000000000000000000000000 (0.000000E+00)
V28 = 0x00000000000000000000000000000000 (0.000000E+00)
V29 = 0x00000000000000000000000000000000 (0.000000E+00)
V30 = 0x00000000000000000000000000000000 (0.000000E+00)
V31 = 0x00000000000000000000000000000000 (0.000000E+00)

Stack trace:
0x00000000081D4D04 ZdaPvm+0x19F9A8 (too far)
0x00000000081D5500 _ZdaPvm+0x1A01A4 (too far)
0x0000000008294CFC _ZdaPvm+0x25F9A0 (too far)
0x0000000008295AB4 _ZdaPvm+0x260758 (too far)
0x000000000B69F2F4 png_get_io_chunk_name+0x3619C (too far)
0x000000000B69EEA0 png_get_io_chunk_name+0x35D48 (too far)
0x000000000BB41FE8 _ZN4FMOD19ShadowEventInstance15executeCallbackEjPv+0x100
0x000000000BB41ADC _ZN4FMOD19ShadowEventInstance15enqueueCallbackEjPv+0x138
0x000000000BB41C64 _ZN4FMOD19ShadowEventInstance21createProgrammerSoundEPNS_13EventInstanceERK9FMOD_GUIDRKNS_6StringEPPNS_5SoundEPi+0xE0
0x000000000BA3B6AC _ZN4FMOD13EventInstance25createProgrammerSoundImplERK9FMOD_GUIDRKNS_6StringEPPNS_5SoundEPi+0x4C
0x000000000BA60A20 _ZN4FMOD32ProgrammerResourceInstanceHandle6createEPNS_25ProgrammerInstrumentModelEPNS_13EventInstanceEPPS0+0x4C
0x000000000BA429B4 ZN4FMOD33InstrumentInstanceCreationVisitor30visitProgrammerInstrumentModelEPNS_25ProgrammerInstrumentModelE+0x38
0x000000000BA40278 _ZN4FMOD25InstrumentInstanceFactory6createEPNS_15InstrumentModelES2_PNS_12ChannelGroupEPPNS_18InstrumentInstanceE+0x12C
0x000000000BA49210 _ZN4FMOD25InstrumentInstanceManager18scheduleInstrumentEPNS_15InstrumentModelEiNS_9ClockTimeES3_NS_8TimeUnitEfPPNS_18InstrumentInstanceE+0x124
0x000000000BA6389C _ZNK4FMOD9Scheduler5startEPNS_22InstrumentTriggerStateE+0x5A4
0x000000000BA3AB28 _ZN4FMOD13EventInstance26activateTriggerForTimelineERKNS_2IDINS_15InstrumentModelEEERKNS_9SchedulerEbNS_9ClockTimeEb+0x128
0x000000000BA8109C _ZN4FMOD16TimelineInstance19scheduleInstrumentsERKNS_22TimelineReferencePointERKNS_16SchedulingWindowEiRKNS_12DynamicArrayINS_13TimelineModel10TriggerBoxENS_19ArrayConstruct_AutoIS9_EENS_16AlignedAllocatorILi1EEEEEbb+0x234
0x000000000BA80E28 _ZN4FMOD16TimelineInstance17scheduleForWindowERKNS_22TimelineReferencePointERKNS_16SchedulingWindowENS0_12ScheduleModeE+0x17C
0x000000000BA7A3F8 _ZN4FMOD16TimelineInstance17performSchedulingERKNS_8TimeUnitENS0_12ScheduleModeES1+0xDD0
0x000000000BA795F8 _ZN4FMOD16TimelineInstance16scheduleForStartEv+0x68
0x000000000BA35D54 _ZN4FMOD13EventInstance14updateForStartEb+0x294
0x000000000BA35638 _ZN4FMOD13EventInstance5startEv+0x294
0x000000000BA05D2C _ZN4FMOD32AsyncCommand_eventInstance_start11executeMainEPNS_10RuntimeAPI7ManagerE+0x88
0x000000000BA1A914 _ZN4FMOD12AsyncManager20executeDirectCommandEPNS_12AsyncCommandE+0xE8
0x000000000BA1B9D0 _ZN4FMOD12AsyncManager20asyncProcessCommandsEv+0x10C
0x000000000BA1A088 _ZN4FMOD12AsyncManager21asyncProcessAndUpdateEv+0x1F0
0x000000000BA1BE3C _ZN4FMOD12AsyncManager15asyncThreadLoopEv+0xA8
0x000000000B9330BC _ZN4FMOD6Thread8callbackEPv+0x74
0x0000000015480ACC (unknown)
0x0000000015486608 (unknown)

  • Nazhor

    If I remove the call to the “set programmer sound name” node the execution didn’t crash

  • Cameron Baron

    Thanks for the information, I am currently looking into this and will hopefully have an answer for you soon.

  • You must to post comments
Best Answer
1
0

It looks like this was caused by a threading issue with UE4’s Module system.
I have submitted a fix that will be in the next release, which should be out in the next week once it has passed QA.

  • You must to post comments
0
0

Sounds like you hit the bug I detailed here:
http://www.fmod.org/questions/question/fmod-crash-with-setprogrammersoundname-in-ue/
You can swipe the code from there to fix it if you want.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.