Lazarus

Installation => Linux => Topic started by: Fred vS on April 20, 2010, 10:04:25 pm

Title: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on April 20, 2010, 10:04:25 pm
Hello.
I work with Lazarus for a long time now.
I create sharewares, i use Ubuntu  8 and 9, no problems with Lazarus.
I just have installed Ubuntu 10.4 and now, all the sharewares i have developed give a Acces Violation message...
I have also installed Lazarus  9.29 on Ubuntu 10.4 and if i click on Files for example in project options i get a Access violation message too, also with a simple Hello world prog... %)

If somebody have installed Ubuntu 10.4, could he try to install MiXimum for linux from my site (a DJ prog like Virtual DJ) :
http://sites.google.com/site/fiensprototyping/ (http://sites.google.com/site/fiensprototyping/)

The problem appears when trying to create a new song list ( maybe it appends only on my computer )

Thanks to say if its appends for you too.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Silvio Clécio on April 21, 2010, 02:59:29 am
First congratulations on your project, it's excellent!

This same problem happens to me, but not always. It happens especially when I open a TOpenDialog, or when I list items on it.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: zeljko on April 21, 2010, 08:28:04 am
it's known gtk2 theme problem.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Ñuño_Martínez on April 21, 2010, 08:59:03 am
Curious: I have Lazarus 0.9.28.2-0beta and Kubuntu 9.10 and I can't use any open or save dialog.

I open the  IDE. Then select the Open... menu option to open a new project. The dialog appears. Then I select a directory and the IDE dead with an unhandled exception only visible if I run the IDE from a console terminal.

I've recompiled the IDE with GTK2 and GTK and fails in both cases.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Ocye on April 21, 2010, 09:39:00 am
Ubuntu 10.04 runs almost perfectly. I have neither problems compiling code nor running apps. You program starts well and a playlist folder is created if the parent folder has no write protection and the filename isn't empty. AV comes when I "close" the dialogue with "open" but no filename has been specified.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: JuhaManninen on April 21, 2010, 12:03:11 pm
As zeljko mentioned it is a known gtk2 theme problem.
For me it happened under KDE in OpenSuse.
The solution is to switch to another gtk2 theme or use the SVN trunk version of Lazarus, and/or compile Lazarus for QT bindings (which I recommend anyway).

Juha
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on April 24, 2010, 01:17:29 pm
Hello folks.
Many thanks for your suggestions but... it didnt work.
I have installed back Ubuntu 9.04 and everything works perfect now.

I have a Acer Asprire 3810T (brand new with Windows 7) and gonna wait for the official release of Ubuntu 10.4.

PS No problems with Windows 7 and MiXimum on my PC, I hope for you too...
PS2 Also no problems with Windows 7 and Lazarus 9.29, compile MiXimum like charms...

Thanks
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on April 26, 2010, 11:19:19 pm
Help ...., Super Marc, i beg you help please..
I have reinstalled Ubuntu 10.4, with new updates but, when i try to add some files in my prog MiXimum, i get a Violation acces messages (like i explain before).

I get this message if i load miximum from console :

TApplication.HandleException Access violation
  Stack trace:
  $00607E1E
  $081C3ECC
  $081074EB
  $0810674A
  $080DF48F
  $080DF085
  $080DFFFA
  $080DF585
  $080DF085
  $080DA51A
  $080DDB2D
  $080E0E9B
  $081D824A
  $080DC3A2
  $080E3978
  $080E89AD
  $080E6672


Also acces violation if i want to load the codes of MiXimum in Lazarus.
A message with, Acces violation Would you load the prg OK and Cancel.
If i click OK, it load and it is possible to compile.

If i run it from lazarus and try to add some files, i get the same Access violation, the debugger give me lots of error assembler.

The question is :

Must i say in my web page that MiXimum is not working with Ubuntu 10.4 ?
Why is it not possible to rebuild lazarus in Ubuntu 10.4, i get the message :
fatal error
Cant create object file :/units/i386-linux/lazaruspackageintf.o


Thanks for your help

PS No problems with Windows 7



Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Leledumbo on April 27, 2010, 03:33:18 am
Quote
Why is it not possible to rebuild lazarus in Ubuntu 10.4, i get the message
This is asked very often. Do we have this entry in FAQ (developers, wiki writers)?

The problem is that .debs are installer under /usr/lib, where you usually don't have write access. Rebuilding Lazarus involves writing there, so you normally can't do it. Either log in as root when you want to install some components, or run startlazarus with sudo, or give write access to Lazarus folder.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on April 27, 2010, 11:38:22 am
Hello
Thanks Leledumbo, of course if i load sudo startlazarus, i can rebuild lazarus (changing permission of folder lazarus dont work).
But i have still that message if i want to load my project, it seems that lazarus cant load all the forms :

fred@fred-laptop:~$ sudo startlazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TLazarusManager.Run starting /usr/share/lazarus/lazarus ...
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/fred/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Access violation
  Stack trace:
  $00790E1E
  $082CA3FC
  $081F4ADB
  $081F3D3A
  $081B297F
  $081B2575
  $081B34EA
  $081B2A75
  $081B2575
  $081B34EA
  $081B2A75
  $0807B881
  $08080C65
  $08081D09
  $081B2575
  $081B34EA
  $081B1611


And, for my prog MiXimum, i still dont have any solution for creating a new song list (or adding some tunes to a existing list), everything was working so fine till Ubuntu 9.10...
 :'(
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: jhmos on April 27, 2010, 01:20:04 pm
To be able to install components/recompile Lazarus I do from a console:
sudo chown -R myusername /usr/lib/lazarus

