Re: [Faudiostream-users] Web IDE VST output on Mac (codesign issues)

2023-07-16 Thread Seth Shafer
Thank you Stéphane and Henrik.

I'm pasting a Reaper crash log at the end of this email. This is from a
crash just now for a Faust web IDE plugin named "sinewave.vst." This is
after I ran the codesign correction scripts from my first message.

I saw the JSFX export option and I'll check it out. However, I think
students will be less impressed with that compared to making VSTs or AUs.

VST3 would be great too and JUCE is a possibility. But it would be even
better for these undergraduates if the web IDE's VST output worked for Mac.

-Seth

-
Translated Report (Full Report Below)
-

Process:   reaper_host_x86_64 [92589]
Path:  /Applications/REAPER.app/Contents/Plugins/
reaper_host_x86_64.app/Contents/MacOS/reaper_host_x86_64
Identifier:com.cockos.reaperhostx8664
Version:   6.80.0_d140e13u (6.80.0_d140e13u)
Code Type: X86-64 (Translated)
Parent Process:REAPER [92588]
Responsible:   REAPER [92586]
User ID:   1116670758

Date/Time: 2023-07-16 12:42:07.0918 -0500
OS Version:macOS 13.2.1 (22D68)
Report Version:12
Anonymous UUID:036D35E7-C2F0-9378-18F0-9DE815450FCA

Sleep/Wake UUID:   14C58374-0B2F-41FF-AE3E-F12E9BE78A2F

Time Awake Since Boot: 35 seconds
Time Since Wake:   904 seconds

System Integrity Protection: enabled

Crashed Thread:0  */br_s  Dispatch queue: com.apple.main-thread

Exception Type:EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:   0x0001, 0x

Termination Reason:Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process:   exc handler [92589]

Thread 0 Crashed:: */br_s Dispatch queue: com.apple.main-thread
0   sinewave 0x10b581327 VSTPluginMain + 23
1   reaper_host_x86_64   0x102e3c9f3
VST_BridgeSlaveHost::Create(SHM_MsgReplyConnection*,
SHM_MsgReplyConnection::WaitingMessage*) + 141
2   reaper_host_x86_64   0x102e3aac8
DispatchConMsg(SHM_MsgReplyConnection*,
SHM_MsgReplyConnection::WaitingMessage*, bool) + 170
3   reaper_host_x86_64   0x102e3acba
RunMainThreadQueue(SHM_MsgReplyConnection*) + 82
4   reaper_host_x86_64   0x102e44a0b
SHM_MsgReplyConnection::RunInternal(int,
SHM_MsgReplyConnection::WaitingMessage**) + 477
5   reaper_host_x86_64   0x102e3b772 main + 407
6   dyld 0x20323f310 start + 2432

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime  0x7ff7ffcd9614 0x7ff7ffcd5000 + 17940
1   runtime  0x7ff7ffce5530 0x7ff7ffcd5000 + 66864
2   runtime  0x7ff7ffce6f30 0x7ff7ffcd5000 + 73520

Thread 2:
0   runtime  0x7ff7ffcf787c 0x7ff7ffcd5000 + 141436


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00010b581310  rbx: 0x000102e3ca8a  rcx: 0x
 rdx: 0x
  rdi: 0x  rsi: 0x0001  rbp: 0x00030a166690
 rsp: 0x00030a166680
   r8: 0x   r9: 0x01ff  r10: 0x18a0
 r11: 0x63ecb0f0
  r12: 0x632c1200  r13: 0x00013df0cfb0  r14: 0x7fdb6e1045d0
 r15: 0x
  rip:rfl: 0x0202
 tmp0: 0x00010b581327 tmp1: 0x8548d3ffc057f8c5 tmp2: 0x00e8df89481f74c0


Binary Images:
   0x10b58 -0x10b5acfff sinewave (1.0.0)
