View Issue Details

IDProjectCategoryView StatusLast Update
0000282FreeCADBugpublic2013-12-06 00:45
Reporterunauthenticated Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.11 
Summary0000282: Window gets smaller on loading files
DescriptionI'm currently using the SVN version of the 0.11 branch. There, whenever loading a file, the window gets smaller (the size seems to be quite random though).

Please see the attached screencapture video for what it looks like :)

OS: Gentoo Linux 32bit
Revision: 4109
TagsNo tags attached.
FreeCAD Information

Relationships

has duplicate 0001028 closedwmayer Main window resized when a document is opened 

Activities

2011-02-22 14:00

 

freecad_resizing.ogv (Attachment missing)

necoro

2011-02-22 14:02

reporter   ~0000629

Ugh - thought it would ask me to login ;). So just for the record: I'm the 'unauthenticated' reporter of the issue.

wmayer

2011-02-22 22:44

administrator   ~0000631

What is your monitor resolution?

necoro

2011-02-22 22:55

reporter   ~0000632

1680x1050

wmayer

2011-02-23 11:03

administrator   ~0000635

The resolution seems OK. Are there any known OpenGL problems you know of or general graphic driver issues?

Do you have the same effect when e.g. loading a Python file?

necoro

2011-02-23 11:27

reporter   ~0000637

OpenGL works fine. Until Monday I used freecad-0.9, where this problem did not occur.

I'll test loading a python file this evening when I get back to my machine.

necoro

2011-02-24 00:02

reporter   ~0000638

Ok ...

It does NOT happen with a python file. It also DOES happen with the 0.10-svn version. And it does NOT happen with the 0.9-svn version.

wmayer

2011-02-24 09:54

administrator   ~0000640

> It does NOT happen with a python file
OK, then we can exclude general graphic driver problems. But it can still be an OpenGL issue. In the past we had many and strange error reports about this.

> It also DOES happen with the 0.10-svn version
Which SVN revision number?

> And it does NOT happen with the 0.9-svn version
Sometime for version 0.10 we replaced Qt's QWorkspace class with QMdiArea. Good possible that it is related to this and somehow to OpenGL.

Did you build the 0.9 and 0.10 versions from source? If yes, which Qt version and which SoQt version do you have?

necoro

2011-02-24 23:58

reporter   ~0000642

>> It also DOES happen with the 0.10-svn version
> Which SVN revision number?

Revision: 4124

> Sometime for version 0.10 we replaced Qt's QWorkspace class with QMdiArea

If you can point me to a the revision where things changed, I can try if this is the culprit.

> Did you build the 0.9 and 0.10 versions from source? If yes, which Qt version and which SoQt version do you have?

Qt: 4.6.3
SoQt: 1.5.0
PyQt4: 4.8.1

necoro

2011-02-25 01:04

reporter   ~0000643

FWIW: The bug also occurs in revision 3050 of the trunk. According to the logs this should be BEFORE switching to QMdiArea.

Doing some bisecting now and trying to find the commit that introduced the strange behavior

wmayer

2011-02-25 12:16

administrator   ~0000645

There is an easy way to switch between QWorkspace and QMdiArea. Just uncomment the line

//#define NO_USE_QT_MDI_AREA

in src/Gui/MainWindow.h

Your Qt and SoQt should be fine.
 
What revision number does the 0.9 version have? So, we can concentrate on between this revision and 3050 what has changed there.

necoro

2011-02-25 12:33

reporter   ~0000646

Ok. Uncommenting the line fixed it for the 0.11 version.

The bisecting lead to revision 3050 being the culprit -- which seems odd looking at the commit. Will try to redo it -- this time always using a complete fresh repository (last time I did not do a `make clean` in between to have less compile time).

The 0.9 revision is the latest :) - just checked out the branch from SVN (last commit: r2863)

wmayer

2011-02-25 12:46

administrator   ~0000647

> Ok. Uncommenting the line fixed it for the 0.11 version.
Then just concentrate on where NO_USE_QT_MDI_AREA is used. so far, it's used in:
* MDIView.cpp
* MainWindow.cpp
* View3DInventor.cpp

The latter one might be the most promising to look at. As you can see the ways to add the 3D viewer as child to the MDI window is quite different. Maybe you find a working solution for you.

yorik

2011-11-24 01:16

administrator   ~0001348

Is this still an issue?

jmaustpc

2012-06-01 08:52

manager   ~0002105

Last edited: 2012-06-01 08:59

I am getting this to now, as of a week or two ago, not certain if it was shortly after a new system install, Kubuntu 12.04 32bit, or if it started immediately on new system install.

forum topic link

http://forum.freecadweb.org/viewtopic.php?f=10&t=2641

I tried
uncomment the line

//#define NO_USE_QT_MDI_AREA

in src/Gui/MainWindow.h


It stopped the resizing problem.

yorik

2012-06-01 11:59

administrator   ~0002108

Hm indeed it happens with me too now...

ptolom50

2012-06-24 13:59

reporter   ~0002236

Happening to me too in 0.12, Arch Linux, with wmii at 1280x1024.

wmayer

2013-12-06 00:35

administrator   ~0003925

Now after moving to SoQt 1.6 on Windows I can confirm the behaviour. This happens because the GL render area assumes that it is not embedded into another window and thus does a resize when it gets visible.

The behaviour of older SoQt versions must have been different because there this worked normally.

Related Changesets

FreeCAD: master c771c2ed

2013-12-06 01:36:43

wmayer

Details Diff
+ fixes 0000282, + fixes 0001028 Affected Issues
0000282, 0001028
mod - src/Gui/View3DInventor.cpp Diff File

Issue History

Date Modified Username Field Change
2011-02-22 14:00 unauthenticated New Issue
2011-02-22 14:00 unauthenticated File Added: freecad_resizing.ogv
2011-02-22 14:02 necoro Note Added: 0000629
2011-02-22 22:44 wmayer Note Added: 0000631
2011-02-22 22:55 necoro Note Added: 0000632
2011-02-23 11:03 wmayer Note Added: 0000635
2011-02-23 11:27 necoro Note Added: 0000637
2011-02-24 00:02 necoro Note Added: 0000638
2011-02-24 09:54 wmayer Note Added: 0000640
2011-02-24 23:58 necoro Note Added: 0000642
2011-02-25 01:04 necoro Note Added: 0000643
2011-02-25 12:16 wmayer Note Added: 0000645
2011-02-25 12:33 necoro Note Added: 0000646
2011-02-25 12:46 wmayer Note Added: 0000647
2011-11-24 01:16 yorik Note Added: 0001348
2011-11-24 01:16 yorik Status new => feedback
2012-06-01 08:52 jmaustpc Note Added: 0002105
2012-06-01 08:59 jmaustpc Note Edited: 0002105
2012-06-01 11:59 yorik Note Added: 0002108
2012-06-24 13:59 ptolom50 Note Added: 0002236
2013-05-14 04:08 wmayer Relationship added has duplicate 0001028
2013-12-06 00:35 wmayer Note Added: 0003925
2013-12-06 00:45 wmayer Changeset attached => FreeCAD Master master c771c2ed
2013-12-06 00:45 wmayer Assigned To => wmayer
2013-12-06 00:45 wmayer Status feedback => closed
2013-12-06 00:45 wmayer Resolution open => fixed