Skip to content

Comments

Dynamically resize image previews to fit the pane#711

Merged
SamCarlberg merged 3 commits intoWPIRoboticsProjects:masterfrom
SamCarlberg:feat/resize-previews
Dec 20, 2016
Merged

Dynamically resize image previews to fit the pane#711
SamCarlberg merged 3 commits intoWPIRoboticsProjects:masterfrom
SamCarlberg:feat/resize-previews

Conversation

@SamCarlberg
Copy link
Member

@SamCarlberg SamCarlberg commented Nov 10, 2016

Closes #706 and #710

Example

@codecov-io
Copy link

codecov-io commented Nov 10, 2016

Current coverage is 53.16% (diff: 31.48%)

Merging #711 into master will decrease coverage by 0.02%

@@             master       #711   diff @@
==========================================
  Files           232        233     +1   
  Lines          7408       7413     +5   
  Methods           0          0          
  Messages          0          0          
  Branches        722        716     -6   
==========================================
+ Hits           3940       3941     +1   
- Misses         3296       3298     +2   
- Partials        172        174     +2   

Sunburst

Powered by Codecov. Last update cef0c59...aa4ef59

Copy link
Member

@AustinShalit AustinShalit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon deleting a step GRIP crashes.

An event subscriber threw an exception

Stack Trace:

java.util.NoSuchElementException: Step edu.wpi.grip.core.Step@24017b29 is not in the pipeline
	at edu.wpi.grip.core.Pipeline.lambda$indexOf$12(Pipeline.java:371)
	at edu.wpi.grip.core.Pipeline.accessSafely(Pipeline.java:83)
	at edu.wpi.grip.core.Pipeline.readStepsSafely(Pipeline.java:124)
	at edu.wpi.grip.core.Pipeline.indexOf(Pipeline.java:368)
	at edu.wpi.grip.core.StepIndexer.compare(StepIndexer.java:26)
	at edu.wpi.grip.ui.analysis.AnalysisController.lambda$sortedStream$9(AnalysisController.java:211)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.util.TimSort.sort(TimSort.java:220)
	at java.util.Arrays.parallelSort(Arrays.java:1113)
	at java.util.stream.SortedOps$OfRef.opEvaluateParallel(SortedOps.java:158)
	at java.util.stream.AbstractPipeline.opEvaluateParallelLazy(AbstractPipeline.java:704)
	at java.util.stream.AbstractPipeline.sourceSpliterator(AbstractPipeline.java:431)
	at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:506)
	at edu.wpi.grip.ui.analysis.AnalysisController.onPipelineFinish(AnalysisController.java:158)
	at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:95)
	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:154)
	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:80)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)
	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:76)
	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:119)
	at com.google.common.eventbus.EventBus.post(EventBus.java:215)
	at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:93)
	at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
	at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

System Info:

Property Name Property
GRIP Version 1.5.0-rc3-9-gb6f79ba9f
java.version 1.8.0_102
javafx.version 8.0.102
os.name Mac OS X
os.version 10.12.2
os.arch x86_64

@SamCarlberg
Copy link
Member Author

Merging master should fix that. This branch is pretty out-of-date.

@SamCarlberg SamCarlberg merged commit e75b1f6 into WPIRoboticsProjects:master Dec 20, 2016
@SamCarlberg SamCarlberg deleted the feat/resize-previews branch April 25, 2019 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants