VirtualBox

Ignore:
Timestamp:
May 27, 2019 8:46:21 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7127: Remove excessive assertions for the cases which happens in real life.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r78723 r78774  
    428428        if (!medium(uMediumId).isNull())
    429429        {
    430             LogRel2(("GUI: UIMediumEnumerator:  Medium {%s} is cached already and will be enumerated!\n",
     430            /* This medium can be known because of async event nature. Currently medium registration event
     431             * comes very late and other even unrealted events can come before it and request for this
     432             * particular medium enumeration, so we just ignore that and enumerate this UIMedium again. */
     433            LogRel2(("GUI: UIMediumEnumerator:  Medium {%s} is cached already and will be enumerated..\n",
    431434                     uMediumId.toString().toUtf8().constData()));
    432             /// @todo is this valid case?
    433             AssertFailed();
    434 
    435             /* Enumerate corresponding UIMedium: */
    436435            createMediumEnumerationTask(m_media.value(uMediumId));
    437436        }
     
    789788    if (comMedium.isNull())
    790789    {
     790        /* This medium is NULL by some reason, the obvious case when this
     791         * can happen is when optical/floppy device is created empty. */
    791792        LogRel2(("GUI: UIMediumEnumerator:  Medium is NULL!\n"));
    792         /// @todo is this possible case?
    793         AssertFailed();
    794793    }
    795794    else
     
    809808            if (medium(uMediumId).isNull())
    810809            {
     810                /* This medium isn't cached by some reason, which can be different.
     811                 * One of such reasons is when config-changed event comes earlier than
     812                 * corresponding registration event. For now we are ignoring that at all. */
    811813                LogRel2(("GUI: UIMediumEnumerator:  Medium {%s} isn't cached yet!\n",
    812814                         uMediumId.toString().toUtf8().constData()));
    813                 /// @todo is this valid case?
    814                 AssertFailed();
    815815            }
    816816            else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette