Giter VIP home page Giter VIP logo

Comments (15)

svalat avatar svalat commented on August 26, 2024

Hi Rob,

two answers :

  1. You first need to build your program or libraries with -g option to get the debug symbols in the binary so malt can find the source file paths.
  2. If for some reasons, you built your program on another computer and install for example an RPM you might not have the sources in the same exact path when you run the MALT webview. In this case you can override some paths to redirect them to another directory by using the -o/--override option.

Eg, if you built with sources in /rpm/.... and run on another machine where you copied the sources in /home/me/

malt-webview --override /rpm/my-project:/home/me/my-project -i malt-123456-my-program.json

Fill free to precise if it is not working for you.

from malt.

aulwes avatar aulwes commented on August 26, 2024

I tried the -o option, but isn't working. Is there a way to display the original source path that web view is expecting?

from malt.

svalat avatar svalat commented on August 26, 2024

Ohhhh, thanks for the report, there is effectively a real bug.

You can see the path of the file in the webview source browser when it failed to fetch the file.

You are most probably in the case where your sources are pointed via a relative paths which trigger a bug in the webview making the './' disappearing while arriving on the mini-server.

I fixed it in master branch.

If you are in this case it might be fixed.

For relative path replacement you might use, or it might work automatically if you are located in the source directory.

malt-webview --override ./:/home/me/my-project -i malt-123456-my-program.json

If you can confirm it is your issue.

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

svalat avatar svalat commented on August 26, 2024

Pretty sur I still have an issue on the ./ in the target part of the redirection, I will give a look.

Waiting the patch, can you try to put a full path instead of ./ ?

from malt.

svalat avatar svalat commented on August 26, 2024

In principle I made the fix on master branch.
If you can check and confirm or infirm.

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

svalat avatar svalat commented on August 26, 2024

So if I well understand you get the issue since you moved to master branch and before you got success with probably the released version 1.2.1 ?

Or am I wrong ?

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

svalat avatar svalat commented on August 26, 2024

The issue related to fastSkip is related the the backtrace on which I skip the first entries not to look on my own internal functions. But the exact value to use might depend on the way your compiler as inlined some functions. In principle this is detected but I probably have an issue if you get the error.

You can try to see if another value of the skip parameter might fix your issue manually via the options :

malt -o stack:skip=3 ......
malt -o stack:skip=4 ......
malt -o stack:skip=5 ......

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

svalat avatar svalat commented on August 26, 2024

As you directly call cmakeyou can also try to build in release mode which enable all the optimizations which impact this. I apply it automatically if you use the ./configure script.

Probably i need to fix something in debug mode.

cmake .. -DCMAKE_BUILD_TYPE=Release .......

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

svalat avatar svalat commented on August 26, 2024

I moved the second issue your reported in #76 so I can close this one.

from malt.

aulwes avatar aulwes commented on August 26, 2024

from malt.

Related Issues (20)

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.