[TouchDesigner.2020.42700] freezes if i try to load a new file in Movie File In

When i create a new project and add a Movie File In, i can change the file by pressing the +.
If i the save the project and quit Touchdesigner, and restart it and then reload my project, it crashes when i try to load a file.
This also happened on the pervious version.

Im on a mac, and i get the following dump:

Process: TouchDesigner [48139]
Path: /Applications/TouchDesigner.app/Contents/MacOS/TouchDesigner
Identifier: ca.derivative.TouchDesigner
Version: 2020.42700 (2020.42700)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: TouchDesigner [48139]
User ID: 501

Date/Time: 2020-10-31 17:07:04.502 +0100
OS Version: Mac OS X 10.15.6 (19G73)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 419911E5-20EB-5A9D-9BBF-28C3DB770122

Sleep/Wake UUID: 42B057B6-B90D-4829-8D17-5BCC7FFD4637

Time Awake Since Boot: 810000 seconds
Time Since Wake: 640 seconds

System Integrity Protection: enabled

Crashed Thread: 7 TouchDesigner

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
terminating with uncaught exception of type utf8::not_enough_room: Not enough space

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6ef91dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6ef92170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff34de5ef5 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff34de49c2 __CFRunLoopRun + 1319
4 com.apple.CoreFoundation 0x00007fff34de3e3e CFRunLoopRunSpecific + 462
5 com.apple.HIToolbox 0x00007fff33a10abd RunCurrentEventLoopInMode + 292
6 com.apple.HIToolbox 0x00007fff33a107d5 ReceiveNextEventCommon + 584
7 com.apple.HIToolbox 0x00007fff33a10579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 com.apple.AppKit 0x00007fff32056039 _DPSNextEvent + 883
9 com.apple.AppKit 0x00007fff32054880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
10 com.apple.AppKit 0x00007fff3204658e -[NSApplication run] + 658
11 libOPUI.dylib 0x00000001105d2c07 0x110598000 + 240647
12 ca.derivative.TouchDesigner 0x000000010e72bee0 0x10e728000 + 16096
13 libdyld.dylib 0x00007fff6ee50cc9 start + 1

Thread 1:: org.libusb.device-detach
0 libsystem_kernel.dylib 0x00007fff6ef91dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6ef92170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff34de5ef5 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff34de49c2 __CFRunLoopRun + 1319
4 com.apple.CoreFoundation 0x00007fff34de3e3e CFRunLoopRunSpecific + 462
5 com.apple.CoreFoundation 0x00007fff34e6c489 CFRunLoopRun + 40
6 libUT.dylib 0x000000011216bbeb 0x112025000 + 1338347
7 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
8 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 2:
0 libsystem_kernel.dylib 0x00007fff6ef983d6 poll + 10
1 libUT.dylib 0x0000000112169b31 0x112025000 + 1329969
2 libUT.dylib 0x0000000112169e18 0x112025000 + 1330712
3 libUT.dylib 0x0000000112169f11 0x112025000 + 1330961
4 libUT.dylib 0x00000001121700f6 0x112025000 + 1356022
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 3:
0 libsystem_kernel.dylib 0x00007fff6ef91dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6ef92170 mach_msg + 60
2 com.apple.audio.midi.CoreMIDI 0x00007fff35c3d635 XServerMachPort::ReceiveMessage(int&, void*, int&) + 95
3 com.apple.audio.midi.CoreMIDI 0x00007fff35c5afee MIDIProcess::RunMIDIInThread() + 104
4 com.apple.audio.midi.CoreMIDI 0x00007fff35c59d5e XThread::RunHelper(void*) + 10
5 com.apple.audio.midi.CoreMIDI 0x00007fff35c3d331 CAPThread::Entry(CAPThread*) + 77
6 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
7 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 4:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 6:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 7 Crashed:: TouchDesigner
0 libsystem_kernel.dylib 0x00007fff6ef9833a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6f054e60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6ef1f808 abort + 120
3 libc++abi.dylib 0x00007fff6c17e458 abort_message + 231
4 libc++abi.dylib 0x00007fff6c16f8a7 demangling_terminate_handler() + 238
5 libobjc.A.dylib 0x00007fff6dcaa5b1 _objc_terminate() + 104
6 libc++abi.dylib 0x00007fff6c17d887 std::__terminate(void ()()) + 8
7 libc++abi.dylib 0x00007fff6c1801a2 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception
) + 27
8 libc++abi.dylib 0x00007fff6c180169 __cxa_throw + 113
9 libCMD.dylib 0x0000000111a5b4b8 0x111a44000 + 95416
10 libCMD.dylib 0x0000000111a5b0a3 0x111a44000 + 94371
11 libUI.dylib 0x00000001108b5be7 0x110878000 + 252903
12 libPSI2.dylib 0x0000000110733571 0x110727000 + 50545
13 libPSI2.dylib 0x0000000110733cea 0x110727000 + 52458
14 libUI.dylib 0x00000001108aecc3 0x110878000 + 224451
15 libUI.dylib 0x00000001108aee92 0x110878000 + 224914
16 libUI.dylib 0x00000001108af2d0 0x110878000 + 226000
17 libOPUI.dylib 0x00000001105d2476 0x110598000 + 238710
18 libOPUI.dylib 0x00000001105d4b24 0x110598000 + 248612
19 libUT.dylib 0x0000000112148696 0x112025000 + 1193622
20 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
21 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 8:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff6ef91dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6ef92170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff34de5ef5 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff34de49c2 __CFRunLoopRun + 1319
4 com.apple.CoreFoundation 0x00007fff34de3e3e CFRunLoopRunSpecific + 462
5 com.apple.AppKit 0x00007fff321f7954 _NSEventThread + 132
6 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
7 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 9:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libc++.1.dylib 0x00007fff6c123623 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3 libAV.dylib 0x00000001128e3ce2 threadLoop() + 994
4 libAV.dylib 0x00000001128e6328 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void ()()> >(void) + 40
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 10:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 11:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 12:
0 libsystem_pthread.dylib 0x00007fff6f050b68 start_wqthread + 0

