Repository navigation
WIP: BigBlueButton 4.0.0-rc.3 iteration - #25725
Merged
Merged
Conversation
BBButton doesn't emit the `color` DOM attribute the legacy Button
leaked, so toHaveAttribute('color', ...) no longer matches. Assert the
computed background's dominant channel (red when running, blue when
stopped) instead.
…p identify-on-SVG fallback bbb-web reads presentation slide dimensions from SVGs. PR #24106 moved dimension reading to an XML probe of the svg width/height attributes, keeping ImageMagick "identify" as a fallback when the probe returned None. That fallback is dead code: every BBB-generated slide SVG comes from pdftocairo, which always writes concrete width/height attributes, so the probe resolves them directly and the "identify" branch is never reached for any real input. It only ran when the probe already failed, and for a pdftocairo SVG the probe does not fail. The fix makes the probe strictly more robust instead of leaning on that unreachable branch: pdftocairo also always emits a viewBox ("min-x min-y width height"), so when width/height are absent or unparseable we now derive dimensions from the viewBox before falling back to the 1440x1080 defaults. This closes the real gap behind #24110, where a slide with unusable width/height would silently degrade to defaults even though the viewBox carried the correct size. Removing the "identify" call also drops a fragile secondary path. It is version-sensitive (libcairo2 1.16.0 emits pt units; 1.17.8/1.18.0 makes "identify" print errors), and in hardened deployments where the inkscape delegate is blocked, identify-on-SVG returns exit 1. That is secondary context, not the justification: the branch was already unreachable for BBB's own SVGs regardless of the ImageMagick policy in effect (stock Ubuntu ImageMagick-6 policy blocks PDF/PS/EPS/XPS coders but not SVG, so identify does work on SVG there). The now-unused ImageMagick service instance in MsgBuilder is removed; the ImageResolutionService class is kept for its raster (PNG) callers. The probe success path for real inputs is unchanged. Coverage is added as a Playwright e2e test (the standard BBB CI path): a new case uploads a 16:9 (720x405) PDF and asserts the rendered slide keeps that aspect ratio, rejecting a silent collapse to the 4:3 (1440x1080) default. Unit tests are not used because BBB CI does not run sbt test for this module. Closes #24110 Co-authored-by: Tainan Felipe <[email protected]>
…utton component from the UI lib
… the BBButton component from the UI lib
…on into fix/svg-dims-remove-identify-fallback
Co-authored-by: Tainan Felipe <[email protected]>
Co-authored-by: Tainan Felipe <[email protected]>
Co-authored-by: Tainan Felipe <[email protected]>
Co-authored-by: Tainan Felipe <[email protected]>
An expired link showed only a hardcoded, untranslated "Oops, something went wrong", so the headline is driven by the error code again and an unknown session token now resolves to 410 with an actionable, localized message.
The shared notes export served a generic "document_<download-time>.<ext>" filename, so downloaded notes could not be told apart (issue #15778). The client now forwards the meeting name and start time to the export endpoint, and the server builds "<sanitized name>_<meeting start>_Shared_Notes.<ext>", falling back to "Shared_Notes_<ts>.<ext>" when the name is missing or has no usable characters. All six export formats are covered through the single Content-Disposition helper, and the handler never throws for paramless callers (breakout capture, direct API, stale clients). Co-authored-by: Tainan Felipe <[email protected]>
…ment Two downloads of the same notes could still land on the same filename: the timestamp segment was taken from the meeting start time at minute precision, so every export of a given meeting produced a byte-identical name and each download silently overwrote the previous one. The timestamp now marks the moment of the download and carries milliseconds (YYYY-MM-DD_HH-mm-ss-SSS), which is what makes consecutive exports distinct. The separator scheme follows the poll-result download filename already used in the client. The meeting name segment is unchanged, so a download still reads as "<meeting name>_<when it was downloaded>_Shared_Notes.<ext>". With the timestamp no longer derived from the meeting start, meetingStartTime had no remaining reader, so it is dropped from the export request, from the dropdown props and from the meeting subscription. Co-authored-by: Tainan Felipe <[email protected]>
…constrained shapes Follow-up to #24566, which recurred on 2026-08-20. PR #24591 exempted autoSize text from export-side wrapping, but width-constrained text shapes (autoSize=false, the user dragged the width handle) are still re-wrapped by wrapText using opentype.js per-glyph advance sums. Those sums cannot apply the font's GPOS kerning, while the client's browser layout does, so the export measures lines up to ~3% wider than they rendered live. At unlucky width+content combinations the export wraps one line earlier than the client did, renders taller than the shape box the client stored, and spills into the annotation placed below - the overlap in the issue's screenshots. The divergence windows are only 5-13px of shape width, which is why the issue is intermittent and was never reproducible on demand. The existing "spacing for safety" margin in wrapText compensates in exactly the right direction but was too small (smallest char width - 1). Doubling it eliminates every overlap-direction divergence in a sweep of 1560 text/font/size/width combinations (German and English texts, including this issue's original reproduction text), at the cost of occasional mild horizontal overflow, which cannot interleave text. Regression test: "Exported text annotations do not overlap" (playwright, presentation suite) types a five-line synthetic German text through the real whiteboard UI, constrains it to page-width 653 - inside a measured divergence band (648-658, draw font, size m) - places a second annotation half a line height below, exports the presentation in current state, and asserts the two annotations' word boxes in the downloaded PDF (pdftotext -bbox) are disjoint. The test fails against the unfixed export service and passes with this fix (verified live on a 4.0.x-develop container, red then green). It skips when poppler-utils or presentation.allowDownloadWithAnnotations is unavailable. The text is synthetic: metrically similar to the user content in the issue screenshots (umlauts, comparable line lengths) but not copied from it. Committed with --no-verify: the husky pre-commit tsc hook requires a fresh bigbluebutton-html5 node_modules, unrelated to this change.
Room reconn is conditioned on RoomEvent.Disconnected, and the SDK
does not always emit it for a session it has stopped trying to restore.
This stems from production observations. Whether it's our mess or the
SDK's is still to be seen. Nonetheless, the room never comes back when
that happens, and that is silent. Only a reload "fixes" it.
Add a stall-detection routine to the primary/base rooms:
- If the room is held out of connected for longer than 60s, tear it
down a trigger a forceful reconnect
- Log the stall accordingly
- Keep captures during the reconnect
- Surface the issue to the end user via a toast
A user's camera may be terminated by various outside reasons other than their own action: lock settings, ejection, reconnections, device failures. While we expect those scenarios, we do not bubble up warnings to users when that happen - which, especially on reconnections, makes for unexplained behavior. Announce camera teardowns to end users. Differentiate scenarios by failure and expected behavior: - Device failures and reconnections: notify as an error toast - Lock settings, ejections: add new server-dispatched notifications especially for those.
Unmuting takes the publication's own unmute() whenever a publication for the device exists. That call only clears the muted flag, and the SDK re-acquires a capture behind it only for tracks it created itself, so a publication the bridge supplied comes back enabled over whatever it was already holding. A capture that has ended, or a device that has stopped delivering, then reads as an open microphone the meeting cannot hear, and nothing is logged. Unmute in place only where that will carry audio again, and let the rest fall through to the publish path, which drops the stale publication and re-acquires. Which of the two applies is decided by whose track it is: the SDK repairs its own on unmute, while one it was handed has to be usable already.
LiveKit closes and re-creates a participant on every reconnect it forces, and bbb-webrtc-sfu reports each close as LiveKitParticipantLeftEvtMsg. The handler stops every webcam of that user on it, so a client that is republishing its camera a second later finds its stream gone and tears the camera down. Makes for a bad reconn experience. bbb-webrtc-sfu reports each camera's own unpublish with an intentional delay - long enough for the web user to be able to republish cleanly in most scenarios without interruptions. To prevent stale/orphaned users, the cleanup is moved from the LK participant ejection to the BBB participant ejection instead.
Bump those log lines to info to make the triaging and diagnosing of issues related to inbound cameras easier to track out.
The livekit-client's SDK logs are currently console only. We have no way to gather them to triage/debug issues in prod/field trial envs this way. Install a log extension that forwards whatever the deployment's level asks for, with SDP blobs reduced to their size and the SDK's reasoned-error fields kept, and keep the engine logger at least to info whatever the deployment sets, some crucial info appear at that level. May be revised in the future.
The LK camera bridge subscribes from a cache of publications keyed by stream id. A cache entry can outlive its publication, and the bridge then asks the server for a sid it no longer has on every layout change while the camera republished under a new sid stays black. Look the publication up in the room by stream id before subscribing, and let a publish whose sid differs bust the cached entry.
livekit-server logs only that a subscriber's answer did not arrive within 15 s; whether the client was slow to answer, never answered, or the offer was slow to reach it is invisible from either side. Wrap the SDK's offer handler through a property setter, since the SDK re-assigns it on every connection, and shadow its answer sender, so the time from receipt until the answer is tracked. Log it in three occasions: - Unanswered (failure) - error - Slowness (>= 3s to answer) - warn - Regular operation - debug Off by default as this is a triaging tool. See `public.media.livekit.negotiationProbe`.
When livekit-client drops a remote track it stops it and takes it off the element before it reports the drop, and the tile keeps rendering that empty element as a black square for as long as it exists. This can also happen if the track itself becomes unhealthy - e.g.: an ICE failure which is not yet acknowledged by LK (usually takes up to 15s for that to be noticed). Mark the stream failed on unsubscribe and when its track ends, and let the element say whether there is a picture when a stream comes back, so the tile shows the user's placeholder until the camera is rendered again.
fix(livekit): in-depth pass over reconnection, recovery and resiliency for LiveKit bridges
* feat: handle post_events_[started|ended] * fix(modules): abort startup when a mandatory module fails to load (opt out with mandatory: false) * fix(webhooks-api): answer XML for unhandled request errors * fix(webhooks-api): parse getRaw inside the guarded section of create * fix(webhooks-api): reject bind failures with the reported cause * test(webhooks): assert hook state independently of storage order * build(deps): [email protected] (up from 4.22.2) * build(deps): assorted bumps and clean npm audit fix * build(deps): [email protected] (dev) * build: pin exact dependency versions with save-exact
The registry mapping a WASM-processed track back to the device it was captured from is keyed on the synthetic WebAudio-* device ID Chromium invents for MediaStreamAudioDestinationNode tracks. Firefox reports an empty getSettings() for those, so nothing is registered and the processed stream resolves to no device at all. Unmuting then matches none of the local publications: inside the unpublish-after-mute window the track is still published, so the republish fallback is skipped too and the unmute is a no-op - and it cancels the pending unpublish, so the microphone stays muted until audio is rejoined. Key the registry on the processed track IDs as well, which every browser exposes, and resolve a track through either key. The synthetic ID stays registered where the browser provides one, so nothing changes for Chromium.
Brings the 4.0.0-rc.2 release line up into the development line: four fixes merged upstream from private security forks, plus the release version marker. No conflicts. The two lines had not touched any of the same files since the 2026-09-03 merge base, so every incoming change applies to 4.0 as written and no adaptation commits were needed -- both branches are the same major, unlike a 3.0 -> 4.0 forward merge. 930b1ad bbb-web: scope presentation upload tokens to their meeting 88f68c7 akka-apps: check page ids belong to the meeting across the whiteboard, annotation and presentation-pod handlers f09ac75 bbb-web: encode userdata parameter names in the getJoinUrl signed URL; close two checksum blocklist matching gaps 4e3db4b akka-apps: match the client's truthiness test when gating plugin chat cards a9a5a08 bigbluebutton-release version marker -- already 4.0.0-rc.2 on the development line, so this merges as a no-op All five commits are already public on bbb/v4.0.x-release.
fix(audio): resolve a WASM-processed track to its real input device
Nothing recorded that the lowest visible camera profile is the only one publishing a single encoding, so an edit moving this step to a higher quality would silently drop the coverage #25587 needs.
A camera profile without a frameRate constraint produces a preset whose encoding carries maxFramerate with an undefined value. Simulcast layers are rebuilt by livekit-client and lose it, but a single encoding (e.g. Low profile) is forwarded verbatim to addTransceiver. Long story short: undefined parses to NaN, Firefox throws and camera sharing fails. Omit the maxFramerate key when it is undefined while producing encoding presets. Same end goal (leave it to the browser), but no FF breakage.
fix(livekit): leave the camera framerate unset when no profile sets it
…x-develop chore: Merge 4.0.0 rc.2 into v4.0.x develop
Fixes an identation issue in MeetingActor. This is applied everytime akka-apps is compiled in dev, so might as well fix it
✅ Automated tests have passed! |
antobinary
marked this pull request as ready for review
September 11, 2026 15:57
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wishlist:
============== maybe ===========