Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Mac OS » [SOLVED] Layout Designer : TheIde crash in the submenu "Input Fields"
[SOLVED] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53163] Tue, 10 March 2020 11:31 Go to next message
omari is currently offline  omari
Messages: 220
Registered: March 2010
Experienced Member
to reproduce, try to add an "EditString" to a layout in the layout designer .

Env : MacOS.


regards
omari.

[Updated on: Fri, 13 March 2020 11:06]

Report message to a moderator

Re: [BUG] Layout Designer : TheIde crach in the submenu "Input Fields" [message #53165 is a reply to message #53163] Tue, 10 March 2020 16:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12513
Registered: November 2005
Ultimate Member
I believe you and in the past, I got some similar crash.

Unfortunately, I have hard time to reproduce that (I have just tried with freshly created project and it works).

I think it might depend on many other factors. If it crashes consistently for you, that would be great, can you e.g. share the package where it crashes?
Re: [BUG] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53166 is a reply to message #53165] Tue, 10 March 2020 19:26 Go to previous messageGo to next message
omari is currently offline  omari
Messages: 220
Registered: March 2010
Experienced Member
it crash with theide, tutorial/Gui16, and even with a new project.

****************** ASSERT FAILED: Assertion failed in /Users/omari/upp.src/uppsrc/CtrlLib/MacMenu.mm, line 83


line 83:
virtual void   AddCtrl(Ctrl *ctrl, int gapsize) { NEVER(); }


adding RDUMP in LayDes::Group(Bar& bar, const String& group)
	for(i = 0; i < type.GetCount(); i++) {
		RDUMP(type[i]);
		bar.Add(type[i], GetTypeIcon(type[i], w, h, 0, SLtGray),
		        THISBACK1(CreateCtrl, type[i]));
		if((q++ + 2) % 16 == 0)
			bar.Break();
	}

then the output is :
type[i] = Calendar
type[i] = Clock
type[i] = DropDate
type[i] = DropList
type[i] = DropTime
type[i] = DropTree
type[i] = EditDate
type[i] = EditDateNotNull
type[i] = EditDateSpin
type[i] = EditDouble
type[i] = EditDoubleNotNull
type[i] = EditDoubleSpin
type[i] = EditField
type[i] = EditInt
type[i] = EditInt64
****************** ASSERT FAILED: Assertion failed in /Users/omari/upp.src/uppsrc/CtrlLib/MacMenu.mm, line 83






regards
omari.

[Updated on: Wed, 11 March 2020 09:20]

Report message to a moderator

Re: [BUG] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53168 is a reply to message #53166] Wed, 11 March 2020 09:34 Go to previous messageGo to next message
omari is currently offline  omari
Messages: 220
Registered: March 2010
Experienced Member
after more DUMPS i found that the call to AddCtrl is in Bar::Break()
void Bar::Break()
{
	AddCtrl(NULL, (int)Null);
}


as a test, i comment this line and it work without crash.


regards
omari.
Re: [BUG] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53169 is a reply to message #53168] Wed, 11 March 2020 09:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12513
Registered: November 2005
Ultimate Member
omari wrote on Wed, 11 March 2020 09:34
after more DUMPS i found that the call to AddCtrl is in Bar::Break()
void Bar::Break()
{
	AddCtrl(NULL, (int)Null);
}


as a test, i comment this line and it work without crash.


I am already there too, but now it started to crash on closing the menu... So more work to be done there.
Re: [BUG] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53175 is a reply to message #53169] Thu, 12 March 2020 14:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12513
Registered: November 2005
Ultimate Member
mirek wrote on Wed, 11 March 2020 09:57


I am already there too, but now it started to crash on closing the menu... So more work to be done there.


After about 10 hours of bug hunting, I have discovered the issue behind the crashes ( https://github.com/ultimatepp/ultimatepp/commit/e19b374a45aa fa4214860f015b877a97a4d3e880 - invalid static cast in LayDes.cpp), so the issue is now finally fixed to my satisfaction.

Mirek

Re: [SOLVED] Layout Designer : TheIde crash in the submenu "Input Fields" [message #53179 is a reply to message #53175] Fri, 13 March 2020 11:05 Go to previous message
omari is currently offline  omari
Messages: 220
Registered: March 2010
Experienced Member
Thanks Mirek.

regards
omari.
Previous Topic: MacOS theide Issue
Next Topic: [SOLVED] Main bar position and ugly gap
Goto Forum:
  


Current Time: Tue Jun 02 15:56:42 CEST 2020

Total time taken to generate the page: 0.00903 seconds