« Return to Thread: corrupt project?

Re: corrupt project?

by Steven Yi :: Rate this Message:

Reply to Author | View in Thread

Well, I'm just glad we were able to fix it.  I'm wondering if there is
a bug where when soundObjects are removed from the library that they
aren't being deleted from FrozenSoundObjects.  My guess is there must
be a bug there, as I don't remember putting in any code to check the
frozen object's content and to delete or unfreeze if if it is a
polyObject and a sub-object has an instance of it.  I'll take a look
and will try to fix, and until then, might need to be mindful of this
scenario.  I'm sort of heads down in the new blue codebase, so will
plan to have the fix in the new blue.

Sorry the bug happened but glad your work was able to move forward!

steven



On Thu, Feb 19, 2009 at 11:39 AM, peiman <peimankhosravi@...> wrote:

>
> Thanks very much Steven,
>
> You are a genius!! I just changed the soundobject for a dummy object and it
> works!! I have an older session with the same object, before it was added to
> the sound object library, so I can just copy and paste that into my project.
> Thank you very much indeed...
>
> blue rocks!!
>
> Best
> Peiman
>
>
>
> Steven Yi wrote:
>>
>> Ah yes, I see in the project xml, the soundObject library is empty:
>>
>> <soundObjectLibrary/>
>>
>> and you have two instances of an object that doesn't exist in the
>> library, searching for:
>>
>> <soundObjectReference soundObjectLibraryID='-1'/>
>>
>> you can either change the soundObjectLibrary tag and put in a dummy
>> soundObject (can just copy/paste one into there, then modifying the
>> soundObjectLibraryID='0'.  Otherwise, can just remove the two
>> soundObjects that have the soundObjectReference and work from there.
>> (I tried removing the objects and it loaded the file! I'll send you
>> the version to your email account.)
>>
>> steven
>>
>> On Thu, Feb 19, 2009 at 11:28 AM, peiman <peimankhosravi@...> wrote:
>>>
>>> OK I believe the problem is that I might have accidentally deteled
>>> something
>>> in the soundobject library and now it cannot be found. Is it possible to
>>> open the project or somehow replace the soundObject with a dummy object?
>>>
>>> Thnks
>>> Peiman
>>>
>>>
>>>
>>> peiman wrote:
>>>>
>>>> Hi Steven,
>>>>
>>>> I am hoping that you can shed some light on this. I am trying to open
>>>> a rather large project that I was working on yesterday but I get these
>>>> errors and the project does not open.
>>>> Any help is much appretiated, or I've lost a whole days work :-( It
>>>> must be something stupid I've done... But last time I tried last night
>>>> it was working fine.
>>>>
>>>> All the best as always...
>>>> Peiman
>>>>
>>>> opcodePopup] Reinitializing...
>>>> [opcodePopup] Reinitialization finished
>>>> java.lang.reflect.InvocationTargetException
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>       at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>       at
>>>> blue.utility.ObjectUtilities.loadFromXML(ObjectUtilities.java:104)
>>>>       at blue.BlueData.loadFromXML(BlueData.java:500)
>>>>       at blue.BlueMainFrame.open(BlueMainFrame.java:626)
>>>>       at blue.BlueMainFrame.open(BlueMainFrame.java:568)
>>>>       at
>>>> blue.BlueMainFrame$BlueMenuBar$11.actionPerformed(BlueMainFrame.java:1888)
>>>>       at
>>>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
>>>>       at
>>>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
>>>>       at
>>>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>>>>       at
>>>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>>>>       at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
>>>>       at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
>>>>       at
>>>> javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1020)
>>>>       at
>>>> javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
>>>>       at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
>>>>       at
>>>> javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
>>>>       at
>>>> javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
>>>>       at
>>>> javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
>>>>       at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
>>>>       at
>>>> javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
>>>>       at
>>>> javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
>>>>       at
>>>> javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2849)
>>>>       at javax.swing.JComponent.processKeyBindings(JComponent.java:2841)
>>>>       at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
>>>>       at java.awt.Component.processEvent(Component.java:5379)
>>>>       at java.awt.Container.processEvent(Container.java:2010)
>>>>       at java.awt.Component.dispatchEventImpl(Component.java:4068)
>>>>       at java.awt.Container.dispatchEventImpl(Container.java:2068)
>>>>       at java.awt.Component.dispatchEvent(Component.java:3903)
>>>>       at
>>>> java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
>>>>       at
>>>> java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
>>>>       at
>>>> java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
>>>>       at
>>>> java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
>>>>       at
>>>> java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
>>>>       at java.awt.Component.dispatchEventImpl(Component.java:3941)
>>>>       at java.awt.Container.dispatchEventImpl(Container.java:2068)
>>>>       at java.awt.Window.dispatchEventImpl(Window.java:1801)
>>>>       at java.awt.Component.dispatchEvent(Component.java:3903)
>>>>       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>>>>       at
>>>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
>>>>       at
>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
>>>>       at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>>>>       at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>>>>       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>       at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>       at
>>>> blue.utility.ObjectUtilities.loadFromXML(ObjectUtilities.java:104)
>>>>       at blue.SoundLayer.loadFromXML(SoundLayer.java:312)
>>>>       at blue.soundObject.PolyObject.loadFromXML(PolyObject.java:812)
>>>>       ... 47 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>       at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>       at
>>>> blue.utility.ObjectUtilities.loadFromXML(ObjectUtilities.java:104)
>>>>       at
>>>> blue.soundObject.FrozenSoundObject.loadFromXML(FrozenSoundObject.java:259)
>>>>       ... 54 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>       at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>       at
>>>> blue.utility.ObjectUtilities.loadFromXML(ObjectUtilities.java:104)
>>>>       at blue.SoundLayer.loadFromXML(SoundLayer.java:312)
>>>>       at blue.soundObject.PolyObject.loadFromXML(PolyObject.java:812)
>>>>       ... 60 more
>>>> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
>>>>       at java.util.ArrayList.get(ArrayList.java:323)
>>>>       at
>>>> blue.SoundObjectLibrary.getSoundObject(SoundObjectLibrary.java:35)
>>>>       at
>>>> blue.SoundObjectLibrary.getSoundObjectByID(SoundObjectLibrary.java:111)
>>>>       at blue.soundObject.Instance.loadFromXML(Instance.java:172)
>>>>       ... 67 more
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>> Francisco,
>>>> CA
>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>> Enterprise
>>>> -Strategies to boost innovation and cut costs with open source
>>>> participation
>>>> -Receive a $600 discount off the registration fee with the source code:
>>>> SFAD
>>>> http://p.sf.net/sfu/XcvMzF8H
>>>> _______________________________________________
>>>> Bluemusic-users mailing list
>>>> Bluemusic-users@...
>>>> https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/corrupt-project--tp22107464p22107945.html
>>> Sent from the Csound - Blue - User mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Bluemusic-users mailing list
>>> Bluemusic-users@...
>>> https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Bluemusic-users mailing list
>> Bluemusic-users@...
>> https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/corrupt-project--tp22107464p22108144.html
> Sent from the Csound - Blue - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Bluemusic-users mailing list
> Bluemusic-users@...
> https://lists.sourceforge.net/lists/listinfo/bluemusic-users
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bluemusic-users mailing list
Bluemusic-users@...
https://lists.sourceforge.net/lists/listinfo/bluemusic-users

 « Return to Thread: corrupt project?