HISE Logo Forum
    • Categories
    • Register
    • Login

    Cannot use Graphics drawing on Linux

    Scheduled Pinned Locked Moved Bug Reports
    linuxgraphicsbug
    15 Posts 4 Posters 785 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oskarshO
      oskarsh
      last edited by

      I've installed HISE on Debian Testing Linux.

      I am running into a super weird bug where I cannot use g.fillRect(a), g.fillEllipse(a)
      Only g.fillAll(Colours.red); is producing any graphics drawing.

      Using f.fillAll(Colours.red);
      Screenshot 2024-05-05 at 13.03.13.jpg

      Using any other graphics. Mac and Windows seem fine.
      Screenshot 2024-05-05 at 13.02.52.jpg

      I am completely puzzled on why this might happen. Any help is much appreciated!

      Thanks in advance

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @oskarsh
        last edited by

        @oskarsh I'm on Debian Testing here and everything is working as expected. Does HISE take a long time to open for you?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        oskarshO 1 Reply Last reply Reply Quote 0
        • oskarshO
          oskarsh @d.healey
          last edited by

          @d-healey yes the loading of HISE is very slow indeed. I thought it is related to the font handling. As you can see the fonts are also messed up in my screenshots so this might be a clue.

          Can you give a tip here @d-healey ?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @oskarsh
            last edited by

            @oskarsh said in Cannot use Graphics drawing on Linux:

            I thought it is related to the font handling.

            It is.

            @oskarsh said in Cannot use Graphics drawing on Linux:

            Can you give a tip here

            Use my fork (development branch) - https://github.com/davidhealey/HISE/tree/development

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            oskarshO 0 2 Replies Last reply Reply Quote 0
            • oskarshO
              oskarsh @d.healey
              last edited by

              @d-healey your fork has some nice optimizations! I've compiled using fftw3 and faust. I've modified the dsp.h faust type file to include <cstdint>
              and while the compile went through... I am still hitting the same issue related to the graphics.

              I can report that HISE loads much quicker now!

              I have the feeling that there is something wrong on my vm system since I am hitting a bunch of bugs and errors related to building HISE and Faust.

              d.healeyD 1 Reply Last reply Reply Quote -1
              • d.healeyD
                d.healey @oskarsh
                last edited by

                @oskarsh said in Cannot use Graphics drawing on Linux:

                I've modified the dsp.h faust type file to include

                I didn't have to do that for it to work on my system

                @oskarsh said in Cannot use Graphics drawing on Linux:

                I have the feeling that there is something wrong on my vm system

                Yeah it sounds like it. What VM software are you using?

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                oskarshO 1 Reply Last reply Reply Quote 0
                • oskarshO
                  oskarsh @d.healey
                  last edited by

                  @d-healey I am using VMware 17 to run the virtual machines.

                  Currently I cannot test on baremetal so I am not sure how this might influence this.

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @oskarsh
                    last edited by

                    @oskarsh My main system is Linux so when I was running VMs on it I was using Gnome Boxes. I've also used Virtual Box. But since a forum member put me onto it I've been using Proxmox on a dedicated system.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    oskarshO 1 Reply Last reply Reply Quote 0
                    • oskarshO
                      oskarsh @d.healey
                      last edited by

                      @d-healey I am currently running a Macbook M1 as my main system and I remotely access a build computer running Windows using Parsec. On this bare metal Windows machine is VMware installed using Linux.

                      This whole process is quite cumbersome since the latency is quite high and debugging this at 2fps is quite challenging. I am looking to upgrade soon.

                      d.healeyD Christoph HartC 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @oskarsh
                        last edited by

                        @oskarsh Yeah that sounds like a pain to use. Definitely try and get some hardware. If you can get an old PC (but not too old) you can run a proxmox system, or just get an old pc/laptop and put Linux on it directly.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • Christoph HartC
                          Christoph Hart @oskarsh
                          last edited by

                          @oskarsh FYI, You can run Windows 11 ARM with the latest Parallels. It's not super performant (and I don't know whether you can actually create x86 binaries with the ARM version of Windows), but I'm using this setup when I need to develop on Windows on the go with my M1 MacBook Air.

                          1 Reply Last reply Reply Quote 1
                          • 0
                            0x7887 @d.healey
                            last edited by

                            @d-healey said in Cannot use Graphics drawing on Linux:

                            Use my fork (development branch) - https://github.com/davidhealey/HISE/tree/development

                            Hi, I can't compile ur fork in latest ubuntu:

                            fa6957f2-9f7a-46f9-a1ec-3dcd45521d85-image.png

                            Christoph branch have GUI problems in linux and it's slow when HISE is starting... BTW I downgraded to GCC/G++ 11 as suggested but the UI problems still occurs.

                            b28735ff-3aa8-4391-8915-fe6d2b644fc3-image.png

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @0x7887
                              last edited by

                              @0x7887 said in Cannot use Graphics drawing on Linux:

                              Hi, I can't compile ur fork in latest ubuntu:

                              You need to install fftw3 - or disable it in Projucer

                              @0x7887 said in Cannot use Graphics drawing on Linux:

                              Christoph branch have GUI problems

                              More details required

                              @0x7887 said in Cannot use Graphics drawing on Linux:

                              it's slow when HISE is starting

                              That's due to the Linux font handler code which I disabled in the Faust target of my fork. However debug builds won't work with it disabled so if you need a debug build you'll have to reenable it. It's handled by this preprocessor definition: USE_LINUX_FONT_HANDLER and is only needed for HISE, not when compiling projects.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              oskarshO 1 Reply Last reply Reply Quote 0
                              • oskarshO
                                oskarsh @d.healey
                                last edited by

                                @d-healey hey what is the chance of merging this into the official repo?

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @oskarsh
                                  last edited by

                                  @oskarsh It is in the official repo already. I've just pre setup my juicer file for my use case.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  8

                                  Online

                                  1.7k

                                  Users

                                  11.8k

                                  Topics

                                  102.8k

                                  Posts