Thread 13:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libUT.dylib 0x0000000112060e3b 0x112025000 + 245307
3 libUT.dylib 0x00000001120742e3 0x112025000 + 324323
4 libUT.dylib 0x0000000112148696 0x112025000 + 1193622
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 14:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libsrt.1.dylib 0x000000011cc5448d 0x11cc51000 + 13453
3 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
4 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 15:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libUT.dylib 0x0000000112060e3b 0x112025000 + 245307
3 libUT.dylib 0x0000000112148d15 0x112025000 + 1195285
4 libUT.dylib 0x0000000112148696 0x112025000 + 1193622
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 16:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libUT.dylib 0x0000000112060e3b 0x112025000 + 245307
3 libUT.dylib 0x0000000112148d15 0x112025000 + 1195285
4 libUT.dylib 0x0000000112148696 0x112025000 + 1193622
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 17:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libUT.dylib 0x0000000112060e3b 0x112025000 + 245307
3 libUT.dylib 0x0000000112148d15 0x112025000 + 1195285
4 libUT.dylib 0x0000000112148696 0x112025000 + 1193622
5 libsystem_pthread.dylib 0x00007fff6f055109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f050b8b thread_start + 15

Thread 18:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libavcodec.58.91.100.dylib 0x000000011be60414 0x11b9d9000 + 4748308
3 ??? 0x000020a000000000 0 + 35871566856192

Thread 19:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libavcodec.58.91.100.dylib 0x000000011be60414 0x11b9d9000 + 4748308
3 ??? 0x000020a000000000 0 + 35871566856192

Thread 20:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libavcodec.58.91.100.dylib 0x000000011be60414 0x11b9d9000 + 4748308
3 ??? 0x000020a000000000 0 + 35871566856192

Thread 21:
0 libsystem_kernel.dylib 0x00007fff6ef94882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f055425 _pthread_cond_wait + 698
2 libavcodec.58.91.100.dylib 0x000000011be60414 0x11b9d9000 + 4748308
3 ??? 0x000020a000000000 0 + 35871566856192

Thread 7 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000700009aaf000 rcx: 0x0000700009aae288 rdx: 0x0000000000000000
rdi: 0x000000000001480b rsi: 0x0000000000000006 rbp: 0x0000700009aae2b0 rsp: 0x0000700009aae288
r8: 0x0000700009aae150 r9: 0x0000700009aae320 r10: 0x0000700009aaf000 r11: 0x0000000000000246
r12: 0x000000000001480b r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff6ef9833a rfl: 0x0000000000000246 cr2: 0x0000000107a59bff

Logical CPU: 0
Error Code: 0x020000b8
Trap Number: 133

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 6
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: 1156753
thread_create: 0
thread_set_state: 0

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

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 512K 4
Activity Tracing 256K 1
CG backing stores 992K 2
CG image 352K 29
CoreAnimation 248K 12
CoreGraphics 8K 1
CoreImage 24K 2
CoreUI image data 1204K 11
Foundation 4K 1
IOKit 7940K 1
Kernel Alloc Once 8K 1
MALLOC 1.0G 439
MALLOC guard page 32K 8
MALLOC_LARGE (reserved) 1880K 11 reserved VM address space (unallocated)
OpenGL GLSL 384K 5
STACK GUARD 56.1M 22
Stack 24.2M 24
VM_ALLOCATE 57.7M 256
__DATA 69.3M 650
__DATA_CONST 10.1M 18
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 423.0M 393
__OBJC_RO 32.3M 1
__OBJC_RW 1908K 2
__TEXT 429.1M 571
__UNICODE 564K 1
__WCODE 1484K 2
mapped file 70.1M 28
shared memory 648K 17
=========== ======= =======
TOTAL 2.2G 2515
TOTAL, minus reserved VM space 2.2G 2515

Model: MacBookPro14,2, BootROM 428.0.0.0.0, 2 processors, Dual-Core Intel Core i5, 3,1 GHz, 8 GB, SMC 2.44f5
Graphics: kHW_IntelIrisGraphics650Item, Intel Iris Plus Graphics 650, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039
Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x171), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1615.1)
Bluetooth: Version 7.0.6f7, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.4
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.4

Thanks, we’ve had another similar report and are looking into the issue.

1 Like

Thanks for your report. So the crash spot looks to be after you’ve picked a file from a file choosing dialog via the parameter dialog.

I haven’t been able to reproduce a crash with the directions you gave, can you be a bit more precise? When you changed the file after creating a Movie File In TOP, which file did you change it to? What is the file path for your .toe and for the file you were trying to load? What is the default language you are running?

Thanks!

Hi Selina,
the steps i did was:

  1. open td
  2. delete the nodes
  3. create a movie in top
  4. change file to butterfly
  5. it works
  6. save Documents/crash.toe
  7. open td
  8. open Documents/crash.toe
  9. close td while crash.toe is loading
  10. when crash.toe is loaded, change the file back to banana (in my other attempts, any file will cause a crash)
  11. crash!

I have the .toe file, but cannot upload it because i am a new user. My default language is English, my region is Denmark.

Sincerely
Morten

Hey, can you elaborate on step 7? How are you opening another fresh copy of TD at this point when TD is already running? What are you clicking on exactly?

Hi,
when i open crash.toe, it starts up a new instance of td (showing the splash/loading screen). when that is showing i clicked on the red ‘close window’ dot on the current instance.

As i said, i have a .toe file that crashens when i change the file, so if you can enable upload for my user account, i can attach it?

So is step 7 and 8 a single step? Just double click on the .toe file to open the 2nd TD instance?
I don’t have control over that myself unfortunately. You could use dropbox to send it though.

ah i think i see the problem.
step 6.5 close td (so there is nothing in memory)

so, step 7 is from a clean slate
7. open td (click icon on desktop)
8. open Documents/crash.toe (click file->open in td)
9. close td while crash.toe is loading (press red dot, while the splash screen is showing that crash.toe is loading)

The .toe file that crashes is here

Hope this helps
Morten

Thanks, unfortunately I’m still unable to reproduce. Is there any chance you could record a video if it occuring? It’s possible the bug is very specific to your system somehow though (or similar systems)

Hi Malcolm,
i recorded the sequence here:

Morten

Does this happen if you save the file to anywhere else, like your desktop? I’m wondering if the fact is saving to ‘Documents - Local’ is the thing I need to reproduce exactly. I assume the - Local part (which I don’t have on my machine) is an iCloud thing?

Thats well spotted! If i move the file to the desktop and load it, i can change images without crashing.
I’m not sure what the ‘local’ means. it’s just my local Documents folder.
I seems that i have a Docuents folder on my iCloud account, but that is not something i remember setting up.

Now i set up Documents on iCloud, and after it had copied everything around i now have a Documents folder on iCloud, and when i load from there, it crashes in the same way.

Does it crash if it’s loaded from any other location? If you copy/paste that file around does the same operation work from everywhere but documents?

Also does it crash when you load other files? I’m trying all kinds of ways to reproduce this on my system but no luck so far

I copied the same file from the documents folder to the desktop and loaded it and it didn’t fail

If you set up iCloud and tell it to sync your documents folder (so that the documents folder lives in icloud), does it not fail then?

I’ve tried both with it syncing and not syncing and both cases work on my machine annoyingly

Weird… On my machine it consistently fails from the Documents folder but not from the desktop, at least until now. And the same file works if saved to Documents and then moved to the desktop.

Anecdotally, I noticed that the same thing happens with Audio File In, so it might be related to the file selection in it self.