Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #6444 (closed)

Opened 13 years ago

Closed 13 years ago

Bug: Movie ROI figure exception

Reported by: cxallan Owned by: wmoore
Priority: blocker Milestone: OMERO-Beta4.3.2
Component: Scripting Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-08-18 (3)

Description

Script failure, initiated from OMERO.insight:

Traceback (most recent call last):
  File "./script", line 802, in <module>
    runAsScript()
  File "./script", line 791, in runAsScript
    result = roiFigure(session, commandArgs)
  File "./script", line 673, in roiFigure
    maxColumns, showRoiDuration, roiLabel)
  File "./script", line 376, in getSplitView
    rect = getRectangle(roiService, iid, roiLabel)
  File "./script", line 326, in getRectangle
    return (int(x1), int(y1), int(width), int(height), timeShapeMap)
UnboundLocalError: local variable 'x1' referenced before assignment

Change History (3)

comment:1 Changed 13 years ago by cxallan

Script parameters:

{'Figure_Name': 'movieROIFigure', 'Show_ROI_Duration': False, 'Image_Labels': 'Image Name', 'Width': 300,
'Algorithm': 'Maximum Intensity', 'Data_Type': 'Image', 'Format': 'JPEG', 'Merged_Channels': [0, 1],
'Scalebar': 5, 'Scalebar_Colour': 'Violet', 'IDs': [12864L, 12863L], 'Height': 300, 'Max_Columns': 5,
'Roi_Zoom': 2.0, 'Resize_Images': True}
ROI figure created by OMERO on 2011-08-08

Image details:
 Image: /Users/callan/testimages/andor/MF-2CH-Z-T.tif [MF-2CH-Z-T.tif]  ID: 12864
  Date: 2006-01-26
  Tags: 
  Project/Datasets: p1/Batch image export fun, p1/d1
 Image: /Users/callan/testimages/andor/MF-2CH-Z-T.tif [MF-2CH-Z-T.tif]  ID: 12863
  Date: 2006-01-26
  Tags: 
  Project/Datasets: p1/d1, p1/Batch image export fun
Image dimensions for all panels (pixels): width: 300  height: 300
Scalebar is 5 microns
Last edited 13 years ago by cxallan (previous) (diff)

comment:2 Changed 13 years ago by cxallan

Further attempt with a rectangle:

{'Figure_Name': 'movieROIFigure', 'Show_ROI_Duration': False, 'Image_Labels': 'Image Name', 'Width': 300,
'Algorithm': 'Maximum Intensity', 'Data_Type': 'Image', 'Format': 'JPEG', 'Merged_Channels': [0, 1], 
Scalebar': 5, 'Scalebar_Colour': 'Violet', 'IDs': [12864L, 12863L], 'Height': 300, 'Max_Columns': 5,
'Roi_Zoom': 2.0, 'Resize_Images': True}
ROI figure created by OMERO on 2011-08-08

Image details:
 Image: /Users/callan/testimages/andor/MF-2CH-Z-T.tif [MF-2CH-Z-T.tif]  ID: 12864
  Date: 2006-01-26
  Tags: 
  Project/Datasets: p1/Batch image export fun, p1/d1
 Image: /Users/callan/testimages/andor/MF-2CH-Z-T.tif [MF-2CH-Z-T.tif]  ID: 12863
  Date: 2006-01-26
  Tags: 
  Project/Datasets: p1/Batch image export fun, p1/d1
Image dimensions for all panels (pixels): width: 300  height: 300
Scalebar is 5 microns
ROI zoom: 2.000000 X
Rendering row 0
  Scaling down the full-size image by a factor of 0.853333
  ROI location (top-left of first frame) x: 64  y: 52  and size width: 160  height: 159
  Pixel size (um): x: 0.8  y: 0.8
  Image dimensions (pixels): x: 256  y: 256
 Projecting Movie Frame ROIs...
Turning on channel: 0

And the resulting error:

Traceback (most recent call last):
  File "./script", line 802, in <module>
    runAsScript()
  File "./script", line 791, in runAsScript
    result = roiFigure(session, commandArgs)
  File "./script", line 673, in roiFigure
    maxColumns, showRoiDuration, roiLabel)
  File "./script", line 450, in getSplitView
    roiWidth, roiHeight, roiZoom, spacer, algorithm, stepping, fontsize, maxColumns, showRoiDuration)
  File "./script", line 180, in getROImovieView
    re.setActive(i, True)
  File "/home/omero/OMERO.server-4.3.2-DEV-bbea6e69-b2679/lib/python/omero_api_RenderingEngine_ice.py", line 373, in setActive
    return _M_omero.api.RenderingEngine._op_setActive.invoke(self, ((w, active), _ctx))
omero.InternalException: exception ::omero::InternalException
{
    serverStackTrace = ome.conditions.InternalException:  Wrapped Exception: (java.lang.ArrayIndexOutOfBoundsException):
-1
	at omeis.providers.re.Renderer.setActive(Renderer.java:848)
	at ome.services.RenderingBean.setActive(RenderingBean.java:1188)
	at sun.reflect.GeneratedMethodAccessor886.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy81.setActive(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor886.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:83)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy81.setActive(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor911.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179)
	at ome.services.throttling.Callback.run(Callback.java:56)
	at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56)
	at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:136)
	at ome.services.blitz.impl.RenderingEngineI.setActive_async(RenderingEngineI.java:387)
	at omero.api._RenderingEngineTie.setActive_async(_RenderingEngineTie.java:344)
	at omero.api._RenderingEngineDisp.___setActive(_RenderingEngineDisp.java:1207)
	at omero.api._RenderingEngineDisp.__dispatch(_RenderingEngineDisp.java:1716)
	at IceInternal.Incoming.invoke(Incoming.java:159)
	at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
	at Ice.ConnectionI.message(ConnectionI.java:972)
	at IceInternal.ThreadPool.run(ThreadPool.java:577)
	at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
	at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

    serverExceptionClass = ome.conditions.InternalException
    message =  Wrapped Exception: (java.lang.ArrayIndexOutOfBoundsException):
-1
}

comment:3 Changed 13 years ago by Will Moore <will@…>

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [2faf75c95658f3f83d2c243bf75394a45406a5a6/ome.git] on branch develop) Fixing C index and getRectangle() bugs in Movie_ROI_Figure.py. Closes #6444

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68029 sec.)

We're Hiring!