Forum > QT
[Solved]Open Project fails miserably in Lazarus 3.0, QT5...KIO
cdbc:
Hi
At the moment, the "battle" is about this section:
--- Code: XML [+][-]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";}};} --- <SearchPaths> <IncludeFiles Value="$(ProjOutDir);../../bc_rtl/inc;inc;../../bc_svc/inc"/> <OtherUnitFiles Value="../../bc_rtl;../../bc_svc;../../bc_svcmgr;../../bc_fcl;common;bom;../ledger_wizard/libldgwizard;../../bc_pluginmgr"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> </SearchPaths>more specifically: "<OtherUnitFiles... etc./> it's simply not there.
That makes it problematic to fill it in anew, when the open-dialog is screwed :'(
It's installed with fpcupdeluxe and as such contained in a directory: '/home/bc/laz_3/', the old install is tugged away in '/usr/lib64/...' and I'm under the impression, that the 2 installs don't interact.
?!? %)
Regards Benny
dbannon:
Benny, while not a KDE user, I do test my own app on KDE platforms and have not had a problem.
As I understand it, KIO is about file I/O over a network connection ? So, Samba, NFS, sshfs type of things ? Are you really trying to run Lazarus with its files connected over a network ??
Anyway, maybe some suggestions that you probably have already thought of -
[x] Have you tried building a GTK2 version of Lazarus (to check its really a Qt5 problem) ?
[x] Have you tried switching your KDE Desktop to use X11 rather that Wayland (yes, does not seem to be a typical wayland problem but given that KDE has only recently switched to Wayland, possible. And I am very suspicious of Wayland, its not ready yet.)
[x] Have you tried other KDE distros (in eg Virtual Box) ? PCLinuxOS is a rolling distro and that means it takes in some pretty new stuff. Not everything is always ready for production use (take Wayland for example).
If I get some time later today I will try it on Debian Trixie, that will be equally new but different !
Davo
cdbc:
Hi
Thanks Davo.
...You've given me an idea, awakening if you will...
Ofc, The whole KIO is a subsystem lurking in the bowels of KDE; And @zeljko told me, that with 3.0 the dialogs changed to using native dialogs instead of laz' own... Naturally the native dialogs hook into the KIO subsystem, which again amongst others, can see network shares etc... And I've got a nfs-server, that's offline most of the time, in my network... So if KIO is pulling that in, when I open a dialog, no wonder... then it can wait for a loooong time %)
I think I need to talk to 'TexStar', mr. Reynolds is the father of PCLinuxOS... or some of his disciples, they're all in the know...
Me thinks, me got som' work to do... Be right'ish back with my findings...
Thanks again Davo
Regards Benny
dbannon:
Sounds like your ideas there are worth following up. But my news from Debian Trixie KDE is not good. Not good at all.
Firstly, I can confirm you KIO issue under Qt5. But, and this is a one shot test, its crazy so needs confirming, the first time Lazarus is used after a restart, its OK.
But I also find an AV in the GTK2 version, at exactly the same spot (opening project) and again, I suspect, only after a previous start of Lazarus.
My own app seems quite happy to use the FileOpen dialog, built of course with Debian versions of FPC and Lazarus 3.0.
So, right now, I am not convinced of anything, its all guess work, will need to some restarts and repeated tests to get anything clear. I might get something done today but probably not, I am away from home tomorrow for 5 days ....
Davo
dbannon:
OK, this is really annoying.
I have restarted it several times, rebuilt both the gtk2 and Qt5 versions, blown away the Laz config, nothing I can do will bring back the two major problems I saw after the first respective builds (qt5 KIO error, gtk2 AV). There is NO SIGN of those problems any more.
I do note two very annoying problems that definitly relate to Wayland, the mouse cursor is usually the wrong icon for the current task, annoying and sometimes hard to use. And when I start Lazarus, all the windows are in the wrong place, just centered in the screen, maybe relating to the know problem of Wayland not reporting its coordinates properly. In both these cases, switching to X11 solves them. And it feels a bit faster too.
Time permitting, I will go back to a clean install to make sure the 'fix' I see is not due to a gtk2 dependency. But pretty sure its not (but an easy test because of Virtual Box).
Here are some screen dumps, from using a FileOpen Dialog, neither can be repeated. Firstly when running Qt5 -
--- Code: ---.qpa.wayland: Wayland does not support QWindow::requestActivate()
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain;charset=utf-8
//--------- repeated about 15 time, Davo
QWaylandDataOffer: error reading data for mimeType text/plain;charset=utf-8
QWaylandDataOffer: timeout reading from pipe
QWaylandDataOffer: error reading data for mimeType text/plain
kf.kio.filewidgets.kfilefiltercombo: Could not find filter "*.lpi|Lazarus project(*.lpi) "
kf.kio.widgets: Cannot read information about filesystem under path "/home/dbannon/.cache/thumbnails/"
VMware: No 3D enabled (0, Success).
libEGL warning: egl: failed to create dri2 screen
kf.kio.widgets: Cannot read information about filesystem under path "/home/dbannon/.cache/thumbnails/"
kf.kio.widgets: Cannot read informati
--- End code ---
--- Code: ---int: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/dbannon/bin/Lazarus/LazConfigs/lazarus_3_0"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Looking for code tools config file: "/home/dbannon/bin/Lazarus/LazConfigs/lazarus_3_0/codetoolsoptions.xml"
NOTE: codetools config file not found - using defaults
NOTE: help options config file not found - using defaults
TApplication.HandleException: EAccessViolation
Access violation
Stack trace:
$000000000065AEFA GTK_CLASS_GET_TYPE, line 132 of gtk2proc.inc
$000000000065BA4E GTKWIDGETISA, line 376 of gtk2proc.inc
$0000000000512241 ISWINDOW, line 6571 of gtk2winapi.inc
$000000000056D841 ISWINDOW, line 646 of include/winapi.inc
$000000000048A90E SHOWMODAL, line 3074 of include/customform.inc
$0000000000DC5B0A SHOWPROJECTWIZARDDLG, line 108 of projectwizarddlg.pas
$00000000004C3734 DONOPROJECTWIZARD, line 6444 of main.pp
$00000000004B0464 SETUPSTARTPROJECT, line 2452 of main.pp
$00000000004ACDEF STARTIDE, line 1696 of main.pp
$00000000004217CB main, line 150 of lazarus.pp
FreeFormEditor: FormEditor1=TFormEditor
Hint: (lazarus) [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE
Hint: (lazarus) [TMainIDE.Destroy] END
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page