Hi Peter, On 11.01.2012 00:20, [email protected] wrote: > Hi (I hope and guess this is the right mailing list),
yes, it is. > I posted my problem already in the virtualbox forum > (https://forums.virtualbox.org/viewtopic.php?f=7&t=46963), but there are > no answers until now. That is why here is my problem: > > > I am trying to communicate with VirtualBox using the Java API. My OS is > Ubuntu and i working with VirtualBox 4.1.4 (I should/must use this > virtualbox version. If the following > problem does not occur in newer version, I might be able to change the > version). Would have to double check. You're most likely running into a bug in the API implementation somehow. Explicit diff image merging isn't used in VirtualBox at the moment, so it seems there's a bug hiding somewhere in code paths which aren't touched by the implicit diff image merging used by snapshot deletion. This triggers implicit diff image merging. > |IProgress progress = diff1.mergeTo(base); > progress.waitForCompletion(-1);| > > > > Here I get the following error: > > Exception in thread "main" org.virtualbox_4_1.VBoxException: The > function "mergeTo" returned an error condition: "Assertion failed: > [this->lockHandle()->isWriteLockOnCurrentThread()] at > '/home/vbox/vbox-4.1.4/src/VBox/Main/src-server/MediumImpl.cpp' (4285) > in nsresult Medium::markForDeletion(). > Please contact the product vendor!" (0x80004005) This means an implementation assertion fails, and normally this indicates a code bug in the API. This should be independent of the API client code, and also independent of the programming language which you're using. Of course it's much appreciated that you provided the information. I wonder how we can find the issue as quickly as possible... do you have a short test case which triggers this in a straightforward way? Thanks, Klaus > > All conditions of the method mergeTo are satisfied: > - the mediums are not attached > - they are not immutable > - the chain is linear > - medium state is not MediumState.LockedRead or MediumState.LockedWrite > > Also the forward merge does not work. > > I hope their is some solution or a fault of mine. > > > Best regards, > Peter > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192* > > > > _______________________________________________ > vbox-dev mailing list > [email protected] > https://www.virtualbox.org/mailman/listinfo/vbox-dev _______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