That has always worked fine for me and I just verified it on Ubuntu 10.04 64bit.

I also tried installing MIXimum, but at startup it complains that "Audio driver is not or already loaded ..."
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Marc on April 28, 2010, 09:01:14 am
Just curious, this has nothing to do with your crash, but what keyboard and language are you using ? Normally lazarus should not get out of VK codes.

fred@fred-laptop:~$ sudo startlazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF

Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: bflm on April 28, 2010, 01:37:07 pm
Just curious, this has nothing to do with your crash, but what keyboard and language are you using ? Normally lazarus should not get out of VK codes.

Sorry to jump in while not beeing asked: FYI, I have the same 'out of VK codes' with LANG=cs_CZ.UTF-8 for as long I could remeber. I get used to it in such a way, that I convinced myself it's a known but not yet resolved bug and so I never reported it. Shame on me.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Ñuño_Martínez on April 28, 2010, 01:59:34 pm
Just curious, this has nothing to do with your crash, but what keyboard and language are you using ? Normally lazarus should not get out of VK codes.

fred@fred-laptop:~$ sudo startlazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF

 :( I have also those "VK codes" warnings (http://lazarus.freepascal.org/index.php/topic,9280.msg45376.html#msg45376). I have Spanish keyboard on Kubuntu 9.10.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on April 28, 2010, 08:46:57 pm
Hello Marc.
I use a French keyboard (fr azerty) and lazarus is in French language...
Lazarus version 0.9.29
FPC 2.5.1
i386-linux-gtk 2 (beta)
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: José Mejuto on April 29, 2010, 04:25:39 pm
Just curious, this has nothing to do with your crash, but what keyboard and language are you using ? Normally lazarus should not get out of VK codes.
[...]

Hello,

Same "problem" here, Ubuntu 9.04 Spanish-Spain for everything. No sudo to startlazarus. System running inside VirtualBox last version. Lazarus 9.29 of about february and fpc 2.5.1 of february too.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Marc on April 30, 2010, 04:24:27 pm
To all who have the VK issue, can you give me the output of
Code: [Select]
xmodmap -pk and
Code: [Select]
xmodmap -pm Both run from the command prompt.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: José Mejuto on April 30, 2010, 09:52:02 pm
To all who have the VK issue, can you give me the output of
Code: [Select]
xmodmap -pk and
Code: [Select]
xmodmap -pm Both run from the command prompt.

Hello,

Done. It also show the message in compiled applications.

Code: [Select]
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Ocye on May 01, 2010, 07:37:31 am
Quote
To all who have the VK issue, can you give me the output of...
Attached. German keyboard layout
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: bflm on May 01, 2010, 10:17:35 am
To all who have the VK issue, can you give me the output of
Code: [Select]
xmodmap -pk and
Code: [Select]
xmodmap -pm Both run from the command prompt.

Attached LANG=cs_CZ.UTF-8
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Marc on May 02, 2010, 11:04:11 pm
Thanks for all the maps. In those maps almost all 255 entries are occupied. The warnings you get you don't need to worry about (it "only" means that you wont get keypress/release events for some extended multimedia keys). I think I'll remove the warning. Maybe I'll write some dump vk-keymap tool to verify if all normal Vk-codes are assigned.

The "problem" is that I've to map those 255 entries to the ~200 values defined by windows (since the LCL expect those) end there are only ~50 values left to assign to other keys unknown to windows. This is what is happening with all extra multimedia keys.


Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Fred vS on May 03, 2010, 06:23:02 pm
Thanks Marc, but...
what about Access violation message in Ubuntu 10 (i try everything, i loose, im back with Ubuntu 9...)  :(
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Marc on May 03, 2010, 11:10:26 pm
Thanks Marc, but...
what about Access violation message in Ubuntu 10 (i try everything, i loose, im back with Ubuntu 9...)  :(

Only stack adresses won't tell anyone a thing, try to recompile the ide with debug info.
Personally I would do that from a command prompt, no idea how to to from within lazarus.

Depending of you have
a) just the ide,
b) the "default" ide with all db stuff or
c) custom installed packages,
run in a command prompt in the lazarus dir (where the source is)

a) make ide OPT=-gl
b) make bigide OPT=-gl
c) make pkgide OPT=-gl

PS, copy your lazarus exe, just in case the compilation ruins it.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: José Mejuto on May 04, 2010, 11:33:24 am
Thanks for all the maps. In those maps almost all 255 entries are occupied. The warnings you get you don't need to worry about (it "only" means that you wont get keypress/release events for some extended multimedia keys). I think I'll remove the warning. Maybe I'll write some dump vk-keymap tool to verify if all normal Vk-codes are assigned.
[...]

Hello,

The problem is not in the IDE as the message is OK, no keys free, but in compiled applications the message appears also in the terminal window which is not very eye candy.
Title: Re: Lazarus dont like Ubuntu 10.4 ...?
Post by: Marc on May 04, 2010, 09:47:08 pm
Thanks for all the maps. In those maps almost all 255 entries are occupied. The warnings you get you don't need to worry about (it "only" means that you wont get keypress/release events for some extended multimedia keys). I think I'll remove the warning. Maybe I'll write some dump vk-keymap tool to verify if all normal Vk-codes are assigned.
[...]

Hello,

The problem is not in the IDE as the message is OK, no keys free, but in compiled applications the message appears also in the terminal window which is not very eye candy.

Those messages are part of the LCL, so once removed there, you won't see them in your apps eitehr
TinyPortal © 2005-2018