I've tried in Chrome and Internet Explorer on my machine here, and it will not let me insert a snippet. I press the Insert into post button and nothing happens. Even here on MSO it's not working.

There doesn't seem to be any JavaScript errors in the Chrome console either.

To add as much information as possible. My steps. In the answer box press the Code Snippet button or press Ctrl + M, enter anything you like into the available boxes and press the Insert into post button. Note that NOTHING happens.

I have now tried on two browsers on my work laptop (Chrome and IE in Windows 8.1) and form my home computer (Chrome on Windows 8.1), both without a proxy server (unless the ISPs are both interfering somehow transparently)

I have tried disabling AdBlock, TamperMonkey etc (even though they were not affecting my IE session)

Additionally, as @JaredReeves suggested in the comments, if you click outside of the popup window instead of pressing the insert button, the code does get inserted correctly.


Screenshot of the issue, shared by KyleMit:

enter image description here

share
    
Hum. Seeing same thing here (though first time I try that feature). Got an error in the console when trying to run the snippet (after failing to insert into the post): POST stacksnippets.net/js net::ERR_EMPTY_RESPONSE ; Chrome 37.0.2062.124 m. –  Mat 2 days ago
    
@Mat Oddly I'm not seeing that error. –  DavidG 2 days ago
    
Well, I'm behind a somewhat barbarian firewall right now, so... strange that we can't see any error on the insert button though. –  Mat 2 days ago
1  
@DavidG Since you tagged it bug, he'll likely see it at some point today, and if the comment isn't deleted... Then he'll see my suggestion. :) –  Kendra 2 days ago
1  
Repro here. See this in the console: Uncaught SecurityError: Sandbox access violation: Blocked a frame at "stacksnippets.net"; from accessing a frame at "meta.stackoverflow.com";. The frame requesting access is sandboxed and lacks the "allow-same-origin" flag. –  Will 2 days ago
1  
@DavidG I downvoted the question. Please use some of the Main site behaviour when you report a bug : include a specific problem or error and how to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.. Or in other words please provide some screenshots or additional informations, rather than saying I can't use it. We want to understand why you are affected by this problem while it works for other peoples. Otherwise I can't understand this doesn't work for you. –  user2284570 2 days ago
3  
@DavidG I am experiencing the same thing, however, when I click out side the code window, the content is actually placed in the post. It just looks like it is not working. Is this happening for you as well. Note: it was working correctly for me yesterday –  Jared Reeves 2 days ago
23  
@user2284570 The OP described perfectly what happens. He presses the Insert Into Post button and nothing happens. The same happens to me. I click the button and simply nothing happens. (I use no proxy, Chrome and Safari) "How to create a Minimal, Complete, and Verifiable example" You know we are talking about SE code?!? If you want I can send you a gif of my mouse clicking on a not responding button, but I don't believe that helps anyone. The OP even looked into the console. And he sees nothing. What else do you want to know?! –  wumm 2 days ago
1  
@user2284570 As I said in my previous comment, no I don't use a proxy. –  wumm 2 days ago
1  
@user2284570 No, not even close. –  DavidG 2 days ago
1  
The same is happening on CodeReview: meta.codereview.stackexchange.com/q/2575/14625 –  tomdemuyt 2 days ago
1  
@tomdemuyt : Since this issue is common to several sites, then the right place to discuss about in is on the StackExchange meta. –  user2284570 yesterday
7  
@user2284570 Why are you so determined to negate my question? –  DavidG yesterday
1  
@user2284570 Your problem is not the exact same symptoms, it's not even the same problem. The details of my configuration were irrelevant at the time because I had tested it on multiple devices using multiple service providers. If it was a transparent proxy then 3 distinct ISPs in the UK, including one mobile operator would have had to have implemented it at the same time. Additionally, pasting code from the editor into the answer box requires no client/server interaction so proxy cannot be the issue. –  DavidG yesterday
6  
@user2284570 I don't really understand why you keep asking for more detail - there is nothing else to add. Just because you apparently are not suffering from the same problem doesn't mean everyone else isn't. Perhaps YOU should be giving US more info as to why it's working only for you? –  DavidG yesterday

2 Answers 2

Even if it is not a solution, @JaredReeves found a workaround :

While Editing the snippet, click in the grayed background page : enter image description here

console.log(7357)
This is a test

share
1  
Yes, that is mentioned in the question. –  DavidG 16 hours ago
    
@DavidG Right, Didn't noticed as I first read the post friday. Could you make it more visible in your question ? –  Kaiido 15 hours ago

