Git Product home page Git Product logo

Comments (11)

klonyyy avatar klonyyy commented on May 24, 2024 1

It seems the #include <cstdint> is missing. Could you add it to the ITargetMemoryHandler.hpp and let me know if the compilation succeded?

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024 1

Thanks for the info. It seems the ./chips directory is not present in the executable directory. Could you copy it manually and see if the error goes away? It's located in third_party/stlink/ folder.

The weird gui is due to the fact imgui.ini file should be placed in the folder the executable is run from. If its not detected by the library its going to default to some random window sizes and positions.

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024 1

Could you also let me know which Arch Linux you are currently using? I will make a VM an try to reproduce and fix these problems

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024 1

Could you also let me know which Arch Linux you are currently using? I will make a VM an try to reproduce and fix these problems

Arch Linux is a rolling distribution, so there is no version information.

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024 1

Sorry I accidentally added the './' prefix and I think this is why you got it wrong. The directory is called 'chips' not '.chips'

from stmviewer.

klonyyy avatar klonyyy commented on May 24, 2024 1

I think it might be related to the spdlog, as after the last message the spdlog flush() is called. I will look into that when I have a working VM with Arch. Thanks for the feedback and feel free to let me know in case any other issues arise!

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024 1

With symlink to spdlog-1.12 it is working now ;-)

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024

Had to add the include also to Variable.hpp. Now compiles fine.

However, starting yields an unresolved `libspdlog.so.1.11'. On my system spdlog-1.12 is installed. Maybe the version is hardcoded somewhere?

Workaround: made a symbolic link for libspdlog.so.1.11.

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024

After starting (and stopping) I get the following messages on the shell:

[2023-10-23 11:04:18.223] [logger] [info] Starting STMViewer!
[2023-10-23 11:04:18.223] [logger] [info] Version: 0.2.0
[2023-10-23 11:04:18.223] [logger] [info] Commit hash 4ee85552d1f51cd0c9ba6f5eca58f9c9a4d09d59
./chips: No such file or directory
./chips: No such file or directory
[2023-10-23 11:04:26.166] [logger] [info] Exiting trace plot handler thread
[2023-10-23 11:04:26.209] [logger] [info] Exiting GUI main thread
[2023-10-23 11:04:26.227] [logger] [info] Closing STMViewer!
Speicherzugriffsfehler (Speicherabzug geschrieben)

Starting it from my home-dir gives me a weird gui. Starting it from the source-dir the gui looks ok.

P.S.: the german "Speicherzugriffsfehler" means SEGV.

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024

Thanks for the info. It seems the ./chips directory is not present in the executable directory. Could you copy it manually and see if the error goes away? It's located in third_party/stlink/ folder.

Hm, the error remains.

lmeier  ~  ls -ld .chips
drwxr-xr-x 2 lmeier users 4096 23. Okt 13:27 .chips
lmeier  ~  /usr/local/STMViewer/STMViewer
[2023-10-23 13:29:24.420] [logger] [info] Starting STMViewer!
[2023-10-23 13:29:24.420] [logger] [info] Version: 0.2.0
[2023-10-23 13:29:24.420] [logger] [info] Commit hash 4ee85552d1f51cd0c9ba6f5eca58f9c9a4d09d59
./chips: No such file or directory
./chips: No such file or directory
[2023-10-23 13:29:32.398] [logger] [info] Exiting trace plot handler thread
[2023-10-23 13:29:32.414] [logger] [info] Exiting GUI main thread
[2023-10-23 13:29:32.424] [logger] [info] Closing STMViewer!
Speicherzugriffsfehler (Speicherabzug geschrieben)
lmeier  ~                                                

The weird gui is due to the fact imgui.ini file should be placed in the folder the executable is run from. If its not detected by the library its going to default to some random window sizes and positions.

Yes, copying manually fixed the weird gui layout.

from stmviewer.

wimalopaan avatar wimalopaan commented on May 24, 2024

Sorry I accidentally added the './' prefix and I think this is why you got it wrong. The directory is called 'chips' not '.chips'

Oh, my fault!
Perfekt now, but SEGV at the end remains.

from stmviewer.

Related Issues (18)

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.