[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New malfunction compiling Gambas3 (last master)


Il 10/08/24 13:48, Gianluigi ha scritto:
Il 10/08/24 08:36, Gianluigi ha scritto:
Il 09/08/24 23:44, Gianluigi ha scritto:
Hi Benoit,

sorry, now compiling I get no errors but I can't start Gambas, this is
the return of the terminal:

$ gambas3
*** buffer overflow detected ***: terminated
Annullato (core dump creato)

(*) GNU gdb

Regards and good night
Gianluigi

I keep getting the same error.
These are the terminal commands with valgrind:

gian@gian:~/gambasdevel/app/src/gambas3$ valgrind --version
valgrind-3.18.1
gian@gian:~/gambasdevel/app/src/gambas3$ valgrind --tool=memcheck
--num-callers=50 gbx3 > valgrind.out 2>&1
Annullato (core dump creato)

Output attached

Regards
Gianluigi

P.S. Benoit, are you sure that with:
git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel
I get the latest commit?

same problems on ubuntu 24.04 LTS
See attachment

Regards
Gianluigi

... and on manjaro :

echo $XDG_SESSION_TYPE
wayland
gambas3
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/lib/qt6/qtwebengine_dictionaries'
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0

No Gambas3!!!!!!!!!!



echo $XDG_SESSION_TYPE
x11
gambas3
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path
'/usr/lib/qt6/qtwebengine_dictionaries'

Gambas 3 works and this project works well:

' Gambas module file


Fast

' From a vuott idea
' Try the calculation with and without Fast (documenting it)

Public Sub Main()

  Dim StartTime As Float
  Dim DiffTime As Float
  Dim I As Integer

  StartTime = Timer

  For I = 1 To 10
    Print Test(0.2)
  Next

  DiffTime = Timer - StartTime
  Print "End test in "; DiffTime; " sec" '<-- 2,97 sec

End

Sub Test(X As Float) As Float

  Dim Mu As Float = 10.0
  Dim Pu, Su As Float
  Dim I, J, N As Integer
  Dim aPoly As New Float[100]

  N = 500000

  For I = 0 To N - 1
    For J = 0 To 99
      Mu = (Mu + 2.0) / 2.0
      aPoly[J] = Mu
    Next
    Su = 0.0
    For J = 0 To 99
      Su = X * Su + aPoly[J]
    Next
    Pu += Su
  Next

  Return Pu

End

Regards
Gianluigi



Follow-Ups:
Re: New malfunction compiling Gambas3 (last master)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
New malfunction compiling Gambas3 (last master)Gianluigi <gradobag@xxxxxxxxxxx>
Re: New malfunction compiling Gambas3 (last master)Gianluigi <gradobag@xxxxxxxxxxx>
Re: New malfunction compiling Gambas3 (last master)Gianluigi <gradobag@xxxxxxxxxxx>