TurboWarp / desktop

A better offline editor for Scratch 3.
https://desktop.turbowarp.org/
GNU General Public License v3.0
344 stars 71 forks source link

TurboWarp not working on Debian Bullseye (ARM64) Mali T720 GPU #1002

Closed abirabedinkhan closed 3 weeks ago

abirabedinkhan commented 1 month ago

When I try to open turbowarp it says "process crash: gpu crashed (11)". when I run with turbowarp-desktop --no-sandbox it shows -> WIN_20240526_22_18_43_Pro WIN_20240526_22_17_45_Pro https://github.com/TurboWarp/desktop/assets/67215274/cffeca2f-0fa9-4be6-85b7-f51ea1606c09

GarboMuffin commented 1 month ago

What do you see in the file ~/.config/turbowarp-desktop/tw_config.json and what hardware are you running this on?

abirabedinkhan commented 1 month ago
$ cat ~/.config/turbowarp-desktop/tw_config.json
{
  "v2": {
    "dataVersion": 3,
    "desktopVersion": "1.11.1",
    "electronVersion": "29.3.0"
  }
}
$ sudo lshw
Network interfaces
bongopc
    description: Computer
    product: Tanix TX6
    serial: 82c000032765ae5b
    width: 64 bits
    capabilities: smp cp15_barrier setend swp tagged_addr_disabled
  *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 0
          bus info: cpu@0
          size: 1704MHz
          capacity: 1704MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@1
          size: 1704MHz
          capacity: 1704MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:2
          description: CPU
          product: cpu
          physical id: 2
          bus info: cpu@2
          size: 1704MHz
          capacity: 1704MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:3
          description: CPU
          product: cpu
          physical id: 3
          bus info: cpu@3
          size: 1704MHz
          capacity: 1704MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-memory
          description: System memory
          physical id: 4
          size: 1984MiB
  *-usbhost:0
       product: xHCI Host Controller
       vendor: Linux 5.15.27-station xhci-hcd
       physical id: 2
       bus info: usb@1
       logical name: usb1
       version: 5.15
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:1
       product: xHCI Host Controller
       vendor: Linux 5.15.27-station xhci-hcd
       physical id: 3
       bus info: usb@2
       logical name: usb2
       version: 5.15
       capabilities: usb-3.00
       configuration: driver=hub slots=1 speed=5000Mbit/s
  *-usbhost:2
       product: EHCI Host Controller
       vendor: Linux 5.15.27-station ehci_hcd
       physical id: 4
       bus info: usb@3
       logical name: usb3
       version: 5.15
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:3
       product: EHCI Host Controller
       vendor: Linux 5.15.27-station ehci_hcd
       physical id: 5
       bus info: usb@4
       logical name: usb4
       version: 5.15
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:4
       product: Generic Platform OHCI controller
       vendor: Linux 5.15.27-station ohci_hcd
       physical id: 6
       bus info: usb@5
       logical name: usb5
       version: 5.15
       capabilities: usb-1.10
       configuration: driver=hub slots=1 speed=12Mbit/s
  *-usbhost:5
       product: Generic Platform OHCI controller
       vendor: Linux 5.15.27-station ohci_hcd
       physical id: 7
       bus info: usb@6
       logical name: usb6
       version: 5.15
       capabilities: usb-1.10
       configuration: driver=hub slots=1 speed=12Mbit/s
     *-usb
          description: Mouse
          product: Rapoo 2.4G Wireless Device
          vendor: RAPOO
          physical id: 1
          bus info: usb@6:1
          version: 1.10
          capabilities: usb-2.00
          configuration: driver=usbhid maxpower=100mA speed=12Mbit/s
  *-usbhost:6
       product: MUSB HDRC host driver
       vendor: Linux 5.15.27-station musb-hcd
       physical id: 1
       bus info: usb@7
       logical name: usb7
       version: 5.15
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-network:0
       description: Ethernet interface
       physical id: 8
       logical name: eth0
       serial: 02:03:27:65:ae:5b
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_mac100 driverversion=Jan_2016 link=no multicast=yes port=twisted pair
  *-network:1
       description: Wireless interface
       physical id: 9
       logical name: wlan0
       serial: 12:03:27:65:ae:5b
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=xradio_wlan driverversion=5.15.27-station firmware=N/A ip=10.0.1.109 link=yes multicast=yes wireless=IEEE 802.11
abirabedinkhan commented 1 month ago

Processor: Allwinner H6 Grapics : Mali T720 GPU

GarboMuffin commented 1 month ago

I assume you've read https://wiki.debian.org/MaliGraphics. Does it work without --no-sandbox or in Chromium if you visit https://turbowarp.org/editor ?

You could try replacing ~/.config/turbowarp-desktop/tw_config.json with

{
  "v2": {
    "dataVersion": 3,
    "desktopVersion": "1.11.1",
    "electronVersion": "29.3.0",
    "hardwareAcceleration": false
  }
}

but I'm not too hopeful

It works for me in a fresh Debian 11 VM so it's definitely something about those GPU drivers. That's all a lot of code that we don't control so not a whole further I can help

abirabedinkhan commented 1 month ago

Its not woring on chromium but its working on firefox WIN_20240527_16_32_48_Pro WIN_20240527_16_34_28_Pro

after that I checked the GPU on the chromium the WebGL is not working WIN_20240527_16_38_13_Pro

But on the firefox webGL is working perfectly fine. WIN_20240527_16_40_11_Pro

GarboMuffin commented 1 month ago

If it doesn't work in Chromium then there's not much I can do since this is an Electron app :(

abirabedinkhan commented 1 month ago

is there any alternative to Electron that is based on Firefox??

GarboMuffin commented 1 month ago

No :(

GarboMuffin commented 3 weeks ago

The latest Electron releases claim to have

Fixed crash in gpu process when software compositing is enabled on linux with x11 platform

wouldn't get too excited but that might fix this? we can see when it gets included in the next TurboWarp update

SolidLamp commented 3 weeks ago

I am glad to see the issue fixed, but I would just like to add that there is a Gecko (Firefox)-based alternative to Electron called Neutron, which powers the Vencord unofficial Discord client. It only supports Linux and has a very small development team, especially when compared to Electron. If you really wanted, you could possibly get TurboWarp working on Neutron, if a Chromium-specific issue were to occur again.

abirabedinkhan commented 3 weeks ago

The latest Electron releases claim to have

Fixed crash in gpu process when software compositing is enabled on linux with x11 platform

wouldn't get too excited but that might fix this? we can see when it gets included in the next TurboWarp update

lmk when the new version of TurboWarp gets released

GarboMuffin commented 5 days ago

you should try the latest chromiums, if it still doesn't work there then it definitely won't work here

abirabedinkhan commented 4 days ago

okk ill try and let you know