U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Upp 2007.1beta2 released
Upp 2007.1beta2 released [message #7802] Tue, 23 January 2007 09:01 Go to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

* Default charset is now CHARSET_UTF8
+ DateTimeCtrl and Calendar can now be used in layout editor
+ Core tutorial
Re: Upp 2007.1beta2 released [message #7810 is a reply to message #7802] Tue, 23 January 2007 16:28 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
Chinese font name now worksindex.php?t=getfile&id=439&private=0
Re: Upp 2007.1beta2 released [message #7821 is a reply to message #7802] Wed, 24 January 2007 18:10 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member

- since chameleon refactoring, application font is grey instead of solid black.
- the xfce4 theme-engine works with or without the clearlooks work around.
- I can't create build methods: typing "GUI MT SHARED" results in an empty combo box after closing the dialog. I install upp sources in /usr/local only now, if that matters
- the debian package doesn't ever work on debian, so please include "ubuntu" in the package name, to save people from wasting time

Guido
Re: Upp 2007.1beta2 released [message #7822 is a reply to message #7821] Wed, 24 January 2007 21:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Thanks for reporting troubles (and apologies for producing them...)

guido wrote on Wed, 24 January 2007 12:10


- since chameleon refactoring, application font is grey instead of solid black.



In specific theme or for all themes?

Quote:


- the xfce4 theme-engine works with or without the clearlooks work around.



Do not quite understand this. What is "xfce4 theme-engine"?

Does this mean a bug in U++?

Quote:


- I can't create build methods: typing "GUI MT SHARED" results in an empty combo box after closing the dialog.



Main configuration? (There is no "GUI MT SHARED" in build method).

BTW, some more info about your setup?

Mirek
Re: Upp 2007.1beta2 released [message #7823 is a reply to message #7822] Wed, 24 January 2007 22:40 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Quote:

In specific theme or for all themes?


With clearlooks and xfce4.


Quote:

Do not quite understand this. What is "xfce4 theme-engine"?

Does this mean a bug in U++?



No, sorry. xfce4 desktop comes with a gtk theme-engine of its own. Wanted to highlight, the problem with menu color looks more and more like a bug in clearlooks theme-engine.



Quote:


Main configuration? (There is no "GUI MT SHARED" in build method).


Yeah, used the wrong name.
The main configuration forgets newly created configs immediately after the dialog is closed. The toolbar textbox is then empty. When pressing the build button, it falls back to "GUI".
I can launch theide-605 and then it works again. I successfully built theide-2007-b2 with it.
My guess is that it tries to write to a file under /usr/local and silently fails, when it can't due to file permissions. But just a guess.

Quote:

BTW, some more info about your setup?



Debian unstable, no GNOME desktop or KDE desktop or control-center installed, only the libraries to run the productivity apps.
Where does upp get the text color, and why would it default to grey instead of black?

Guido
Re: Upp 2007.1beta2 released [message #7824 is a reply to message #7821] Wed, 24 January 2007 22:56 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
guido wrote on Wed, 24 January 2007 18:10


- the debian package doesn't ever work on debian, so please include "ubuntu" in the package name, to save people from wasting time



sounds strange to me ... what does not work?
does theide run?
are the sources copied to the right place (/usr/share/upp)? Please check the /usr/share/upp/uppsrc/ide/version.h file if it states "2007.1beta2" it is the current one
what arch are you running on i386 or amd64 or anything else?

Bas

[Updated on: Wed, 24 January 2007 23:49]

Report message to a moderator

Re: Upp 2007.1beta2 released [message #7825 is a reply to message #7824] Wed, 24 January 2007 23:56 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
fallingdutch wrote on Wed, 24 January 2007 22:56

guido wrote on Wed, 24 January 2007 18:10


- the debian package doesn't ever work on debian, so please include "ubuntu" in the package name, to save people from wasting time



sounds strange to me ... what does not work? does theide run?

Bas



ubuntu uses glibc-2.4, debian unstable glibc-2.3.6.
any new version of glibc adds new symbols, which binaries come to depend on, when compiled against. binaries compiled with older glibc work on newer glibc, the other way around: not. There are tricks around it employed by apbuild from the autopackage project. Or the LSB sandbox. Of course this is all Linux style let's break ABIs twice a day before breakfast bollocks, proper Unices do not suffer from.

Guido
Re: Upp 2007.1beta2 released [message #7826 is a reply to message #7825] Thu, 25 January 2007 00:10 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member

I might as well add the exact linker error:

guido@Sid:~/upp_2007.1beta2_i386/data/bin$ ldd theide
./theide: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./theide)

Guido
Re: Upp 2007.1beta2 released [message #7827 is a reply to message #7823] Thu, 25 January 2007 00:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Quote:


Quote:


Main configuration? (There is no "GUI MT SHARED" in build method).


Yeah, used the wrong name.
The main configuration forgets newly created configs immediately after the dialog is closed. The toolbar textbox is then empty. When pressing the build button, it falls back to "GUI".
I can launch theide-605 and then it works again. I successfully built theide-2007-b2 with it.
My guess is that it tries to write to a file under /usr/local and silently fails, when it can't due to file permissions. But just a guess.



Well, that sounds reasonable explanation. It gets stored to the "package description" file which is inside package directory.

So if you have tried to modify main config of some package inside /usr/local, it had to fail.

Quote:


Where does upp get the text color, and why would it default to grey instead of black?



Unfortunately, I am afraid I have a clue...

The problem is that there is no function available to get that individual color in Gtk API - you have to retrieve the pointer to the whole structure. Current U++ is designed to avoid including any Gtk headers, so we have to recreate the structure (see CtrlLib/ChGtk.cpp, beginning of file... Sad ). If layout changes between Gtk versions, we are in trouble...

Apparent solution is to start including gtk headers. But I wanted to try first....
Re: Upp 2007.1beta2 released [message #7828 is a reply to message #7827] Thu, 25 January 2007 01:30 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member

I stopped copying sources to user directory, when I accidentally modified files all the time and needed to recover from the tarball. If the editor had undo feature on the other hand... Very Happy

But more importantly, it always bothered me I had to add and set the same package config again and again for each package. Would really be helpfull, if that could be globally synced as an option. At least theide should collect and list all the package configs in use, to pick from.

About the gtk thing, if those data structures are not part of the stable ABI, they can not be used by chameleon, I'm afraid.
Can't get it from a bitmap like you do with some other colors?

Guido
Re: Upp 2007.1beta2 released [message #7829 is a reply to message #7826] Thu, 25 January 2007 10:48 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
guido wrote on Thu, 25 January 2007 00:10


I might as well add the exact linker error:

guido@Sid:~/upp_2007.1beta2_i386/data/bin$ ldd theide
./theide: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./theide)

Guido


have build a new one - should work on debian testing and following

could you please check it:
http://www.fallingdutch.de/media/theide

thank you,
Bas
Re: Upp 2007.1beta2 released [message #7830 is a reply to message #7828] Thu, 25 January 2007 11:02 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
guido wrote on Thu, 25 January 2007 01:30


I stopped copying sources to user directory, when I accidentally modified files all the time and needed to recover from the tarball. If the editor had undo feature on the other hand... Very Happy



Ctrl+Z does undo Wink


Bas
Re: Upp 2007.1beta2 released [message #7832 is a reply to message #7830] Thu, 25 January 2007 11:42 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
fallingdutch wrote on Thu, 25 January 2007 11:02

guido wrote on Thu, 25 January 2007 01:30


I stopped copying sources to user directory, when I accidentally modified files all the time and needed to recover from the tarball. If the editor had undo feature on the other hand... Very Happy



Ctrl+Z does undo Wink


Bas



So why didn't you add it to the menu Rolling Eyes

Guido
Re: Upp 2007.1beta2 released [message #7833 is a reply to message #7832] Thu, 25 January 2007 11:50 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
just asked Mirek to add it to the menu Smile

did you try the new version, Guido?

Bas
Re: Upp 2007.1beta2 released [message #7834 is a reply to message #7829] Thu, 25 January 2007 11:55 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
fallingdutch wrote on Thu, 25 January 2007 10:48

guido wrote on Thu, 25 January 2007 00:10


I might as well add the exact linker error:

guido@Sid:~/upp_2007.1beta2_i386/data/bin$ ldd theide
./theide: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./theide)

Guido


have build a new one - should work on debian testing and following

could you please check it:
http://www.fallingdutch.de/media/theide

thank you,
Bas


Yes, that works. Great, thank you!

Guido
Re: Upp 2007.1beta2 released [message #7835 is a reply to message #7834] Thu, 25 January 2007 11:57 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
guido wrote on Thu, 25 January 2007 11:55


Yes, that works. Great, thank you!
Guido


You are welcome,

will create the upcoming packages that way,
Bas
Re: Upp 2007.1beta2 released [message #7837 is a reply to message #7827] Thu, 25 January 2007 12:10 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member

Quote:

The problem is that there is no function available to get that individual color in Gtk API - you have to retrieve the pointer to the whole structure. Current U++ is designed to avoid including any Gtk headers, so we have to recreate the structure (see CtrlLib/ChGtk.cpp, beginning of file... Sad ). If layout changes between Gtk versions, we are in trouble...


Tried to get the hang of it last night.
So I started to replace some pointer arithmetics with proper data structures, to make things a bit less obfuscated.
Didn't understand how you calculated the style offset, as the data we are interested in starts right at offset 0.
'Twas late at night. For lack of familiarity with the upp::Draw properties and chameleon properties (paper,face ...) I didn't get farther than this:

struct G_color { dword _; word r, g, b; };

enum { G_STATE_NORMAL, G_STATE_ACTIVE, G_STATE_PRELIGHT, G_STATE_SELECTED, G_STATE_INSENSITIVE };

// G_STATE_NORMAL -> CTRL_NORMAL
// G_STATE_PRELIGHT -> CTRL_HOT 
// G_STATE_ACTIVE -> CTRL_PRESSED
// G_STATE_SELECTED -> ??
// G_STATE_INSENSITIVE -> CTRL_DISABLED

struct G_style {
  G_Color fg[5];
  G_Color bg[5];
  G_Color light[5];
  G_Color dark[5];
  G_Color mid[5];
  G_Color text[5];
  G_Color base[5];
  G_Color text_aa[5];		/* Halfway between text/base */
  
  G_Color black;
  G_Color white;
};


I concluded, if I knew how things mapped to upp, I could have done it. But I must have overlooked something, if you couldn't get it done, I suppose.

Guido
Re: Upp 2007.1beta2 released [message #7838 is a reply to message #7832] Thu, 25 January 2007 12:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Thu, 25 January 2007 05:42



So why didn't you add it to the menu Rolling Eyes

Guido


OK, it is there now Wink

However, "menu/toolbar in a row" option grew toolbar a bit too wide (with two more icons), so I have decided to not present Edit icons (undo/redo/copy/paste/cut) in toolbar when option is active. In fact, on my notebook with 1024 wide screen it was already too wide anyway, so that is one more problem solved. (I think most people do not use toolbar buttons for copy/cut/paste anyway).

Mirek
Re: Upp 2007.1beta2 released [message #7839 is a reply to message #7837] Thu, 25 January 2007 12:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Thu, 25 January 2007 06:10


Didn't understand how you calculated the style offset, as the data we are interested in starts right at offset 0.



I am afraid this is not correct. The structure we are interested in is GtkStyle. While API docs list is as if offset is 0, in .h there is:

struct _GtkStyle
{
  GObject parent_instance;

  /*< public >*/
  
  GdkColor fg[5];
  GdkColor bg[5];
  GdkColor light[5];
  GdkColor dark[5];
  GdkColor mid[5];
  GdkColor text[5];
  GdkColor base[5];
  GdkColor text_aa[5];		/* Halfway between text/base */
  
  GdkColor black;
  GdkColor white;
  PangoFontDescription *font_desc;
  
  gint xthickness;
  gint ythickness;
  
  GdkGC *fg_gc[5];
  GdkGC *bg_gc[5];
  GdkGC *light_gc[5];
  GdkGC *dark_gc[5];
  GdkGC *mid_gc[5];
  GdkGC *text_gc[5];
  GdkGC *base_gc[5];
  GdkGC *text_aa_gc[5];
  GdkGC *black_gc;
  GdkGC *white_gc;
  
  GdkPixmap *bg_pixmap[5];

  /*< private >*/
  
  gint attach_count;
  
  gint depth;
  GdkColormap *colormap;
  GdkFont *private_font;
  PangoFontDescription *private_font_desc; /* Font description for style->private_font or %NULL */
  
  /* the RcStyle from which this style was created */
  GtkRcStyle	 *rc_style;

  GSList	 *styles;	  /* of type GtkStyle* */
  GArray	 *property_cache;
  GSList         *icon_factories; /* of type GtkIconFactory* */
};


I agree that introducing fixed offset is too fragile solution. I am afraid that only correct way is to include gtk headers. Very unhappy about that...

(Alternative solution would be to check gtk version and have table of offsets.... but that is quite fragile as well).

Mirek
Re: Upp 2007.1beta2 released [message #7849 is a reply to message #7802] Fri, 26 January 2007 02:32 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Compiles ide on OsX without any troubles (Universal) and running 701b2 ide compiles my client without troubles.

For those wanting to do Universal, the "ar" in OsX is the Gnu ar and can not handle fat files. One could change upp to use "libtool files.o -o output", but I simply replaced "ar" with an sh script that calls libtool instead.

The rest works fine after setting Build Envrionment, and hacking in Link Options. (go on! add link options to Build Environment!) Smile

Another note, work OsX lease was up, so the dual PPC was replaced with dual Intel. But I still have access to make sure PPC runs.

Re: Upp 2007.1beta2 released [message #7852 is a reply to message #7849] Fri, 26 January 2007 11:09 Go to previous messageGo to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
dear lundman, did you ever try to compile this new upp-version
in an optimized non-blitz-version within itself on your dual
intel? I still get my compilation stuck (mostly during linking)
on my dual amd(athlon).

did anyone manage to reproduce this? just compile the new ide,
start it, and try to re-compile the same version in the new
program with hydra-threads set to 2 (an option accessible
in the ide-settings), of course on a dual-processor system.
just be careful: compiling ide/Help.cpp does take up 250-270Mb
for me, so you'd better have more than 400Mb free, or compile
that file first...
Re: Upp 2007.1beta2 released [message #7853 is a reply to message #7852] Fri, 26 January 2007 13:20 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Yes, I can.. I used the .dmg version I made to build 701b2, then 701b2 to build 701b2. Has to be "Shared Libs" not static. It was blitzing last I looked, but generally makes little difference.

Re: Upp 2007.1beta2 released [message #7889 is a reply to message #7853] Mon, 29 January 2007 11:15 Go to previous messageGo to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
Thanks. another bug I found is that single-file packages don't
get linked into a lib, even though the final link-command does
expect *.a instead of *.o. but this bug is also present in
older versions and I simply ignored it...

but back to the hydra-problem: I tried to debug the "waiting",
and it turned out that waitpid did keep returning -1 to
indicate an error (errno 10, "child does not exist" or something)
while Web/sproc.cpp did interprete this as "child hasn't
exited yes".

the debug-session did look like this:

GNU gdb 2003-02-03-cvs
...
Console::Wait() (this=0xbffeebb8)
    at /home/p/upp/uvs/upp-uvs/ide/Console.cpp:252
252		for(;;) {
(gdb) 
253			ProcessEvents();
(gdb) 
254			switch(Flush()) {
(gdb) 
256				case  0: sleep = min(sleep + 5, 20); break;
(gdb) 
259			Ctrl::GuiSleep(sleep);
(gdb) 
252		for(;;) {
(gdb) 
253			ProcessEvents();
(gdb) 
254			switch(Flush()) {
(gdb) s
Console::Flush() (this=0xbffeebb8)
    at /home/p/upp/uvs/upp-uvs/ide/Console.cpp:67
67		bool done_output = false;
(gdb) n
...
85		for(int i = 0; i < processes.GetCount(); i++) {
(gdb) 
86			Slot& slot = processes[i];
(gdb) 
87			if(!slot.process)
(gdb) 
88				continue;
(gdb) 
85		for(int i = 0; i < processes.GetCount(); i++) {
(gdb) 
86			Slot& slot = processes[i];
(gdb) 
87			if(!slot.process)
(gdb) 
89			String s;
(gdb) 
90			slot.process->Read(s);
(gdb) 
91			if(!IsNull(s)) {
(gdb) 
104			if(!slot.process->IsRunning()) {
(gdb) s
Upp::One<Upp::SlaveProcess>::operator->() (this=0x886d490)
    at /home/p/upp/uvs/upp-uvs/Core/Other.h:30
30		T          *operator->()               { ChkP(); 
...
Upp::LocalSlaveProcess::IsRunning() (this=0x94c5e80)
    at /home/p/upp/uvs/upp-uvs/Web/sproc.cpp:358
358		if(!pid || !IsNull(exit_code)) {
(gdb) n
362		int status = 0, wp;
(gdb) 
363		if((wp = waitpid(pid, &status, WNOHANG | WUNTRACED)) != pid || !DecodeExitCode(status))
(gdb) s
364			return true;
(gdb) p wp
$1 = -1
(gdb) p status
$2 = 0
(gdb) p pid
$3 = 905
(gdb) n
368	}
(gdb) 
Console::Flush() (this=0xbffeebb8)
    at /home/p/upp/uvs/upp-uvs/ide/Console.cpp:114
114			running = true;
(gdb) n
85		for(int i = 0; i < processes.GetCount(); i++) {
(gdb) p processes
$4 = {<MoveableAndDeepCopyOption<Upp::Array<Console::Slot>,Upp::EmptyClass>> = {<Moveable<Upp::Array<Console::Slot>,Upp::DeepCopyOption<Upp::Array<Console::Slot>, Upp::EmptyClass> >> = {<DeepCopyOption<Upp::Array<Console::Slot>,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, 
  vector = {<MoveableAndDeepCopyOption<Upp::Vector<void*>,Upp::EmptyClass>> = {<Moveable<Upp::Vector<void*>,Upp::DeepCopyOption<Upp::Vector<void*>, Upp::EmptyClass> >> = {<DeepCopyOption<Upp::Vector<void*>,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, 
    vector = 0x886d480, items = 2, alloc = 2}}
(gdb) p processes[0]
$5 = (Slot &) @0x8815b80: {
  process = {<MoveableAndDeepCopyOption<Upp::One<Upp::SlaveProcess>,Upp::EmptyClass>> = {<Moveable<Upp::One<Upp::SlaveProcess>,Upp::DeepCopyOption<Upp::One<Upp::SlaveProcess>, Upp::EmptyClass> >> = {<DeepCopyOption<Upp::One<Upp::SlaveProcess>,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, ptr = 0x0}, 
  cmdline = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x889a33c "/usr/bin/c++ -c  -I\"/home/p/upp/uvs/upp-uvs\" -I\"/usr/X11R6/include\" -I\"/usr/include\" -I\"/usr/X11R6/include/freetype2\" -I\"/opt/upp/uppsrc\" -DflagGUI -DflagGCC -DflagSHARED -DflagDEBUG_FULL -DflagLINUX "...}, <No data fields>}, 
  output = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x853974c ""}, <No data fields>}, 
  key = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x94e3404 "/opt/upp/out/Core/GCC.Debug_full.Gui.Release.Shared/Win32Com.o"}, <No data fields>}, 
  group = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x94a7e44 "Core"}, <No data fields>}, outfile = 0x0, 
  quiet = false, exitcode = 0, last_msecs = 948604485}
(gdb) p processes[1]
$6 = (Slot &) @0x886d490: {
  process = {<MoveableAndDeepCopyOption<Upp::One<Upp::SlaveProcess>,Upp::EmptyClass>> = {<Moveable<Upp::One<Upp::SlaveProcess>,Upp::DeepCopyOption<Upp::One<Upp::SlaveProcess>, Upp::EmptyClass> >> = {<DeepCopyOption<Upp::One<Upp::SlaveProcess>,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, ptr = 0x94c5e80}, 
  cmdline = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x94e937c "/usr/bin/c++ -c  -I\"/home/p/upp/uvs/upp-uvs\" -I\"/usr/X11R6/include\" -I\"/usr/include\" -I\"/usr/X11R6/include/freetype2\" -I\"/opt/upp/uppsrc\" -DflagGUI -DflagGCC -DflagSHARED -DflagDEBUG_FULL -DflagLINUX "...}, <No data fields>}, 
  output = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x853974c ""}, <No data fields>}, 
  key = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x94d89cc "/opt/upp/out/Core/GCC.Debug_full.Gui.Release.Shared/OL_Set.o"}, <No data fields>}, 
  group = {<AString<char,Upp::String>> = {<Moveable<Upp::String,Upp::EmptyClass>> = {<EmptyClass> = {<No data fields>}, <No data fields>}, 
      ptr = 0x94a7e44 "Core"}, <No data fields>}, outfile = 0x0, 
  quiet = false, exitcode = 0, last_msecs = 955095921}
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) Detaching from program: /home/p/upp/out/gcc.Debug_full.Gui.Shared/ide, process 362


I fixed this bad behaviour by forcing IsRunning() to return
true only when waitpid didn't return -1, and while I already
where altering the code I also inserted some logging of the
errno. then I tried again, and no locking. still, this is not
a bug-fix, since the process still didn't pass its return-
code. maybe someone might actually find the real bug. I
logged the ide's stdout, here's the output (as above, I
inserted "..." for brevity):

...
LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Core/GCC.Gui.Shared/Mt.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 698, getpid = 294
parent process - continue
LocalSlaveProcess::Open(/usr/bin/c++ -c  ... -o "/opt/upp/out/Core/GCC.Gui.Shared/Thread.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 700, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
IsRunning() -> no, just exited, errno = 10
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[17, 18]
wpipe[19, 20]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c  ... -o "/opt/upp/out/Core/GCC.Gui.Shared/OL_Set.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 704, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Core/GCC.Gui.Shared/heap.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 707, getpid = 294
parent process - continue
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Core/GCC.Gui.Shared/heapdbg.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 709, getpid = 294
parent process - continue
Read() -> select
Read(), read -> 1024: rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Core/GCC.Gui.Shared/Mt.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 698, getpid = 294
parent process - continue
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -fexceptions 
Read() -> select
Read(), read -> 1024:  -Os -finline-limit=20 -x c++ "/home/p/upp/uvs/upp-uvs/Core/Thread.cpp" -o "/opt/upp/out/Core/GCC.Gui.Shared/Thread.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 700, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
IsRunning() -> no, just exited, errno = 10
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[17, 18]
wpipe[19, 20]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c  -I"/home/p/upp/uvs/upp-uvs" ...
...
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/DrawTextXft.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 
Read() -> select
Read(), read -> 1024: 974, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/Draw.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 0, getpid = 977
child process - execute application
26arguments:
[0]: </usr/bin/c++>
[1]: <-c>
[2]: <-I/home/p/upp/uvs/upp-uvs>
[3]: <-I/usr/X11R6/include>
[
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
IsRunning() -> no, just exited, errno = 10
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[17, 18]
wpipe[19, 20]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/DrawOpWin32.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 981, getpid = 294
parent process - continue
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/DrawOpX11.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 983, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/DrawData.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[7, 14]
wpipe[15, 16]
	fork, pid = 986, getpid = 294
parent process - continue
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[17, 18]
wpipe[19, 20]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c ... -o "/opt/upp/out/Draw/GCC.Gui.Shared/Drawing.o")
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]

LocalSlaveProcess::Open
rpipe[17, 18]
wpipe[19, 20]
	fork, pid = 989, getpid = 294
parent process - continue
Read() -> select
Read(), read -> 1024: upp/uvs/upp-uvs>
[3]: <-I/usr/X11R6/include>
[
IsRunning() -> no, just exited, exit code = 0
IsRunning() -> no
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[7, 14]
wpipe[15, 16]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
IsRunning() -> no, just exited, errno = 10
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[17, 18]
wpipe[19, 20]
IsRunning() -> no
IsRunning() -> no

LocalSlaveProcess::Free, pid = 294
rpipe[-1, -1]
wpipe[-1, -1]
LocalSlaveProcess::Open(/usr/bin/c++ -c  -I"/home/p/upp/uvs/upp-uvs" ...

[Updated on: Mon, 29 January 2007 11:22]

Report message to a moderator

Re: Upp 2007.1beta2 released [message #7896 is a reply to message #7802] Tue, 30 January 2007 22:19 Go to previous messageGo to next message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
Just bought a new laptop (with Vista),
just installed Upp 2007.1beta2
tried to compile AddressBook and got:

----- CtrlLib ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 10)
BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp Drop
	Box.cpp DropList.cpp DropPusher.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSplitter.cpp SliderCtrl.cpp ColumnList.cpp Progress.cp
	p AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp Bar.cpp MenuBar.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp TabCtrl.cp
	p TreeCtrl.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.cpp PrinterJob.cpp Windows.cpp Win32.cpp TrayIconWin32
	.cpp TrayIconX11.cpp CtrlUtil.cpp Update.cpp LNGCtrl.cpp Ch.cpp ChGtk.cpp
ChWin32.cpp
CtrlLib.icpp
gcc.exe: installation problem, cannot exec `cc1plus': No such file or directory
gcc.exe: installation problem, cannot exec `cc1plus': No such file or directory
gcc.exe: installation problem, cannot exec `cc1plus': No such file or directory
CtrlLib: 49 file(s) built in (0:00.06), 1 msecs / file, duration = 265 msecs, parallelization 86%

There were errors. (0:00.28)
Re: Upp 2007.1beta2 released [message #7899 is a reply to message #7896] Wed, 31 January 2007 00:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Installation path? "C:\upp"?

Mirek
Re: Upp 2007.1beta2 released [message #7914 is a reply to message #7899] Wed, 31 January 2007 11:21 Go to previous messageGo to next message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
luzr wrote on Wed, 31 January 2007 00:13

Installation path? "C:\upp"?

Mirek


Yes. I installed it there.
In fact it's only a PATH problem. PATH in the mean of the environment variable.
I've copied the 3 files from c:\upp\mingw\libexec\gcc\mingw32\3.4.2 to c:\windows\system32 and now I can compile ('cause c:\windows\system32 is in the PATH).
Re: Upp 2007.1beta2 released [message #7918 is a reply to message #7914] Wed, 31 January 2007 13:29 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
paolo wrote on Wed, 31 January 2007 05:21

luzr wrote on Wed, 31 January 2007 00:13

Installation path? "C:\upp"?

Mirek


Yes. I installed it there.
In fact it's only a PATH problem. PATH in the mean of the environment variable.
I've copied the 3 files from c:\upp\mingw\libexec\gcc\mingw32\3.4.2 to c:\windows\system32 and now I can compile ('cause c:\windows\system32 is in the PATH).


So you have installed version without mingw bundled? (Because it would be a bug in autoinstall process if mingw version would not work...).

BTW, how does it work with Vista? Any problems? Any UAC dialogs?

Mirek
Re: Upp 2007.1beta2 released [message #7931 is a reply to message #7918] Thu, 01 February 2007 02:41 Go to previous messageGo to next message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
luzr wrote on Wed, 31 January 2007 13:29



So you have installed version without mingw bundled? (Because it would be a bug in autoinstall process if mingw version would not work...).

BTW, how does it work with Vista? Any problems? Any UAC dialogs?

Mirek


I've installed the version with minigw bundled.

Seems no problem at all with Vista, only a UAC dialog each time I start TheIde (even if I've just closed it).

If you have any test to do with Vista, just tell me and I'll gladly do it.
Re: Upp 2007.1beta2 released [message #7933 is a reply to message #7931] Thu, 01 February 2007 05:25 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
paolo wrote on Wed, 31 January 2007 20:41

luzr wrote on Wed, 31 January 2007 13:29



So you have installed version without mingw bundled? (Because it would be a bug in autoinstall process if mingw version would not work...).

BTW, how does it work with Vista? Any problems? Any UAC dialogs?

Mirek


I've installed the version with minigw bundled.

Seems no problem at all with Vista, only a UAC dialog each time I start TheIde (even if I've just closed it).



"only" ? What does it say?

Mirek
Re: Upp 2007.1beta2 released [message #7945 is a reply to message #7933] Thu, 01 February 2007 15:17 Go to previous messageGo to next message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
luzr wrote on Thu, 01 February 2007 05:25


"only" ? What does it say?

Mirek



I wrote "only" just because I'm seeing a lot of them, installing applications and configuring the system.

It says:
"An unidentified program wants access to your computer"
as it is explained here:
http://windowshelp.microsoft.com/Windows/en-US/help/0eeb9ddd -ddaa-4cc5-a092-9908305665471033.mspx
and showed here:
http://www.jimcarson.com/i/vista_user_account_control2.png
Re: Upp 2007.1beta2 released [message #7961 is a reply to message #7945] Thu, 01 February 2007 20:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Anybody knows how to get rid off it? Manifest file?

Mirek
Re: Upp 2007.1beta2 released [message #7969 is a reply to message #7961] Thu, 01 February 2007 22:17 Go to previous messageGo to next message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
luzr wrote on Thu, 01 February 2007 20:13

Anybody knows how to get rid off it? Manifest file?

Mirek


Mirek,
hoping to help about the UAC tingy, if I execute the (eg) AddressBook.exe from the output dir, it runs without Vista asking any action from me.

And I've an "issue": TheIDE is always on the foreground even if I click other applications on the application bar and the only way to switch to another application is to minimize TheIDE.

Hope to help,
P.
Re: Upp 2007.1beta2 released [message #7981 is a reply to message #7802] Fri, 02 February 2007 12:23 Go to previous message
paolo is currently offline  paolo
Messages: 11
Registered: January 2007
Promising Member
Dunno why, I don't have changed any configuration, but now Vista seems to have learned that TheIDE is "good" and it doesn't ask me to confirm the execution.
Previous Topic: Forum email trouble....
Next Topic: Upp 2007.2rc1 released
Goto Forum:
  


Current Time: Tue Apr 28 21:04:44 GMT+2 2026

Total time taken to generate the page: 0.01246 seconds