tobytang1987 / fighting-layout-bugs

Automatically exported from code.google.com/p/fighting-layout-bugs
Apache License 2.0
1 stars 0 forks source link

fighting-layout-bugs crash at runtime #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Whenever I try to run fighting Layout bugs on a specific page of a portal under 
development (not visible from the Internet) I get following Error. 
(On other pages I do not have any issue - it is just on a specific one)

What version of the product are you using? On what operating system?
I use the latest version with all dependencies. 
(fighting-layout-bugs-0.5-jar-with-dependencies.jar)
Running on : 
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', 
java.version: '1.6.0_20'
(From a jUnitTest from inside Eclipse)

2012-10-25 10:03:41,453 [main] DEBUG 
com.googlecode.fightinglayoutbugs.FightingLayoutBugs - Running 
DetectTextNearOrOverlappingHorizontalEdge ...
org.openqa.selenium.WebDriverException: TypeError: $img.data("flb_src_backup", 
$img.attr("src")) is undefined
Command duration or timeout: 484 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', 
java.version: '1.6.0_20'
Driver info: driver.version: RemoteWebDriver
Session ID: 3554dbc3-21bc-4b3b-be73-6b7eab51d3bf
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:498)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:407)
    at com.googlecode.fightinglayoutbugs.WebPage.executeJavaScript(WebPage.java:339)
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.hideImages(ScreenshotCache.java:170)
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.takeScreenshot(ScreenshotCache.java:159)
    at com.googlecode.fightinglayoutbugs.WebPage.takeScreenshot(WebPage.java:196)
    at com.googlecode.fightinglayoutbugs.AnimationAwareTextDetector.detectTextPixelsIn(AnimationAwareTextDetector.java:50)
    at com.googlecode.fightinglayoutbugs.WebPage.getTextPixels(WebPage.java:210)
    at com.googlecode.fightinglayoutbugs.DetectTextNearOrOverlappingHorizontalEdge.findLayoutBugsIn(DetectTextNearOrOverlappingHorizontalEdge.java:37)
    at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.findLayoutBugsIn(FightingLayoutBugs.java:176)
...
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Original issue reported on code.google.com by chann...@gmail.com on 25 Oct 2012 at 8:23

GoogleCodeExporter commented 9 years ago
I am seeing the same issue when i try to use FLB. What is the fix for this ?

Original comment by nagesh.s...@gmail.com on 13 Jan 2013 at 7:23