BUG in Building PBs

NetworkGeek
NetworkGeek Member Posts: 3,763 ✭✭✭
edited November 2024 in English Forum

If I start rebuilding a series of existing personal books, just doing Edit/then Build, because I have updated a number of resources, after I get to about 6 or 7 of them I start getting errors. These errors seem to be because too much is going on. If I wait for all the existing builds to finish, then reopen the personal book tool,m they build fine. A picture:

 

I don't expect them all to build at once, but I should be able to start them!

Comments

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    On L4 Mac 4.5c Beta 3, I get that "Could not remove existing resource" anytime I attempt to rebuild an existing book—If it has been opened at any time since L4 was restarted.

    May be a completely separate bug, but I did note the similarity.

  • Hunter Clagett
    Hunter Clagett Member, Logos Employee Posts: 1,819

    It would be very helpful if you could post your log files to this thread as well. 

    I was unable to reproduce this bug on Logos 4.5c Beta 4, so it might easily be fixed already. I'll of course follow up with our development team on this as well.

     

    Thanks,

    - Hunter Clagett

    Logos 4 Bug Report - Mac | PC

    Proclaim - Mac/PC

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    Sure - here you go!

    I used the Biblical Illustrator PBs in the Files section, I start building them (all their data is already in Logos), just hitting Edit/Build reasonably quickly. I get to about 9 of them started, AS SOON AS one of them finishes, every one after that will fail (see picture below).  This may be a clue - they all share the same JPG image for the resource! Hope this helps narrow it down, happens every time for me.

    image

     

    The PB log file is short for a build that fails, here is one:

    [Info] Starting build for PBB:45afe5a9230b47e891aa0a3b59039634
    [Error] Error while building book: Could not remove existing resource. Please close all other open panels and try again.
    [Error] Exception: LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookBuilderException: Could not remove existing resource. Please close all other open panels and try again.
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookConverter.<CreatePersonalBookWork>d__c.MoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNextWithCatch()
       at Libronix.Utility.Threading.AsyncWorkItem.Verify()
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.<CreatePersonalBookWork>d__a.MoveNext()

    01873.Logos4.log

    6283.Logos4Indexer.log

  • Ann Boyles
    Ann Boyles Member Posts: 681 ✭✭

    Could you tell me if you had any other panels open at the time and, if so, which ones? Did you just open up Logos and navigate directly to Personal Book Builder with nothing else open? Thanks.

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603
  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    Just updated to Beta 4—My particular problem (rebuilding a book previously opened) has been fixed. [Y]

    Also discovered that I can even rebuild a PB that is open—the tool will close it for you

    Now, it would be good to hear from Dominick

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭


    Could you tell me if you had any other panels open at the time and, if so, which ones? Did you just open up Logos and navigate directly to Personal Book Builder with nothing else open? Thanks.


     

    No other panels open - I just open up Logos and navigate directly to Personal Book Builder with nothing else open.

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    Now, it would be good to hear from Dominick

     

    I am not on Beta 4 - I am a little leery of jumping in as the bugs and time between releases may affect my ability to complete some proejcts I am working on.

    FYI, I have not ever had a problem rebuilding an open resource - it closes it and then starts its work.

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    Today I tried building all 36 Exell resources and got a crash on two different computers:

    Error ID: 3289
    Error detail: MethodBehaviorConverterException: Exception executing LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.BuildBook

    Libronix.Utility.Windows.Converters.MethodBehaviorConverter+MethodBehaviorConverterException: Exception executing LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.BuildBook ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The process cannot access the file 'C:\Users\AWALT\Documents\Logos Log Files\PBB Logs\PBB_9a3a9798995d487d9a8a5703ac5ea037.log' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
       at System.IO.StreamWriter..ctor(String path, Boolean append)
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookBuildLog..ctor(String resourceName)
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.<CreatePersonalBookWork>d__a.MoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.ContinueExecution(Object unused)
       at Libronix.Utility.Threading.AsyncWorker.DoStart[T,TController](AsyncWorkGroup group, IEnumerable`1 seq, AsyncWorkOptions options, CancellationToken cancellationToken, ISynchronizationContext synchronizationContext, Func`3 createController)
       at Libronix.Utility.Threading.AsyncWorker.Start(AsyncWorkGroup group, IEnumerable`1 seq, AsyncWorkOptions options, CancellationToken cancellationToken, ISynchronizationContext synchronizationContext)
       at Libronix.Utility.Windows.Threading.DispatcherAsyncWorker.Start(Dispatcher dispatcher, AsyncWorkGroup group, IEnumerable`1 seq, AsyncWorkToken& token)
       at Libronix.Utility.Windows.Threading.DispatcherAsyncWorker.Start(AsyncWorkGroup group, IEnumerable`1 seq, AsyncWorkToken& token)
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.CompileBook(PersonalBook book)
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.BuildBook()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Libronix.Utility.Windows.Converters.MethodBehaviorConverter.TryInvoke(MethodBase method, Object obj, Object[] aobjParams)
       --- End of inner exception stack trace ---
       at Libronix.Utility.Windows.Converters.MethodBehaviorConverter.TryInvoke(MethodBase method, Object obj, Object[] aobjParams)
       at Libronix.Utility.Windows.Converters.MethodBehaviorConverter.<>c__DisplayClass7.<Convert>b__0()
       at Libronix.Utility.Windows.Behavior.Execute()
       at Libronix.Utility.Windows.Behavior.Libronix.Utility.Windows.IBehavior.Execute(Object parameter)
       at Libronix.Utility.Windows.CommandUtility.<>c__DisplayClass9.<CreateCommandBindingForBehavior>b__7(Object sender, ExecutedRoutedEventArgs e)
       at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
       at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
       at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
       at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at LDLS4.OurApp.InitializeAndRun(ReadOnlyCollection`1 listArgs, SingleInstanceManager sim)
       at LDLS4.OurApp.Main(String[] astrArgs)

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    Today I tried building all 36 Exell resources and got a crash on two different computers:

    Was that 36 documents or all rolled into 1?

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    Was that 36 documents or all rolled into 1?

     

    No sorry I was not clear in the OP - It is just going through all 36 resources, clicking Edit, then Build. On to the next one.

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    It is just going through all 36 resources, clicking Edit, then Build. On to the next one.

    Will try to give that a try in 4.5c Beta 4 later today.

  • Ann Boyles
    Ann Boyles Member Posts: 681 ✭✭

    I just wanted to update: I was able to reproduce this issue in 4.5b SR-3. I was not able to reproduce it in 4.5c Beta 4. It looks like this has been resolved in 4.5c Beta 4. Thank you.

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    I was not able to reproduce it in 4.5c Beta 4. It looks like this has been resolved in 4.5c Beta 4.

    I have not yet been able to try this in Beta 4. Perhaps your post renders my attempts in Beta 4 unnecessary.

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    I just upgraded to 4.5c RC1 and the problem still happens. It actually failed on 3 of the builds out of the 35 or so Exell personal books.

    Here is one of the erros from the personal book log file:

    [Info] Starting build for PBB:86f6171484f84730ba5984e4f00b7585
    [Error] Error while building book: Could not remove existing resource. Please close all other open panels and try again.
    [Error] Exception: LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookBuilderException: Could not remove existing resource. Please close all other open panels and try again.
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookConverter.<CreatePersonalBookWork>d__c.MoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNextWithCatch()
       at Libronix.Utility.Threading.AsyncWorkItem.Verify()
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.<CreatePersonalBookWork>d__a.MoveNext()

    image

  • tom
    tom Member Posts: 3,213 ✭✭✭

    FYI... I put all of the Biblical Illustrator files into one resource so that I would only have to compile one book.

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭


    I just upgraded to 4.5c RC1 and the problem still happens. It actually failed on 3 of the builds out of the 35 or so Exell personal books.

    Here is one of the erros from the personal book log file:

    [Info] Starting build for PBB:86f6171484f84730ba5984e4f00b7585
    [Error] Error while building book: Could not remove existing resource. Please close all other open panels and try again.
    [Error] Exception: LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookBuilderException: Could not remove existing resource. Please close all other open panels and try again.
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookConverter.<CreatePersonalBookWork>d__c.MoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNext()
       at Libronix.Utility.Threading.AsyncWorkerTask`1.EnumMoveNextWithCatch()
       at Libronix.Utility.Threading.AsyncWorkItem.Verify()
       at LDLS4.Panels.PersonalBookBuilderPanel.PersonalBookViewModel.<CreatePersonalBookWork>d__a.MoveNext()

    image


     

     

    Ann, did you see this email, that the problem persists!

  • Ann Boyles
    Ann Boyles Member Posts: 681 ✭✭

    Dominik, in your earlier post you said:

    I get to about 9 of them started, AS SOON AS one of them finishes, every one after that will fail (see picture below).  This may be a clue - they all share the same JPG image for the resource!

    This time, with the RC-1 build, you say that

     It actually failed on 3 of the builds out of the 35 or so Exell personal books.

    Can you tell me if the resources that are now failing are the same resources that were previously failing, and if so, the titles of those resources? Additionally, is the behavior the same as before, where once one resource finishes, every one after that will fail?

    Could you also post your full logs after trying this? Your Logos4.log, any error logs, and all the PBB logs? It's helpful for us to have the whole shebang instead of just a quote from a PBB log without a Logos4.log to accompany it.

    Thank you.

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    Failure symptoms appear to be the same. These Joseph Exell documents (you can find them in the Files section) are big, so you can get all of them started before any complete. ONce complete, some will fail, some won't. It appears to be random. I really suspect it is because all the resources share an Image JPG, but just a reasoned guess of course since I have never seen this problem and they all share that file - it seems as if a lock on the file prevents a new build from starting.

    All of the logs that fail look like the one I posted if they fail, they look similar to this if they succeed:

    [Info] Starting build for PBB:8a982a2386284e6391d6dea81982b1e5
    [Info] Converting
    [Info] Converting C:\Users\Dominick\Dropbox\PBB Source Files\Joseph Exell - Biblical Illustrator - Psalms.docx
    [Info] Compiling
    [Warning] Consecutive duplicate Milestone Start for data-type bible: bible.19.3.2
    [Info] Discovering

     

    I'll post complete logs if I get a chance to run all this again. Did you see the crash I posted earlier as well? Have not seen that recently.
    [Info] Complete

  • tom
    tom Member Posts: 3,213 ✭✭✭

    Just to toss some mud into the pot.  I compiled all of the files into one PB, and everything worked just fine.  It just took L4 about six hours to create the PB.

  • Jack Caviness
    Jack Caviness MVP Posts: 13,603

    I compiled all of the files into one PB, and everything worked just fine.  It just took L4 about six hours to create the PB.

    I had considered doing that. Thanks for letting me know how long that would take. Still may do it this way [8-|]

  • NetworkGeek
    NetworkGeek Member Posts: 3,763 ✭✭✭

    So far the authors have made changes to individual volumes at different times - corrections, tags, etc. I would hate to have to aggregate and rebuild it each time there is an edit.