we are using ELAN 5.2 to make annotations for video files. So far we encountered 3 bugs.
The original video format was MP4, but when using this format with ELAN it only shows a blue screen.
This changes when we converted the videos to wmv format, but than some of the videos lag in the beginning. (These videos are not lagging when played with a media player).
When making annotations to some videos it sometimes happens, that ELAN closes itself when the Play button is pressed. Mostly this happens with videos that are lagging as well. If you try to restart ELAN after this the Error: “Could not create Java Virtual Machine” appears.
On Windows I also sometimes see a blue screen when opening a file, but it disappears when starting the player. Does it remain blue in your case? In principle MP4 should be all right.
A hard crash like that is quite serious; are there any log messages after the crash (in elan0.log in ELAN’s data folder or in a pid_nnn_.log file in ELAN’s install folder)?
I did find the log file and compared the messages from a video that did not cause a crash to those from a video that did cause one.
The log messages from the crash-inducing one ended with the last thing I did, before pressing play, e.g. saving. No further Alerts or Warnings were logged.
For the rest of the log messages there is no difference among the two videos.
Since there is no clue for the crashes, maybe we can go back to .mp4. If you open an .mp4 and see the blue screen, are there video related messages in the log (View->View Log…)?
So I tried playing an .mp4 (and encountered an mp4 that did run without problems) with the blue screen problem.
The log file contains the warning that the aspect ratio and the width are not initialized multiple times in a row. Then the aspect ratio is 0.0. After which the log file again states that the aspect ratio and the width are not initialized.
Just a second ago as I was trying out which mp4s run without problems and which have a blue screen, ELAN crashed again.
But this time there is actually something noted in the log. I’ll just copy it here. Maybe it sheds light on the other problems I have encountered.
log entry on crash:
Exception in thread “AWT-Windows” java.lang.OutOfMemoryError: OutOfMemoryError
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: disposed component
at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
at sun.awt.Win32GraphicsConfig.createSurfaceData(Unknown Source)
at sun.java2d.ScreenUpdateManager.createScreenSurface(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(Unknown Source)
at sun.awt.windows.WComponentPeer.createScreenSurface(Unknown Source)
at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
at sun.awt.windows.WComponentPeer.setBounds(Unknown Source)
at java.awt.Component.reshapeNativePeer(Unknown Source)
at java.awt.Component.reshape(Unknown Source)
at java.awt.Component.setBounds(Unknown Source)
at mpi.eudico.client.annotator.layout.AnnotationManager.doLayout(AnnotationManager.java:1427)
at mpi.eudico.client.annotator.ElanLayoutManager.doLayout(ElanLayoutManager.java:736)
at mpi.eudico.client.annotator.ElanLayoutManager.setMediaAreaHeight(ElanLayoutManager.java:955)
at mpi.eudico.client.annotator.gui.ResizeComponent.mouseDragged(ResizeComponent.java:246)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Although that is at least something, it is unclear to me which problem comes first: not being able to determine the width and aspect ratio of the video or not being able to create a native GDIWindowSurface. Nor is it clear why these errors occur with specific video files and not with others.
Are there any important differences in e.g. the Details tab of the .mp4’s Properties window in the Explorer?
Not being able to determine width and aspect ratio of the video came first. The problem with the GDIWindowSurface came second.
The videos I compared show the same scene but were rendered with different qualities or show different sections of the scene. So the differences are in height, width and bitrate of the videos. Maybe the problem lies with the program I use for rendering (Samsung Gear 360 Action Director).
While comparing the videos different errors showed up in the log-file.
First video: width and aspect ratio could not be initialized. The video screen stayed blue.
Second video: the aspect ratio was initialized. Then this entry followed
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at javax.swing.JTabbedPane.getTitleAt(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.updateHtmlViews(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.componentAdded(Unknown Source)
at java.awt.Container.processContainerEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at javax.swing.JTabbedPane.insertTab(Unknown Source)
at mpi.eudico.client.annotator.layout.AnnotationManager.reArrangeViewers(AnnotationManager.java:1157)
at mpi.eudico.client.annotator.layout.AnnotationManager.doLayout(AnnotationManager.java:1550)
at mpi.eudico.client.annotator.ElanLayoutManager.doLayout(ElanLayoutManager.java:736)
at mpi.eudico.client.annotator.ElanLayoutManager.preferencesChanged(ElanLayoutManager.java:1059)
at mpi.eudico.client.annotator.Preferences.notifyListeners(Preferences.java:637)
at mpi.eudico.client.annotator.ElanFrame2.initElan(ElanFrame2.java:1010)
at mpi.eudico.client.annotator.ElanFrame2.<init>(ElanFrame2.java:356)
at mpi.eudico.client.annotator.FrameManager.createFrame(FrameManager.java:890)
at mpi.eudico.client.annotator.commands.global.NewMA.createFrame(NewMA.java:172)
at mpi.eudico.client.annotator.commands.global.NewMA.createNewFile(NewMA.java:161)
at mpi.eudico.client.annotator.commands.global.NewMA.actionPerformed(NewMA.java:63)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Error: failed to close the player gracefully.
Then the width and the aspect ratio couldn’t be initialized. The screen stayed blue.
Third and fourth video: Worked fine. No error messages.
Fifth video: aspect ratio was initialized. Then this error occured.
Exception in thread “PeriodicUpdateController” java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Unknown Source)
at mpi.eudico.client.mediacontrol.EventPoster.<init>(EventPoster.java:28)
at mpi.eudico.client.mediacontrol.EventPostingBase.postEvent(EventPostingBase.java:67)
at mpi.eudico.client.mediacontrol.PeriodicUpdateController.run(PeriodicUpdateController.java:53)
at java.lang.Thread.run(Unknown Source)
The screen stayed blue.
There are several things going on and on error might produce the next one. The first thing to try, I guess, is to not link any videos of which the aspect ratio cannot be initialized. Now I’m unsure about whether you link all the videos to a single transcription file or linked the files one-by-one to a separate transcription window. In any way, I assume the OutOfMemoryError (fifth video in this case) is the result of the errors of the other videos. Unless you quit ELAN after each attempt leading to an error message in the log.
Every file was linked one-by-one to a separate transcription window.
In the mean time I came to think that all these errors are a result of one another and that the main problem lies within the PC and Software we use ( we are currently running on Windows 7 and videos with higher quality lag no matter what player we use). So I have to figure out those problems first.
Nevertheless thank you for your support and patience
Hi! Did you manage to solve this? I’m having the same issue, and, quite frankly, I can barely understand your dialog here… I get a blue screen with all .mp4 files. One interesting thing, which may be worth mentioning: these files were originally .mov, and I had them converted, because MOV returns an error message. Please help.