Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[win32] fix endless loop with fixed text metrics #1682

Conversation

akoch-yatta
Copy link
Contributor

This commit fixes a regression that ignored bigger fixed font metrics in TextLayout in one scenario that led to an endloop recalculation loop.

Fixes #1610

Copy link
Contributor

github-actions bot commented Dec 19, 2024

Test Results

   382 files  ±0     382 suites  ±0   7m 27s ⏱️ -18s
 4 251 tests ±0   4 241 ✅ ±0   9 💤 ±0  1 ❌ ±0 
12 305 runs  ±0  12 213 ✅ ±0  91 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit b1816c7. ± Comparison against base commit 62ad8d9.

♻️ This comment has been updated with latest results.

@akoch-yatta akoch-yatta force-pushed the fix-text-layout-with-fixed-heights branch 2 times, most recently from cfb9510 to 62c800d Compare December 19, 2024 09:48
@fedejeanne fedejeanne force-pushed the fix-text-layout-with-fixed-heights branch from 62c800d to b6bf03b Compare December 19, 2024 10:33
@fedejeanne
Copy link
Contributor

I can't understand the errors. I created an issue for it: #1683

The rest seems to be fine but I would like to merge only after all tests ran, hopefully today. Fingers crossed 🤞

@fedejeanne fedejeanne linked an issue Dec 19, 2024 that may be closed by this pull request
This commit fixes a regression that ignored bigger fixed font metrics in
TextLayout in one scenario that led to an endloop recalculation loop.

Fixes eclipse-platform#1610
@fedejeanne fedejeanne force-pushed the fix-text-layout-with-fixed-heights branch from b6bf03b to b1816c7 Compare December 19, 2024 16:06
fedejeanne added a commit to fedejeanne/eclipse.platform.swt that referenced this pull request Dec 19, 2024
@fedejeanne fedejeanne mentioned this pull request Dec 19, 2024
@fedejeanne
Copy link
Contributor

Ah, so close....

java.lang.Error: SWT Resource was not properly disposed
	at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:184)
	at org.eclipse.swt.graphics.Resource.<init>(Resource.java:114)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:260)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:228)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText.test_bug1610_fixedLineHeightWithChangingToSmallerFont_noException(Test_org_eclipse_swt_custom_StyledText.java:5945)
...

@akoch-yatta there seems to be a leak in the test so I removed it from this PR and added another one for the test. We can merge that one later --> #1687

@fedejeanne
Copy link
Contributor

Ignoring the usual suspects: #1676 and #1564

@fedejeanne fedejeanne merged commit 055ec84 into eclipse-platform:master Dec 19, 2024
8 of 14 checks passed
@akoch-yatta
Copy link
Contributor Author

Ah, so close....

java.lang.Error: SWT Resource was not properly disposed
	at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:184)
	at org.eclipse.swt.graphics.Resource.<init>(Resource.java:114)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:260)
	at org.eclipse.swt.graphics.GC.<init>(GC.java:228)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText.test_bug1610_fixedLineHeightWithChangingToSmallerFont_noException(Test_org_eclipse_swt_custom_StyledText.java:5945)
...

@akoch-yatta there seems to be a leak in the test so I removed it from this PR and added another one for the test. We can merge that one later --> #1687

Damn, yes, forget to clean up at the end of the test. I will create a new PR for that test tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StackOverflowError in SmartGit [Win32] Possible StackOverflowError setting null-font
2 participants