Quantcast
Channel: bugs, errors - openFrameworks
Viewing all 636 articles
Browse latest View live

Bad key (0) and keycode (-1) in Caps Lock mode

$
0
0

@lilive wrote:

Hi,
I’ve got wrong values for one of the keyboard key with this code:

void ofApp::keyPressed(ofKeyEventArgs & args)
{
	cout << "key " << args.key << endl;
	cout << "keycode " << args.keycode << endl;
}

When in Caps Lock mode, the key value is 0 and the keycode value is -1 for the key ‘ù’.
Is it normal ?

The values for all the others keys seem to be fine.

I’ve got an AZERTY french keyboard. Using QtCreator OF 0.10.0 and Windows 7.

Here’s the output for this key:

// When Caps Lock is off everyting is fine...
key 249
keycode 39
// ...including with the shift key pressed:
key 37
keycode 39

// When Caps Lock is on this is not right...
key 0
keycode -1
// ...but it remains ok with the shift key pressed:
key 249
keycode 39

Do you think there is something I can do ?

[edit] I also have the same error with the key ‘à’

Posts: 3

Participants: 2

Read full topic


ofxAccelerometer examples do not compile in Xcode 9

$
0
0

@RonH wrote:

The examples in OF 0.10.0 that include ofxAccelerometer do not successfully compile with Xcode 9. They give the following error message:

Undefined symbols for architecture arm64:
“_ofxAccelerometer”, referenced from:
ofApp::setup() in ofApp.o
“ofxAccelerometerHandler::setup()”, referenced from:
ofApp::setup() in ofApp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Posts: 1

Participants: 1

Read full topic

"ofSetVerticalSync(true)" doesn't work in fullscreen. I have to use: "wglSwapIntervalEXT(1)" instead

$
0
0

@VinnieH01 wrote:

ofSetVerticalSync(true) worked perfectly when I ran my program in windowed mode. However, when I set it to fullscreen I noticed some obvious tearing at the top of the screen. I was able to fix the problem by using wglSwapIntervalEXT(1) so right now I don’t have any problems. I just thought I’d let you know so you might be able to fix this for future releases.

I’m using NVidia 980Ti with driver version 398.36 and Windows 10.

Posts: 1

Participants: 1

Read full topic

ofVec2f.h error

Error when running opencvExample on newest xcode and OSx Mojave

$
0
0

@imccorve wrote:

Hi,!

I am currently working on the newly released nightly build. When attempting to use live video in the opencvexample I ran into this error when running the program:

So I tried adding 'Privacy - Camera…(Description of what the camera is being used for" as a key + description to the info.plist file to tell xcode the reason for using the camera.

However, now I am receiving this error:

If anyone knows what might be the source of this issue please let me know. I’ve tried cleaning, rebuilding, and exiting out of xcode lol. I may have to uninstall xcode and rollback to an earlier version…

Posts: 1

Participants: 1

Read full topic

SoundPlayer causes application crash when using AU Lab

$
0
0

@JackKalish wrote:

Hello, I have an application that triggers different sound samples to play using the ofSoundPlayer.

This works fine and good, but I am also seeking to apply some real-time effects to the audio using AU Lab in combination with the kuwatec loopback app

This is basically just like soundflower - it allows me to feed the output audio from my machine into AU Lab, apply some effects to it, and route it back out of the default audio output (headphone jack).

This works fine for me with no issues with any other sound on my Mac (iTunes, YouTube, etc). This also was working find for me when using my Macbook Pro laptop.

However, when I try to do this with a Mac Mini, running OSX High Sierra - my OF app does not play any audio when AU Lab is open, and it then soon crashes with a runtime error on the ofModSoundPlayer EXEC Bad Access. Seems like the crash is happening somewhere within the sound play() function. My guess is that OF is having trouble locating the output device?

I’ve tried running the same app both on OF 0.9.8 and OF 0.10, with the same unfortunate results.

Any ideas on what could be causing this or a potential workaround would be much appreciated! Thank you.

Posts: 2

Participants: 2

Read full topic

ofxCv examples not compiling (make, ubuntu 16.04, of 0.10.0)

$
0
0

@vvzen wrote:

Hi everybody,
I’m trying to compile the ofxCv examples under ubuntu 16.04, and of 0.10.0 for gcc5.
Other addons are working fine, but I cannot manage to get ofxCv compiling.
I just cloned the repo, and I’m using the master branch.

I’ve got a few errors after running the make command:

/usr/bin/ld.gold: error: cannot find -lippicv
collect2: error: ld returned 1 exit status

and then

/mypath/of_v0.10.0_linux64gcc5_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: recipe for target 'bin/example-background' failed

/mypath/of_v0.10.0_linux64gcc5_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed

Any hints?

Posts: 8

Participants: 2

Read full topic

No rendering initially in Mojave

$
0
0

@nebulus_design wrote:

Hi All

I’m running oF 0.10.0 and just updated to Mojave and Apple appear to be doing something slightly different under the hood now, I get a blank screen when my app starts up, although the code is running in the background,

I’ve found I need to move the window to get it to render, so naively I’ve added this snippet to my draw method to imperceptibly nudge the window position:

  if( ofGetFrameNum() == 1 )
  {
    ofSetWindowPosition( ofGetWindowPositionX(), ofGetWindowPositionY()+1 );
    ofSetWindowPosition( ofGetWindowPositionX(), ofGetWindowPositionY()-1 );
  }

Curiously it needs to happen on or after the second frame, possibly the window/GL isn’t fully setup on frame 0?
I’m on a deadline to get something out of the door right now, and will look for a better solution later, but would be interested if anyone else is seeing the same issue?

Happens on all my oF projects even the emptyExample. Maybe this hack-fix will help others with the same issue or guide someone who knows the detail of what’s going on under the hood of oF to find a solution.

Posts: 1

Participants: 1

Read full topic


Creating a real-time histogram of webcam input: Issue

$
0
0

@FreddyGump wrote:

Hello,

Trying to generate a histogram from my real-time webcam input. The video is transformed to grayscale and I’m trying to create a histogram from it.

For this, I try to use the “calcHist” function from the ofxCv library. When I do it with a still image it works, however when I try the same code with my camera input it gives the error; “no matching function for call to calcHist()”

Does anyone know where I should look for this?

Thank you very much!

Posts: 1

Participants: 1

Read full topic

Flashing background when using keyPressed(){

$
0
0

@lukedash wrote:

Hi! Having some funny issues here with calling ofBackground() in keyPressed(int key){

After having this issue in high Sierra on an older version, I am now using the nightly build: of_v20181009_osx_release with Mojave and the issue is still persisting.

if it is relevant, I am on a 2017 MacBook Pro

basically I just have this simple conditional inside keyPressed,

if (key == 'r' || key == 'R'){
    ofBackground(255);
}

setBackgroundAuto is set to false, and the frame rate is set as 60fps.

When the app is running and r is pressed, the newly placed background begins flickering on and off again very fast.

The problem does not occur if I just use a global incrementing integer (like a timer) to trigger a conditional which does the same thing (make a new background) in draw.

I thought a bool assignment from keyPressed controlling a conditional in draw might solve the issue, but the flickering comes back if I do that.

Flickering issue:

in my ofApp.cpp:

#include “ofApp.h”

//--------------------------------------------------------------
void ofApp::setup(){

ofSetWindowShape(600,600);
ofBackground(127);
ofSetBackgroundAuto(false);
ofSetFrameRate(60);
ofSetColor(255, 0, 0, 10);

}

//--------------------------------------------------------------
void ofApp::update(){
circleRes = ofMap(mouseX, 0, ofGetWidth(), 3, 10, false);
circleRad = mouseY/2;
}

//--------------------------------------------------------------
void ofApp::draw(){
//calling ofBackground for only one frame every 100 in here also creates the same issue:

//timer++;
//if ( timer > 100){
//ofBackground(255);
//timer = 0;
}
}

//--------------------------------------------------------------
void ofApp::keyPressed(int key){
//keys ‘1’, ‘2’, ‘3’ change colour of shapes being drawn just fine
if (key == 49){
ofSetColor(0, 0, 0, 10);
}
if (key == 50){
ofSetColor(255, 0, 0, 10);
}
if (key == 51){
ofSetColor(0, 255, 0, 10);
}

if (key == 'r'||key == 'R'){
    ofBackground(255);
}

if (key == 's' || key == 'S'){
    ofSaveScreen(ofToString(ofGetFrameNum())+".png");
}

}

//--------------------------------------------------------------

void ofApp::keyReleased( int key){

}

//--------------------------------------------------------------

void ofApp::mouseMoved( int x, int y ){

}

//--------------------------------------------------------------

void ofApp::mouseDragged( int x, int y, int button){

ofNoFill();

//ofSetColor(255, 0, 0, 20);

ofSetCircleResolution(circleRes);

ofDrawCircle(ofGetWidth()/2, ofGetHeight()/2, circleRad);

}

and my ofApp.h looks like this:

#pragma once

#include “ofMain.h”

class ofApp : public ofBaseApp{

public :

void setup();

void update();

void draw();

void keyPressed( int key);

void keyReleased( int key);

void mouseMoved( int x, int y );

void mouseDragged( int x, int y, int button);

void mousePressed( int x, int y, int button);

void mouseReleased( int x, int y, int button);

void mouseEntered( int x, int y);

void mouseExited( int x, int y);

void windowResized( int w, int h);

void dragEvent(ofDragInfo dragInfo);

void gotMessage(ofMessage msg);

int timer = 0;

int circleRes, circleRad;

bool reset = false ;

};

Posts: 2

Participants: 1

Read full topic

Window not drawn on startup using Xcode10

$
0
0

@cuinjune wrote:

Hi, I updated Xcode to version 10 after updating my macOS to the latest 10.14.

However, when I run a simple OF project that draws a red circle in the center, nothing is drawn on the window and even the background color looks white and not default grey.

It works again once I move position of the window using mouse.

Also, the following message appears on the console:

2018-10-24 00:01:55.949915+0900 emptyExampleDebug[11494:1805156] [default] Unable to load Info.plist exceptions (eGPUOverrides)

I think this message didn’t appear when I ran the project using Xcode9.
I tested this on both stable release and nightly build and they all have this problem.

Is this a known issue?
If not, I would appreciate if any Xcode10 user can confirm this issue.

Posts: 2

Participants: 2

Read full topic

Xcode 10 / mojave issues

$
0
0

@arturo wrote:

If you are having issues with xcode 10 and latest macos. It is a known problem and we are looking into it.

By now we recommend not updating to mojave or xcode 10.

Xcode 9 should work fine but if you’ve updated to mojave there might be some issues running applications that use the camera, sound or in general any peripheral that now needs specific permissions.

The errors we have detected include

  • You need to move the window for the app to start drawing
  • Camera, sound… wont’ work
  • xcode rebuilds all of OF every time
  • Applications don’t compile at all complaining that quicktime framework doesn’t exist
  • Applications don’t compile at all complaining that i386 is not a supported platform

The last 2 issues have been solved in the nightly builds which you can find in the downloads page below the normal downloads

Posts: 7

Participants: 2

Read full topic

projectGenerator doesn't work on 0.10.0 ios version

$
0
0

@zac wrote:

when I try to generate any project there is no way to change platform in combo box. By default its OS X (Xcode) and combo box is disabled. I’m using macos high sierra (10.13.6) and the latest stable 0.10.0 for iOS openframeworks version

Posts: 2

Participants: 2

Read full topic

OpenFrameworks essentials chapter 6

$
0
0

@bobby wrote:

I try to run the source code of chapter 6 of the book "openframeworks essentials’ but there is a conflict of types I think (I’m a beginner). These are the screenshots.
Can anybody help me out please

Posts: 6

Participants: 2

Read full topic

ofDrawArrow not drawn correctly

$
0
0

@cuinjune wrote:

If I draw an arrow using ofDrawArrow I don’t see the head at the end of the arrow. It just draws a line.

//--------------------------------------------------------------
void ofApp::draw(){

    ofDrawArrow(glm::vec3(100, 100, 0), glm::vec3(300, 300, 0), 500);
}

So I tried to increase the size of the head to 500 and here’s what I got.

As you can see, the head is not correctly translated.

I tested this with the latest nightly build on macOS Mojave 10.14 using Xcode 10.

Is this a macOS specific issue?

Posts: 3

Participants: 2

Read full topic


Loading an image after ofDisableArbTex() causes crash

ofxGui Mojave + Xcode 10 bug?

$
0
0

@Bentley wrote:

I’m having an error with the new OSX Mojave and Xcode 10 running oF 0.9.8 specifically with ofxGui

I’m able to compile everything no problem by changing my plist camera permissions and modifying my minimum versions etc. however now, whenever I make a change to anything relating to my ofxPanel like adding a new ofParameter to it I get a runtime EXC_BAD_ACCESS error at line 23 of ofxGuiGroup within my gui.setup() call.

This happens if I add a listener to an existing ofParameter, if I add a new parameter to my ofxPanel via the add method or if I just change my setup call from the 2 parameter overload to the 0 parameter overload.

The only way for me to get rid of the error is to do a clean build of the project which is obviously time consuming.

Does anyone have any insight in to what might be causing this? I’ve add links some screenshots of the call stack as well as relevant code snippets.

Image 1
Image 2
Image 3

Posts: 3

Participants: 2

Read full topic

ofSoundStream not work when DSD Transcoder installed

$
0
0

@Peachman wrote:

I installed foobar2000 app to listen to music of DSD format (yes, I’m a music lover).
Then, foobar2000 recommends to install DSD Transcoder to transcode DoP format into DSD native format.

However, after installed the DSD Transcoder, ofSoundstream became not able to work. My app seems said nothing with it (no error message) but I was carefully to read the debug messages and found this below;

\DSDTranscoder\dsd_transcoder_x64.dll'. Cannot find or open the PDB file.
\Windows\System32\comdlg32.dll'.  Cannot find or open the PDB file.

the message happened when

ofRtAudioSoundStream::getDeviceList

is called. Inside the function above,

info = audioTemp.getDeviceInfo(i);

audioTemp calls getDeviceInfo method and when the DSD Transcoder is read (this api is belonged to ASIO), oF sometimes stops reading program any more (but no error message and sometimes goes through but mostly stop reading).

I’m not for sure about PDB file and how to create it for DSD Transcoder too. If there is someone who can solve this problem, I reallly appreciate. Now I put some if statements to ignore to read DSD Transcoder. It works but I know this obviously seems not the best way…


Actually I’ve done not only putting some if statements to ignore to read DSD Transcoder in ofRtAudioSoundStream::getDeviceList function, your oF might try to use ASIO api in ofSoundstream setup function (and read DSD Transcoder…).

In that case, you should check this answer. I’m using Voicemeeter to root audio from SuperCollider to oF. I forced my ofSoundStream to use MS DS like this answer. It works well!

Posts: 1

Participants: 1

Read full topic

About videoGrabberExample in emscripten

$
0
0

@kokawa2003 wrote:

hello
I checked OF 's videoGrabberExample in emscripten.
I set it in this site
http://monkeytalk.jp/cam/videoGrabberExample.html
If I open this in Firefox ,it worked,
but if I open it in chrome .it cannot work(It cannot show camera permission dialog) .
only black image is shown.

Bit if I test it in local PC by this command
emrun --browser chrome bin/videoGrabberExample.html
it worked.(It can show camera permission dialog)

I want to know why it cannot show camera permission dialog in chrome only my site.
Do you know its reason?

Posts: 2

Participants: 1

Read full topic

Arch linux compilation error after updating the system

$
0
0

@dbwat wrote:

on all my computers I have this error since my update? Arch linux…

In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/stdint.h:9,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:2,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.h:3,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.cpp:1:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
In file included from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.h:3,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.cpp:1:
/usr/include/GL/glext.h:12066:105: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, const GLfloat*)'
 typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
                                                                                                         ^
In file included from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:210,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.h:3,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.cpp:1:
/usr/include/GL/glew.h:18734:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum, GLenum, GLfloat*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.h:3,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.cpp:1:
/usr/include/GL/glext.h:12068:103: error: conflicting declaration 'typedef void (* PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum, GLenum, const GLint*)'
 typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
                                                                                                       ^
In file included from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:210,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.h:3,
                 from /home/db/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/app/ofAppNoWindow.cpp:1:
/usr/include/GL/glew.h:18736:28: note: previous declaration as 'typedef void (* PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum, GLenum, GLint*)'
 typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

...;

Bernard

Posts: 1

Participants: 1

Read full topic

Viewing all 636 articles
Browse latest View live


Latest Images