<1eb0c9b8-b980-3ab8-9777-32af66d420c3> /Users/USER/Desktop/*/sinewave
   0x102e36000 -0x102e51fff com.cockos.reaperhostx8664
(6.80.0_d140e13u) <676dd667-1475-3c7f-b480-b1ae6e96d64b>
/Applications/REAPER.app/Contents/Plugins/
reaper_host_x86_64.app/Contents/MacOS/reaper_host_x86_64
   0x203239000 -0x2032d0fff dyld (*)
 /usr/lib/dyld
0x7ff7ffcd5000 - 0x7ff7ffd04fff runtime (*)
 /usr/libexec/rosetta/runtime

External Modification Summary:
  Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
  Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
  Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=380.1M resident=0K(0%)
swapped_out_or_unallocated=380.1M(100%)
Writable regions: Total=824.8M written=0K(0%) resident=0K(0%)
swapped_out=0K(0%) unallocated=824.8M(100%)

VIRTUAL   REGION
REGION TYPESIZECOUNT (non-coalesced)
=== ===  ===
Activity Tracing   256K1
Kernel Alloc Once8K1
MALLOC   163.2M   16
MALLOC guard page   96K4
MALLOC_MEDIUM (reserved) 120.0M1 

Re: [Faudiostream-users] Web IDE VST output on Mac (codesign issues)

2023-07-16 Thread Henrik Frisk
On Sat, Jul 15, 2023, 11:20 PM Stéphane Letz  wrote:

>
>
>
> >
> > Following this, I opened Reaper and re-scanned, resulting in a crash of
> the vst host, plugin still not showing up.
>
> Do you have a crash log?
>

I've experienced this too recently (M1) with reaper and Faust VST plugins,
but haven't been able to track it down.

>
> > Does anyone have any suggestions for building audio plugins on the
> current MacOS using the web IDE export options? (Hoping to find a web IDE
> solution since this is in a lab where students do not have admin
> privileges.)
>

I started working on moving to VST3 but the process is quite cumbersome and
involves manual tweeking and uses Juce, so this is not for you I guess.


> For Reaper, you can possibly use the JSFX backend recently added in the
> Faust compiler, and available in the Export section in the Faust IDE
>

I had missed this, I will definitely try this!

/Henrik
___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


Re: [Faudiostream-users] Web IDE VST output on Mac (codesign issues)

2023-07-15 Thread Stéphane Letz


> Le 15 juil. 2023 à 22:43, Seth Shafer  a écrit :
> 
> Hi all,
> 
> I'm prepping materials for teaching FAUST this Fall and attempted to export a 
> VST via the web IDE. The resulting plugin triggered codesign errors on my 
> MacOS 13.2.1. I tried the typical terminal commands to remedy:

Yes, the macOS cloud machine we use does not support that. 
> 
> sudo xattr -cr PLUGIN.vst
> sudo xattr -r -d com.apple.quarantine PLUGIN.vst
> sudo codesign --force --deep --sign PLUGIN.vst
> 
> Following this, I opened Reaper and re-scanned, resulting in a crash of the 
> vst host, plugin still not showing up.

Do you have a crash log?
> 
> Does anyone have any suggestions for building audio plugins on the current 
> MacOS using the web IDE export options? (Hoping to find a web IDE solution 
> since this is in a lab where students do not have admin privileges.)
> 
> Thanks.
> -Seth

For Reaper, you can possibly use the JSFX backend recently added in the Faust 
compiler, and available in the Export section in the Faust IDE

Stéphane  



___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


[Faudiostream-users] Web IDE VST output on Mac (codesign issues)

2023-07-15 Thread Seth Shafer
Hi all,

I'm prepping materials for teaching FAUST this Fall and attempted to export
a VST via the web IDE. The resulting plugin triggered codesign errors on my
MacOS 13.2.1. I tried the typical terminal commands to remedy:

sudo xattr -cr PLUGIN.vst
sudo xattr -r -d com.apple.quarantine PLUGIN.vst
sudo codesign --force --deep --sign PLUGIN.vst

Following this, I opened Reaper and re-scanned, resulting in a crash of the
vst host, plugin still not showing up.

Does anyone have any suggestions for building audio plugins on the current
MacOS using the web IDE export options? (Hoping to find a web IDE solution
since this is in a lab where students do not have admin privileges.)

Thanks.
-Seth
___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users