Cannot create a new project in Dataflow Complier Studio

I have set up a new Ubuntu 20.4 environment (x86) with 32 GBy Ram and 20 GBy disk (AWS r5.xlarge) and installed DFC 3.31.0 on Python 3.10.12 (via virtualenv).

I run DFC Studio using this command:

hailo dfc-studio

Then I get the screen “Create your first project”, enter my project name, and click “Create Project”. No project is created, and I get an indicator in the upper right “Project was not created”. No other error messages show in terminal were I ran Studio.

Here is the terminal output:

[info] Current Time: 06:25:56, 04/03/25
[info] CPU: Architecture: x86_64, Model: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz, Number Of Cores: 4, Utilization: 0.0%
[info] Memory: Total: 30GB, Available: 29GB
[info] System info: OS: Linux, Kernel: 6.8.0-1024-aws
[info] Hailo DFC Version: 3.31.0
[info] HailoRT Version: Not Installed
[info] PCIe: No Hailo PCIe device was found
[info] Running `hailo dfc-studio`
[info] Checking requirements
[info] Node.js is installed. Version: v20.19.0 meets the minimum requirement of v20.9.0
[info] Checking and installing DFC Studio dependencies
[info] Starting DFC Studio
App listening at http://localhost:3000

I have plenty of available disk space:

(hailo) ubuntu@ip-172-31-58-190:~$ df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root         20G  7.4G   12G  39% /
tmpfs             16G     0   16G   0% /dev/shm
tmpfs            6.2G  896K  6.2G   1% /run
tmpfs            5.0M     0  5.0M   0% /run/lock
efivarfs         128K  3.6K  120K   3% /sys/firmware/efi/efivars
/dev/nvme0n1p15  105M  6.1M   99M   6% /boot/efi
tmpfs            3.1G  4.0K  3.1G   1% /run/user/1000

My user is umbuntu and I run Studio it it’s home directory.

Got this to work, and documenting for future reference by the community…

I switched to using the docker image, but get the same error message.

Eventually, I resolved the issue by inspecting the browser console logs:

Studio is using local file access, and showDirectoryPicker is only available in a secure environment under Chrome. There is a Chrome option --unsafely-treat-insecure-origin-as-secure that allows one to specify a origin, and then Studio works.

On Mac OS the command line looks like this:

open -a "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --args --user-data-dir=/tmp/chrome-dev-profile --unsafely-treat-insecure-origin-as-secure=http://<hostname>:3000
1 Like