Forum > Suggestions

[Problem solved] Wish: stop the race after Delphi

<< < (2/13) > >>

funlw65:

--- Quote from: Handoko on December 27, 2020, 01:17:40 pm ---
--- Quote from: funlw65 on December 27, 2020, 12:30:47 pm ---I get occasional program crashes under Linux, no matter which pascal version, with both gtk2 and qt5 ...

--- End quote ---

I don't use Qt5 interface. But I've been using Lazarus on Ubuntu for more than 10 years. I do not write corporate class software, I just write simple games and tools. They just work correctly, no crash. Well actually, they crashed several times. But after some inspections, those were my own faults.

Lazarus and Free Pascal are not as bad as you thought. If you have issue with it, post it here. Tell us what are the steps to make it crash and don't forget to provide the compile-able source code. We will help you fix it. If you are not willing to publicize your project, you can write a demo that show the problem.

--- End quote ---

Ok, I understand and I am ready to accept that the error might be my fault. Even if the code is incredibly simple, just pressing buttons, completing fields, generating text files based on the configuration the user makes. The crashes are random, no mater where I am in the program. Sometimes, just moving the mouse over a button.

I will commit the last version of the code on gitlab (is an open source project) and I will post the link.

funlw65:
Code committed here:  https://gitlab.com/funlw65/vscode_nucleo_l152re
but the repository contains also all the tools and tutorials required for an user  so is huge.

So I archived only the application and uploaded on my google drive
https://drive.google.com/file/d/1jm1bdS9pwVWy6TOg1gnsMJqnuEI7yEPD/view?usp=sharing

The application is a visual tool for configuring the clock frequency, the pins and the peripherals of an STM32L152 microcontroller and then generates the C source code for the gcc arm compiler and the project files required for the Visual Studio Code and the Cortex Debugger.

Handoko:
I saw you set it to use Qt and Athlon, which does not match my system so I changed it to Intel Linux GTK2. Compiling succeeded, now running it.

I am going to take a bath, relax and watch TV. Will be back 1 hour later. Lets see will it crash or not.

Below is the screenshot running on Ubuntu Mate 20.04 Lazarus 2.0.10 GTK2.

funlw65:
It worked for me in gtk2 without crashes after moving to lazarus 2.x ... But the reason moving to qt5 is that gtk2 is obsoleted in some versions of linux and don't know if it will be compiled in next distro versions (whatever linux that might be). I am on Debian 10.x but I worked also in Void, Fedora, Mint.

Martin_fr:
If you get "random crashes", try running under  (compile with -gv)

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---valgrind --tool=memcheck
The report will contain some noise (depending on gtk version), but it may yield something useful.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version