1
SFML projects / X Error of failed request: BadShmSeg (invalid shared segmen)
« on: July 11, 2023, 07:28:45 pm »
Hi guys
I'm trying to test the hello world project but a I have this error:
Setting vertical sync not supported
X Error of failed request: BadShmSeg (invalid shared segment parameter)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Segment id in failed request: 0x60000d
Serial number of failed request: 118
Current serial number in output stream: 119
My code is:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200,200), "Hello From SFML");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Magenta);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if(event.type == sf::Event::Closed){
window.close();
}
}
window.clear();
window.draw(shape);
window.display();
}
return 0
}
I'm trying to test the hello world project but a I have this error:
Setting vertical sync not supported
X Error of failed request: BadShmSeg (invalid shared segment parameter)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Segment id in failed request: 0x60000d
Serial number of failed request: 118
Current serial number in output stream: 119
My code is:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200,200), "Hello From SFML");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Magenta);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if(event.type == sf::Event::Closed){
window.close();
}
}
window.clear();
window.draw(shape);
window.display();
}
return 0
}