Domin Configuration Popup Got Stucked
To Reproduce
When I open Damian configuration popup and select host and service name, then stucked my screen. I have checked console logs and network tab nothing is wrong there...
Current vs. Expected behavior
This is the latest upgrade, not available this feature on last version.
Provide environment information
--- OS Info ---
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
--- Kernel ---
6.8.0-60-generic
--- Docker Version ---
Docker version 28.3.1, build 38b7060
--- Docker Compose Version ---
Docker Compose version v2.38.1
--- Dockploy Version ---
dockploy: Version v0.24.0
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
Yes
I'm getting Unresponsive Page and RESULT_CODE_HUNG on Chrome. Looks like an infinite loop/memory leak. Problem happens when the popup expands vertically (showing field errors or enabling https toggle). Don't have much time to check the code but probably related to the new Strip path toggle affecting the popup's height.
Can confirm this issue on Firefox and Vivaldi. The issue goes away when the domain configuration modal fully fits inside the window (i.e. no scrolling is necessary).
Can confirm the same issue, I had to revert back to previous version via terminal
docker service update \
--image dokploy/dokploy:v0.23.7 \
dokploy
Hello Guys, I have found a workaround, zoom out your screen using (CTRL -) and that resolves the issue.
Hello Guys, I have found a workaround, zoom out your screen using (CTRL -) and that resolves the issue.
My browser becomes unresponsive once the modal is launched and is forced to close, no opportunity to click ctrl -
Hi @dpnmw!
The same issue happed with me as well, I did it first (CTRL -) then open popup and suddenly everthing works as expected. Try this if woks
I'm investigating this issue. Anyone who has experienced it, feel free to tag me and share more details. I would appreciate if you share more information about browsers versions, OS and screen resolutions, those information will be extremely helpful to address the root cause. 🚀
@jhon2c The issue stems from max-h-screen on this line: https://github.com/Dokploy/dokploy/blob/320b927aac5d4f7388a9ccb5c97ca7e275bca75c/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx#L295
You can either modify the height and overflow handling or implement a ScrollArea for the dialog content.
This should also be fixed: https://github.com/Dokploy/dokploy/blob/320b927aac5d4f7388a9ccb5c97ca7e275bca75c/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx#L141 Ultimately, someone needs to go through all dialog implementations in the codebase and update them to avoid similar bugs in the future.
@jhon2c The issue stems from
max-h-screenon this line:dokploy/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx
Line 295 in 320b927
You can either modify the height and overflow handling or implement a
ScrollAreafor the dialog content. This should also be fixed:dokploy/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx
Line 141 in 320b927
Ultimately, someone needs to go through all dialog implementations in the codebase and update them to avoid similar bugs in the future.
so its just overflow??? but why it makes the entire app freeze tho???
I mean this is unacceptable in modern web standard even if there are overflow, it should not freeze the client
@thaarrtt The issue isn't max-h-screen. It's how Radix handles dialogs combined with shadcn styling, plus the dialog content not being inside a DialogOverlay (required for scrolling per the docs).
Scrollable dialogs are poor UX anyway, especially when action buttons aren't visible on initial render. This dialog needs a complete redesign. Full-width inputs for port, HTTPS toggle, etc. waste space. Text like "Remove the external path from the request before forwarding to the application" is confusing. What's an "external path"? Path prefix? Search params? There's way too many things going on in this dialog now.
This should be a two-column dialog where everything fits without scrolling. Input descriptions should use hover cards or tooltips instead of taking up screen real estate.
TLDR: The reported issue is not a memory leak, but rather a CPU-intensive operation error that occurs under specific conditions. The issue has been successfully reproduced and a fix has been identified.
Status
✅ Successfully reproduced across multiple browsers and operating systems, confirming this is a reproducible issue that can affect any user when the required conditions are present.
Impact Assessment
This issue can affect any user whose device/browser configuration meets the triggering conditions, making it a priority fix for the user experience across different screen sizes and content volumes.
Previous Testing Gap
The issue was not detected in previous testing cycles because all dialogs had no enough content volume and all test environments used devices that did not meet the conditions necessary to trigger the infinite render loop.
Root Cause
The problem stems from an infinite render loop within the shadcn/Radix Dialog component that triggers when specific conditions are met:
- Affected scenarios: Devices with smaller screen resolutions or dialogs containing large amounts of content
- Technical cause: Deep nested components in the shadcn/Radix Dialog system create an infinite render loop under certain conditions
- Impact: Massive CPU usage spike causing browser tab to hang and eventually crash
Resolution Progress
- [x] Fix identified and in development
- [x] Pull request with complete fix [expected within 24-48 hours]
- [x] Code review and testing of the proposed solution
Thank you for the PR @jhon2c I will release a new version with those changes!