question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding libpd instant component to unity object causes exception

See original GitHub issue

Hello! First off thank you so much for this project, it’s gonna make a huge different to us once we get it working.

Adding a libpd instance to a simple cube object in a scene and playing a project gives us:

EntryPointNotFoundException: libpd_set_queued_printhook
LibPdInstance.Awake () (at Assets/Scripts/LibPdInstance.cs:508)

…which appears to be the first line in initialisation within LibPdInstance.cs.

This is in Unity 2019.4.10f1, and we tried both copying from the LibPdIntegration/LibPdIntegrationExamples, and downloading the v.2.1.1 release from the releases page and copying into scripts and assets from there.

This is on a MacbookPro running 10.15.7.

On Windows, running Unity 2019.4.18f1, the error does not happen.

But since I’m here: what’s the best example to look at to implement Unity2libpd messaging (simple bang) within an existing class, as opposed to attached to a simple game object/collider?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mcclurecommented, Sep 8, 2021

If anyone sees this problem in future: What this error means, at the underlying level, is that the libpd.so it found was not built with the “PD_UTILS” option. (It might also occur if a libpd is found but it is for the wrong type of computer, eg, you tired to load an ios shared object on android or something-- not sure).

0reactions
skoteskotecommented, May 4, 2021

Spent a day checking plugin after plugin without result. I then deleted the project and redownloaded it from Unity Hub - and suddenly LibPdIntegration works as expected. Have no idea what caused it initially but happy it works now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · LibPdIntegration/LibPdIntegration
Cannot set deprecated build target(s) - Unity 2020+ , LibPdINtegration v2.2.0 ... Adding libpd instant component to unity object causes exception.
Read more >
Object reference not set to an instance of an Object C# - ...
Hey guys! I am pretty new to C# and am currently making my second game using this language. The game is a clone...
Read more >
NullReferenceException
This error is caused when an object is trying to be used by a script but does not refer to an instance of...
Read more >
Object.Instantiate - Scripting API
This function makes a copy of an object in a similar way to the Duplicate command in the editor. If you are cloning...
Read more >
Instantiating Prefabs at run time
Add the script to the new GameObject as a component by dragging it onto the empty GameObject. Create any Prefab, and drag it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found