Giter VIP home page Giter VIP logo

squishjambicrash's Introduction

Demo for Squish 7.1 crashing Qt when running the Java app

Steps to reproduce the issue

  1. Install Qt 6.4.0
  2. Install Squish 7.1 for Mac, using Qt you've installed on the last step
  3. make run.sh of this repository executable with chmod +x run.sh
  4. Start the app using command like this ./run.sh -j /Users/max/Library/Java/JavaVirtualMachines/azul-11.0.13/Contents/Home -q /Users/max/Qt/6.4.0/macos/lib -p /Users/max/IdeaProjects/crashdemo
  5. Enter something in search, verify that you see no crashes, close the app.
    • Note that Squish hook is not installed because you don't set SQUISH_PREFIX env variable, like squish app does.
  6. Create new Squish Test Suite with run.sh AUT
  7. Add these arguments as program arguments there: -j /Users/max/Library/Java/JavaVirtualMachines/azul-11.0.13/Contents/Home -q /Users/max/Qt/6.4.0/macos/lib -p /Users/max/IdeaProjects/crashdemo
    • Make sure that arguments point to your locations of Zulu JDK11(download from here), Qt 6.4.0 and this project location
  8. In Squish /bin run squishserver --config setUsesBuiltinHook run.sh on
    • this will allow to attach squish only after squish hook was installed in Main.java
    • Without this squish would just fail to connect
  9. Now run AUT run.sh with parameters from step 6.
    1. You will observe that Squish loads first, but then crashes on eventDelay.connect(this::onUiEventDelay)
      1. this is just a normal signal subscription that works perfectly without squish attached.
    2. If you comment out that line, it will crash on line QApplication.instance().thread().finished.connect(s_bgQueueThread::quit); 2. this is just a normal signal subscription that works perfectly without squish attached.
    3. If you comment out that line, it will crash on line QApplication.instance().thread().finished.connect(m_uiPingThread::quit)
    4. If you comment out that line too, it will crash on QWidget frame = new QWidget() line, which seems to be the moment Squish app tries to join the hook

In folder src/crash/crashlogs you can see what is in logs when some of these crashes happen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.