There is not enough details to diagnose the bug : as it currently described, it is impossible to understand why it work differently for you.

Because the problem lacks the steps to always reproduce it, the Status is WorksForMe.

var videoUrl = 'https://dl.dropboxusercontent.com/u/17698405/bla.mp4';

var cmd = '-i myfile.mp4';
var args = parseArguments(cmd);
var sizeToDownload = 200*1024;

retrieveVideo(videoUrl, sizeToDownload, function(fileData) {
	ffmpeg_run({
		arguments: args,
		files: [{
			name: 'myfile.mp4',
			data: fileData
		}],
		print: print,
		printErr: print	
	});	
});

function parseArguments(text) {
  text = text.replace(/\s+/g, ' ');
  var args = [];
  text.split('"').forEach(function(t, i) {
    t = t.trim();
    if ((i % 2) === 1) {
      args.push(t);
    } else {
      args = args.concat(t.split(" "));
    }
  });
  return args;
}


function retrieveVideo(path, fragment_size, callback) {
  var xhr = new XMLHttpRequest();
  xhr.open("GET", path, true);
  xhr.responseType = "arraybuffer";
  xhr.setRequestHeader ('Range', 'bytes=0-' + (fragment_size - 1));

  xhr.onload = function (oEvent) {
    var arrayBuffer = xhr.response;
    if (arrayBuffer) {
      callback(new Uint8Array(arrayBuffer));
    }
  };

  xhr.send(null);
}

var textarea = document.getElementsByTagName('textarea')[0];

function print(text) {
	textarea.value += '> ' + text + '\n';
}
* { box-sizing: border-box }
html,body { height: 100%; margin: 0; padding: 0; overflow: hidden }
textarea { width: 100%; height: 100%; }
<script src="https://rawgit.com/bgrins/videoconverter.js/master/build/ffmpeg-all-codecs.js"></script>
<textarea></textarea>

share
12  
I can't even edit this post, edit the snippet, then press the insert into post button, still nothing happens. I've never been a fan of the works-on-my-computer answer. –  DavidG 2 days ago
1  
If there is one computer it doesn't work on, it's broken. Finding another computer where it works doesn't change that fact. It doesn't work on my machine either, so @DavidG and me are currently outnumbering you :p –  ivarni yesterday
    
@ivarni : That's not the problem : the problem is the bug isn't enough described. On the main site, this is the equivalent of questions which post the code of a program and you see but it doesn't work, whereas is work for peoples who tried it. Such question on the main site are closed because they doesn't contains the necessary steps to reproduce the bug. A similar thing append here : he describe the desired behaviour but not the steps which would normally always trigger the bug. –  user2284570 yesterday
    
See also a similar issue where I figured the problem which make the bug reproducible. –  user2284570 yesterday
1  
The bug is described. It might not have been so when it was posted but the latest version contains everything that's needed to reproduce it. The fact that you are not able to reproduce is completely irrelevant. I could reproduce and debug it, so I'm not sure what else you want added. I realize that you've already been told this numerous times by different people, so if you still don't think it's a described problem then that's your problem I guess. –  ivarni yesterday
    
@ivarni : no if it was correctly described, I could reproduce it. But by following the exact steps described I posted this answer and I didn't notice something abnormal. the description lack informations. It probably need more circumstances. By example : I've figured most transparent proxies (which mean computers are configured to connect to internet using a direct connection) rewrite the special HTTP request of stack snippet in a way it can't work. –  user2284570 yesterday
    
what kind of status is "worksforme"? :) it needs to work on end users in general, not just for one of them. –  eis yesterday
    
@eis : It's a status I saw on bugzilla's sites. –  user2284570 yesterday
    
It doesn't work for me either, but it was working fine until 2 days ago or so. How to reproduce the problem? Create a snippet and click the button to insert it into the answer. Nothing happens, no errors in the browser console. –  MelanciaUK yesterday
    
@MelanciaUK : but It still work for me. I posted this answer to prove this is the case. I can't be the only person in that case. I guess other peoples (except moderators) in that case flag the question instead of dealing with it (trying to solve the problem). –  user2284570 yesterday
2  
I think the proper status is cannot reproduce which means you did not yet put enough effort into it.. –  tomdemuyt yesterday
3  
Perhaps you should also follow some main site rules mate. Works for me (or) can't repro is a comment and not an answer. Also judging by the no. of users who have said that it doesn't work for them, I don't think adding machine settings/config makes much of a difference here. I have also seen other users who were using snippets earlier not using them now. –  Harry yesterday
4  
Who gave this a +1? –  Salman A 16 hours ago

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .